New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

isomorphic-unfetch

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isomorphic-unfetch - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

2

browser.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc