Initial Commit
This commit is contained in:
15
node_modules/snekfetch/sync.js
generated
vendored
Normal file
15
node_modules/snekfetch/sync.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
try {
|
||||
var syncify = require('@snek/syncify');
|
||||
} catch (err) {
|
||||
throw new Error('Using sync requires @snek/syncify (npm install @snek/syncify)');
|
||||
}
|
||||
|
||||
const Snekfetch = require('.');
|
||||
|
||||
class SnekfetchSync extends Snekfetch {
|
||||
end() {
|
||||
return syncify(super.end());
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = SnekfetchSync;
|
||||
Reference in New Issue
Block a user