Skip to content

Commit

Permalink
Apparently commonjs is a thing, who knew?
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-andrews committed Jan 27, 2015
1 parent 589d916 commit 5cde7c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require('fetch');
module.exports = require('fetch');
2 changes: 1 addition & 1 deletion npm-client.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require('whatwg-fetch');
module.exports = require('whatwg-fetch');
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ global.Headers = global.self.Headers;
global.Request = global.self.Request;
global.Response = global.self.Response;
var realFetch = global.self.fetch;
global.fetch = function(url, options) {
module.exports = global.fetch = function(url, options) {
if (/^\/\//.test(url)) {
url = 'https:' + url;
}
Expand Down

0 comments on commit 5cde7c9

Please sign in to comment.