Socket
Socket
Sign inDemoInstall

warp-isomorphic

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

warp-isomorphic - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

6

package.json
{
"name": "warp-isomorphic",
"version": "1.0.4",
"version": "1.0.5",
"description": "Isomorphic API for Node & browser",

@@ -13,3 +13,3 @@ "browser": "dist/src/npm-browser.js",

"type": "git",
"url": "https://github.com/warp/warp-isomorphic.git"
"url": "https://github.com/warp-contracts/warp-isomorphic"
},

@@ -37,4 +37,4 @@ "author": "Warp Team <dev@warp.cc>",

"buffer": "^6.0.3",
"undici": "^5.8.0"
"undici": "5.19.1"
}
}

@@ -1,8 +0,15 @@

window.global = window;
// in case of web worker
if (typeof window !== 'undefined') {
window.global = window;
global.fetch = window.fetch;
global.fetch = window.fetch;
module.exports = {
Buffer: require("buffer").Buffer,
Crypto: window.crypto
module.exports = {
Buffer: require("buffer").Buffer,
Crypto: window.crypto
};
} else {
module.exports = {
Buffer: require("buffer").Buffer,
Crypto: crypto
};
}

@@ -17,3 +17,3 @@ "use strict";

return realFetch.call(this, url, options);
};;
};
global.Response = undici.Response;

@@ -20,0 +20,0 @@ global.Headers = undici.Headers;

@@ -21,3 +21,3 @@ /**

expect(Crypto.getRandomValues(new Uint8Array(5))).toBeDefined();
})
});
});
});
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