@whatwg-node/fetch
Advanced tools
Comparing version 0.9.23 to 0.10.0-alpha-20241108113501-c93849fd55fb01e4f4787f610e52c67ea08ced92
# @whatwg-node/fetch | ||
## 0.10.0-alpha-20241108113501-c93849fd55fb01e4f4787f610e52c67ea08ced92 | ||
### Minor Changes | ||
- [#1782](https://github.com/ardatan/whatwg-node/pull/1782) | ||
[`c93849f`](https://github.com/ardatan/whatwg-node/commit/c93849fd55fb01e4f4787f610e52c67ea08ced92) | ||
Thanks [@ardatan](https://github.com/ardatan)! - \`TextDecoderStream\` and \`TextEncoderStream\` | ||
### Patch Changes | ||
- Updated dependencies | ||
[[`c93849f`](https://github.com/ardatan/whatwg-node/commit/c93849fd55fb01e4f4787f610e52c67ea08ced92)]: | ||
- @whatwg-node/node-fetch@0.7.0-alpha-20241108113501-c93849fd55fb01e4f4787f610e52c67ea08ced92 | ||
## 0.9.23 | ||
@@ -4,0 +18,0 @@ |
@@ -26,2 +26,4 @@ const shouldSkipPonyfill = require('./shouldSkipPonyfill'); | ||
DecompressionStream: globalThis.DecompressionStream, | ||
TextDecoderStream: globalThis.TextDecoderStream, | ||
TextEncoderStream: globalThis.TextEncoderStream, | ||
Blob: globalThis.Blob, | ||
@@ -55,2 +57,4 @@ File: globalThis.File, | ||
ponyfills.DecompressionStream = newNodeFetch.DecompressionStream; | ||
ponyfills.TextDecoderStream = newNodeFetch.TextDecoderStream; | ||
ponyfills.TextEncoderStream = newNodeFetch.TextEncoderStream; | ||
@@ -57,0 +61,0 @@ ponyfills.Blob = newNodeFetch.Blob; |
@@ -11,2 +11,4 @@ const fetch = globalThis.fetch; | ||
const DecompressionStream = globalThis.DecompressionStream; | ||
const TextDecoderStream = globalThis.TextDecoderStream; | ||
const TextEncoderStream = globalThis.TextEncoderStream; | ||
const Blob = globalThis.Blob; | ||
@@ -33,2 +35,4 @@ const File = globalThis.File; | ||
DecompressionStream, | ||
TextDecoderStream, | ||
TextEncoderStream, | ||
Blob, | ||
@@ -35,0 +39,0 @@ File, |
@@ -1,2 +0,2 @@ | ||
module.exports.fetch = globalThis.fetch; // To enable: import {fetch} from 'cross-fetch' | ||
module.exports.fetch = globalThis.fetch; | ||
module.exports.Headers = globalThis.Headers; | ||
@@ -11,2 +11,4 @@ module.exports.Request = globalThis.Request; | ||
module.exports.DecompressionStream = globalThis.DecompressionStream; | ||
module.exports.TextDecoderStream = globalThis.TextDecoderStream; | ||
module.exports.TextEncoderStream = globalThis.TextEncoderStream; | ||
module.exports.Blob = globalThis.Blob; | ||
@@ -13,0 +15,0 @@ module.exports.File = globalThis.File; |
@@ -20,2 +20,4 @@ /// <reference lib="dom" /> | ||
export const DecompressionStream: typeof globalThis.DecompressionStream; | ||
export const TextDecoderStream: typeof globalThis.TextDecoderStream; | ||
export const TextEncoderStream: typeof globalThis.TextEncoderStream; | ||
export const Blob: typeof globalThis.Blob; | ||
@@ -61,2 +63,4 @@ export const File: typeof globalThis.File; | ||
DecompressionStream: typeof DecompressionStream; | ||
TextDecoderStream: typeof TextDecoderStream; | ||
TextEncoderStream: typeof TextEncoderStream; | ||
Blob: typeof Blob; | ||
@@ -63,0 +67,0 @@ File: typeof File; |
@@ -23,2 +23,4 @@ | ||
module.exports.DecompressionStream = ponyfills.DecompressionStream; | ||
module.exports.TextDecoderStream = ponyfills.TextDecoderStream; | ||
module.exports.TextEncoderStream = ponyfills.TextEncoderStream; | ||
module.exports.Blob = ponyfills.Blob; | ||
@@ -25,0 +27,0 @@ module.exports.File = ponyfills.File; |
@@ -7,7 +7,6 @@ | ||
module.exports = function shouldSkipPonyfill() { | ||
// Bun and Deno already have a Fetch API | ||
if (globalThis.Deno) { | ||
return true | ||
} | ||
if (process.versions.bun) { | ||
if (globalThis.Bun) { | ||
return true | ||
@@ -14,0 +13,0 @@ } |
{ | ||
"name": "@whatwg-node/fetch", | ||
"version": "0.9.23", | ||
"version": "0.10.0-alpha-20241108113501-c93849fd55fb01e4f4787f610e52c67ea08ced92", | ||
"description": "Cross Platform Smart Fetch Ponyfill", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"dependencies": { | ||
"@whatwg-node/node-fetch": "^0.6.0", | ||
"@whatwg-node/node-fetch": "0.7.0-alpha-20241108113501-c93849fd55fb01e4f4787f610e52c67ea08ced92", | ||
"urlpattern-polyfill": "^10.0.0" | ||
@@ -22,0 +22,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44131
291