@whatwg-node/fetch 0.6.4 → 0.6.6-alpha-20230202080931-398001d

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @whatwg-node/fetch
2
2
 
3
+ ## 0.6.6-alpha-20230202080931-398001d
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ [[`955ed65`](https://github.com/ardatan/whatwg-node/commit/955ed6525102c24c3f882f5d6852388815e97e1b)]:
9
+ - @whatwg-node/node-fetch@0.0.2-alpha-20230202080931-398001d
10
+
11
+ ## 0.6.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [`63c96f5`](https://github.com/ardatan/whatwg-node/commit/63c96f5ad14bbc56ccccb95def3447b4107f6013)
16
+ Thanks [@ardatan](https://github.com/ardatan)! - Do not add ponyfills for Bun
17
+
3
18
  ## 0.6.4
4
19
 
5
20
  ### Patch Changes
@@ -7,6 +7,11 @@ module.exports = function createNodePonyfill(opts = {}) {
7
7
  ponyfills.URLPattern = urlPatternModule.URLPattern;
8
8
  }
9
9
 
10
+ // Bun already has a Fetch API
11
+ if (process.versions.bun) {
12
+ return globalThis;
13
+ }
14
+
10
15
  const newNodeFetch = require('@whatwg-node/node-fetch');
11
16
 
12
17
  ponyfills.fetch = newNodeFetch.fetch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/fetch",
3
- "version": "0.6.4",
3
+ "version": "0.6.6-alpha-20230202080931-398001d",
4
4
  "description": "Cross Platform Smart Fetch Ponyfill",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,7 @@
14
14
  "types": "dist/index.d.ts",
15
15
  "dependencies": {
16
16
  "@peculiar/webcrypto": "^1.4.0",
17
- "@whatwg-node/node-fetch": "0.0.1",
17
+ "@whatwg-node/node-fetch": "0.0.2-alpha-20230202080931-398001d",
18
18
  "busboy": "^1.6.0",
19
19
  "urlpattern-polyfill": "^6.0.2",
20
20
  "web-streams-polyfill": "^3.2.1"