@whatwg-node/fetch 0.8.3 → 0.8.4
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 +8 -0
- package/dist/create-node-ponyfill.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @whatwg-node/fetch
|
|
2
2
|
|
|
3
|
+
## 0.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`207ee1d`](https://github.com/ardatan/whatwg-node/commit/207ee1de374a38e9c2b61bd4896d1591e3e57117)
|
|
8
|
+
Thanks [@ardatan](https://github.com/ardatan)! - Detect Deno if the module is imported via 'npm:'
|
|
9
|
+
or any other Node compatibility method
|
|
10
|
+
|
|
3
11
|
## 0.8.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -7,8 +7,8 @@ module.exports = function createNodePonyfill(opts = {}) {
|
|
|
7
7
|
ponyfills.URLPattern = urlPatternModule.URLPattern;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
// Bun already
|
|
11
|
-
if (process.versions.bun) {
|
|
10
|
+
// Bun and Deno already have a Fetch API
|
|
11
|
+
if (globalThis.Deno || process.versions.bun) {
|
|
12
12
|
return globalThis;
|
|
13
13
|
}
|
|
14
14
|
|