@whatwg-node/fetch
Advanced tools
Comparing version 0.10.1 to 0.10.2-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054
# @whatwg-node/fetch | ||
## 0.10.2-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054 | ||
### Patch Changes | ||
- [#1814](https://github.com/ardatan/whatwg-node/pull/1814) | ||
[`d4e9457`](https://github.com/ardatan/whatwg-node/commit/d4e945783576f1ba92f37b1bbb8b41e23b8dd5bb) | ||
Thanks [@ardatan](https://github.com/ardatan)! - Small improvements for Bun support | ||
- Updated dependencies | ||
[[`d4e9457`](https://github.com/ardatan/whatwg-node/commit/d4e945783576f1ba92f37b1bbb8b41e23b8dd5bb)]: | ||
- @whatwg-node/node-fetch@0.7.3-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054 | ||
## 0.10.1 | ||
@@ -4,0 +16,0 @@ |
const shouldSkipPonyfill = require('./shouldSkipPonyfill'); | ||
let newNodeFetch; | ||
@@ -14,3 +15,6 @@ module.exports = function createNodePonyfill(opts = {}) { | ||
if (opts.skipPonyfill || shouldSkipPonyfill()) { | ||
if ( | ||
(opts.skipPonyfill || shouldSkipPonyfill()) | ||
&& opts.skipPonyfill !== false | ||
) { | ||
return { | ||
@@ -41,3 +45,3 @@ fetch: globalThis.fetch, | ||
const newNodeFetch = require('@whatwg-node/node-fetch'); | ||
newNodeFetch ||= require('@whatwg-node/node-fetch'); | ||
@@ -44,0 +48,0 @@ ponyfills.fetch = newNodeFetch.fetch; |
{ | ||
"name": "@whatwg-node/fetch", | ||
"version": "0.10.1", | ||
"version": "0.10.2-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054", | ||
"description": "Cross Platform Smart Fetch Ponyfill", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"dependencies": { | ||
"@whatwg-node/node-fetch": "^0.7.1", | ||
"@whatwg-node/node-fetch": "0.7.3-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054", | ||
"urlpattern-polyfill": "^10.0.0" | ||
@@ -22,0 +22,0 @@ }, |
45119
295
+ Added@kamilkisiela/fast-url-parser@1.1.4(transitive)
+ Added@whatwg-node/node-fetch@0.7.3-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054(transitive)
+ Addedfast-decode-uri-component@1.0.1(transitive)
+ Addedfast-querystring@1.1.2(transitive)
- Removed@whatwg-node/disposablestack@0.0.6(transitive)
- Removed@whatwg-node/node-fetch@0.7.12(transitive)
- Removed@whatwg-node/promise-helpers@1.2.1(transitive)
Updated@whatwg-node/node-fetch@0.7.3-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054