We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 589d916 commit 5cde7c9Copy full SHA for 5cde7c9
client.js
@@ -1 +1 @@
1
-require('fetch');
+module.exports = require('fetch');
npm-client.js
-require('whatwg-fetch');
+module.exports = require('whatwg-fetch');
server.js
@@ -8,7 +8,7 @@ global.Headers = global.self.Headers;
8
global.Request = global.self.Request;
9
global.Response = global.self.Response;
10
var realFetch = global.self.fetch;
11
-global.fetch = function(url, options) {
+module.exports = global.fetch = function(url, options) {
12
if (/^\/\//.test(url)) {
13
url = 'https:' + url;
14
}
0 commit comments