@whatwg-node/node-fetch 0.7.6 → 0.7.7
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/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
@@ -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>>;
|