Skip to content

Commit 5cde7c9

Browse files
Apparently commonjs is a thing, who knew?
1 parent 589d916 commit 5cde7c9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
require('fetch');
1+
module.exports = require('fetch');

npm-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
require('whatwg-fetch');
1+
module.exports = require('whatwg-fetch');

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ global.Headers = global.self.Headers;
88
global.Request = global.self.Request;
99
global.Response = global.self.Response;
1010
var realFetch = global.self.fetch;
11-
global.fetch = function(url, options) {
11+
module.exports = global.fetch = function(url, options) {
1212
if (/^\/\//.test(url)) {
1313
url = 'https:' + url;
1414
}

0 commit comments

Comments
 (0)