@whatwg-node/fetch
Advanced tools
Comparing version 0.10.4-alpha-20250122230954-3105b2fac861fe650311d5dc0f4a88470234b0b5 to 0.10.4-rc-20250220115019-ee12c9cb376b0d59002665881963a5ea8104300c
# @whatwg-node/fetch | ||
## 0.10.4-alpha-20250122230954-3105b2fac861fe650311d5dc0f4a88470234b0b5 | ||
## 0.10.4-rc-20250220115019-ee12c9cb376b0d59002665881963a5ea8104300c | ||
### Patch Changes | ||
- [#1997](https://github.com/ardatan/whatwg-node/pull/1997) | ||
[`7ab25b3`](https://github.com/ardatan/whatwg-node/commit/7ab25b35ca978dfc1bf71e0e15f6e0996ef69966) | ||
Thanks [@ardatan](https://github.com/ardatan)! - Use `undici` when available over `node:http` | ||
- [#2079](https://github.com/ardatan/whatwg-node/pull/2079) | ||
[`090b4b0`](https://github.com/ardatan/whatwg-node/commit/090b4b0d2aefbf36707fa236395bc6ea99227b9c) | ||
Thanks [@ardatan](https://github.com/ardatan)! - Fix the bug when `set-cookies` given is ignored | ||
in `HeadersInit`; | ||
```js | ||
import { Headers } from '@whatwg-node/fetch' | ||
const headers = new Headers([ | ||
['set-cookie', 'a=b'], | ||
['set-cookie', 'c=d'] | ||
]) | ||
expect(headers.getSetCookie()).toEqual(['a=b', 'c=d']) // Previously it was empty | ||
``` | ||
- Updated dependencies | ||
[[`7ab25b3`](https://github.com/ardatan/whatwg-node/commit/7ab25b35ca978dfc1bf71e0e15f6e0996ef69966)]: | ||
- @whatwg-node/node-fetch@0.7.8-alpha-20250122230954-3105b2fac861fe650311d5dc0f4a88470234b0b5 | ||
[[`090b4b0`](https://github.com/ardatan/whatwg-node/commit/090b4b0d2aefbf36707fa236395bc6ea99227b9c)]: | ||
- @whatwg-node/node-fetch@0.7.10-rc-20250220115019-ee12c9cb376b0d59002665881963a5ea8104300c | ||
@@ -15,0 +26,0 @@ ## 0.10.3 |
const createNodePonyfill = require('./create-node-ponyfill'); | ||
const shouldSkipPonyfill = require('./shouldSkipPonyfill'); | ||
const ponyfills = createNodePonyfill(); | ||
if (!shouldSkipPonyfill()) { | ||
try { | ||
const nodelibcurlName = 'node-libcurl' | ||
globalThis.libcurl = globalThis.libcurl || require(nodelibcurlName); | ||
} catch (e) { } | ||
} | ||
module.exports.fetch = ponyfills.fetch; | ||
@@ -6,0 +14,0 @@ module.exports.Headers = ponyfills.Headers; |
{ | ||
"name": "@whatwg-node/fetch", | ||
"version": "0.10.4-alpha-20250122230954-3105b2fac861fe650311d5dc0f4a88470234b0b5", | ||
"version": "0.10.4-rc-20250220115019-ee12c9cb376b0d59002665881963a5ea8104300c", | ||
"description": "Cross Platform Smart Fetch Ponyfill", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"dependencies": { | ||
"@whatwg-node/node-fetch": "0.7.8-alpha-20250122230954-3105b2fac861fe650311d5dc0f4a88470234b0b5", | ||
"@whatwg-node/node-fetch": "0.7.10-rc-20250220115019-ee12c9cb376b0d59002665881963a5ea8104300c", | ||
"urlpattern-polyfill": "^10.0.0" | ||
@@ -22,0 +22,0 @@ }, |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
46785
294
1
+ Added@whatwg-node/node-fetch@0.7.10-rc-20250220115019-ee12c9cb376b0d59002665881963a5ea8104300c(transitive)
- Removed@whatwg-node/node-fetch@0.7.8-alpha-20250122230954-3105b2fac861fe650311d5dc0f4a88470234b0b5(transitive)
Updated@whatwg-node/node-fetch@0.7.10-rc-20250220115019-ee12c9cb376b0d59002665881963a5ea8104300c