@whatwg-node/node-fetch 0.7.6-alpha-20250109001305-3002f5a56f2e1931522968b3d6eb544aa91559b6 → 0.7.6-alpha-20250110090158-4b55591216b8adb4146bd8c51856a062ae508033
Sign up to get free protection for your applications and to get access to all the features.
package/cjs/ReadableStream.js
CHANGED
@@ -156,6 +156,9 @@ class PonyfillReadableStream {
|
|
156
156
|
[Symbol.asyncIterator]() {
|
157
157
|
const iterator = this.readable[Symbol.asyncIterator]();
|
158
158
|
return {
|
159
|
+
[Symbol.asyncIterator]() {
|
160
|
+
return this;
|
161
|
+
},
|
159
162
|
next: () => iterator.next(),
|
160
163
|
return: () => {
|
161
164
|
if (!this.readable.destroyed) {
|
package/esm/ReadableStream.js
CHANGED
@@ -153,6 +153,9 @@ export class PonyfillReadableStream {
|
|
153
153
|
[Symbol.asyncIterator]() {
|
154
154
|
const iterator = this.readable[Symbol.asyncIterator]();
|
155
155
|
return {
|
156
|
+
[Symbol.asyncIterator]() {
|
157
|
+
return this;
|
158
|
+
},
|
156
159
|
next: () => iterator.next(),
|
157
160
|
return: () => {
|
158
161
|
if (!this.readable.destroyed) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@whatwg-node/node-fetch",
|
3
|
-
"version": "0.7.6-alpha-
|
3
|
+
"version": "0.7.6-alpha-20250110090158-4b55591216b8adb4146bd8c51856a062ae508033",
|
4
4
|
"description": "Fetch API implementation for Node",
|
5
5
|
"sideEffects": false,
|
6
6
|
"dependencies": {
|
@@ -9,6 +9,7 @@ export declare class PonyfillReadableStream<T> implements ReadableStream<T> {
|
|
9
9
|
}): ReadableStreamBYOBReader;
|
10
10
|
getReader(): ReadableStreamDefaultReader<T>;
|
11
11
|
[Symbol.asyncIterator](): {
|
12
|
+
[Symbol.asyncIterator](): /*elided*/ any;
|
12
13
|
next: () => Promise<IteratorResult<any, any>>;
|
13
14
|
return: () => Promise<IteratorResult<any, any>>;
|
14
15
|
throw: (err: Error) => Promise<IteratorResult<any, any>>;
|
@@ -9,6 +9,7 @@ export declare class PonyfillReadableStream<T> implements ReadableStream<T> {
|
|
9
9
|
}): ReadableStreamBYOBReader;
|
10
10
|
getReader(): ReadableStreamDefaultReader<T>;
|
11
11
|
[Symbol.asyncIterator](): {
|
12
|
+
[Symbol.asyncIterator](): /*elided*/ any;
|
12
13
|
next: () => Promise<IteratorResult<any, any>>;
|
13
14
|
return: () => Promise<IteratorResult<any, any>>;
|
14
15
|
throw: (err: Error) => Promise<IteratorResult<any, any>>;
|