UNPKG

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