warp-isomorphic
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"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(); | ||
}) | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
17935
16
229
+ Addedbusboy@1.6.0(transitive)
+ Addedstreamsearch@1.1.0(transitive)
+ Addedundici@5.19.1(transitive)
- Removed@fastify/busboy@2.1.1(transitive)
- Removedundici@5.28.4(transitive)
Updatedundici@5.19.1