isomorphic-unfetch
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -1,1 +0,1 @@ | ||
module.exports = window.fetch = require('unfetch'); | ||
module.exports = window.fetch || (window.fetch = require('unfetch').default || require('unfetch')); |
@@ -1,3 +0,5 @@ | ||
module.exports = global.fetch = typeof process=='undefined' ? require('unfetch') : (function(url, opts) { | ||
return require('node-fetch')(url.replace(/^\/\//g,'https://'), opts); | ||
}); | ||
module.exports = global.fetch = global.fetch || ( | ||
typeof process=='undefined' ? (require('unfetch').default || require('unfetch')) : (function(url, opts) { | ||
return require('node-fetch')(url.replace(/^\/\//g,'https://'), opts); | ||
}) | ||
); |
{ | ||
"name": "isomorphic-unfetch", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Switches between unfetch & node-fetch for client & server.", | ||
@@ -8,5 +8,5 @@ "browser": "browser.js", | ||
"dependencies": { | ||
"node-fetch": "^1.6.3", | ||
"unfetch": "^2.1.0" | ||
"node-fetch": "^1.7.1", | ||
"unfetch": "^3.0.0" | ||
} | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
598
6
+ Addedunfetch@3.1.2(transitive)
- Removedunfetch@2.1.2(transitive)
Updatednode-fetch@^1.7.1
Updatedunfetch@^3.0.0