@whatwg-node/fetch 0.6.4 → 0.6.5

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,12 @@
1
1
  # @whatwg-node/fetch
2
2
 
3
+ ## 0.6.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`63c96f5`](https://github.com/ardatan/whatwg-node/commit/63c96f5ad14bbc56ccccb95def3447b4107f6013)
8
+ Thanks [@ardatan](https://github.com/ardatan)! - Do not add ponyfills for Bun
9
+
3
10
  ## 0.6.4
4
11
 
5
12
  ### 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.5",
4
4
  "description": "Cross Platform Smart Fetch Ponyfill",
5
5
  "repository": {
6
6
  "type": "git",