@whatwg-node/fetch
Advanced tools
Comparing version 0.10.3 to 0.10.4-alpha-20250122135958-d7c45737356867271ee584ba6eb3446d0bfa504b
# @whatwg-node/fetch | ||
## 0.10.4-alpha-20250122135958-d7c45737356867271ee584ba6eb3446d0bfa504b | ||
### Patch Changes | ||
- [#1997](https://github.com/ardatan/whatwg-node/pull/1997) | ||
[`d7c4573`](https://github.com/ardatan/whatwg-node/commit/d7c45737356867271ee584ba6eb3446d0bfa504b) | ||
Thanks [@ardatan](https://github.com/ardatan)! - Use `undici` when available over `node:http` | ||
- Updated dependencies | ||
[[`d7c4573`](https://github.com/ardatan/whatwg-node/commit/d7c45737356867271ee584ba6eb3446d0bfa504b)]: | ||
- @whatwg-node/node-fetch@0.7.8-alpha-20250122135958-d7c45737356867271ee584ba6eb3446d0bfa504b | ||
## 0.10.3 | ||
@@ -4,0 +16,0 @@ |
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; | ||
@@ -14,0 +6,0 @@ module.exports.Headers = ponyfills.Headers; |
{ | ||
"name": "@whatwg-node/fetch", | ||
"version": "0.10.3", | ||
"version": "0.10.4-alpha-20250122135958-d7c45737356867271ee584ba6eb3446d0bfa504b", | ||
"description": "Cross Platform Smart Fetch Ponyfill", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"dependencies": { | ||
"@whatwg-node/node-fetch": "^0.7.7", | ||
"@whatwg-node/node-fetch": "0.7.8-alpha-20250122135958-d7c45737356867271ee584ba6eb3446d0bfa504b", | ||
"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
46301
0
287