1 | try {
|
2 | var syncify = require('@snek/syncify');
|
3 | } catch (err) {
|
4 | throw new Error('Using sync requires @snek/syncify (npm install @snek/syncify)');
|
5 | }
|
6 |
|
7 | const Snekfetch = require('.');
|
8 |
|
9 | class SnekfetchSync extends Snekfetch {
|
10 | end() {
|
11 | return syncify(super.end());
|
12 | }
|
13 | }
|
14 |
|
15 | module.exports = SnekfetchSync;
|