@whatwg-node/fetch 0.9.12 → 0.9.13-alpha-20230911211352-3c338e6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/node-ponyfill.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @whatwg-node/fetch
|
|
2
2
|
|
|
3
|
+
## 0.9.13-alpha-20230911211352-3c338e6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`854b778`](https://github.com/ardatan/whatwg-node/commit/854b7786f4ef134a00a4f8f4df02721a7a4c77bb)
|
|
8
|
+
Thanks [@ardatan](https://github.com/ardatan)! - Do not try to import node-libcurl in Deno and Bun
|
|
9
|
+
|
|
3
10
|
## 0.9.12
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/node-ponyfill.js
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
const createNodePonyfill = require('./create-node-ponyfill');
|
|
3
3
|
const ponyfills = createNodePonyfill();
|
|
4
4
|
|
|
5
|
+
if (!globalThis.Deno && !process.versions.bun) {
|
|
6
|
+
|
|
5
7
|
try {
|
|
6
8
|
const nodelibcurlName = 'node-libcurl'
|
|
7
9
|
globalThis.libcurl = globalThis.libcurl || require(nodelibcurlName);
|
|
8
10
|
} catch(e) {}
|
|
11
|
+
}
|
|
9
12
|
|
|
10
13
|
module.exports.fetch = ponyfills.fetch;
|
|
11
14
|
module.exports.Headers = ponyfills.Headers;
|