Skip to content

Commit 7e3f244

Browse files
authored
Merge branch 'master' into polyfill-ie11
2 parents 424f568 + d489fdc commit 7e3f244

4 files changed

Lines changed: 16 additions & 4 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = window.fetch || (window.fetch = require('unfetch').default || require('unfetch'));
1+
module.exports = self.fetch || (self.fetch = require('unfetch').default || require('unfetch'));
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function r(m){return m && m.default || m;}
22
module.exports = global.fetch = global.fetch || (
33
typeof process=='undefined' ? r(require('unfetch')) : (function(url, opts) {
4-
return r(require('node-fetch'))(url.replace(/^\/\//g,'https://'), opts);
4+
return r(require('node-fetch'))(String(url).replace(/^\/\//g,'https://'), opts);
55
})
66
);

packages/isomorphic-unfetch/package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/isomorphic-unfetch/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
"browser": "browser.js",
1313
"main": "index.js",
1414
"types": "index.d.ts",
15-
"license": "MIT",
1615
"dependencies": {
17-
"node-fetch": "^2.2.0",
16+
"node-fetch": "^2.6.1",
1817
"unfetch": "^4.0.0"
1918
}
2019
}

0 commit comments

Comments
 (0)