@whatwg-node/node-fetch 0.7.15-alpha-20250324143232-a3fb5bb7eb1b67978d559bc7458fd299de20f2f6 → 0.7.15-alpha-20250324144457-dc1e0f64d495137095784ab212a715c979181b37
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 +1 -0
- package/cjs/Response.js +1 -0
- package/esm/ReadableStream.js +1 -0
- package/esm/Response.js +1 -0
- package/package.json +1 -1
- package/typings/ReadableStream.d.cts +1 -0
- package/typings/ReadableStream.d.ts +1 -0
- package/typings/Response.d.cts +1 -0
- package/typings/Response.d.ts +1 -0
package/cjs/ReadableStream.js
CHANGED
@@ -218,6 +218,7 @@ class PonyfillReadableStream {
|
|
218
218
|
static from(iterable) {
|
219
219
|
return new PonyfillReadableStream(node_stream_1.Readable.from(iterable));
|
220
220
|
}
|
221
|
+
[Symbol.toStringTag] = 'ReadableStream';
|
221
222
|
}
|
222
223
|
exports.PonyfillReadableStream = PonyfillReadableStream;
|
223
224
|
function isPonyfillReadableStream(obj) {
|
package/cjs/Response.js
CHANGED
package/esm/ReadableStream.js
CHANGED
@@ -215,6 +215,7 @@ export class PonyfillReadableStream {
|
|
215
215
|
static from(iterable) {
|
216
216
|
return new PonyfillReadableStream(Readable.from(iterable));
|
217
217
|
}
|
218
|
+
[Symbol.toStringTag] = 'ReadableStream';
|
218
219
|
}
|
219
220
|
function isPonyfillReadableStream(obj) {
|
220
221
|
return obj?.readable != null;
|
package/esm/Response.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@whatwg-node/node-fetch",
|
3
|
-
"version": "0.7.15-alpha-
|
3
|
+
"version": "0.7.15-alpha-20250324144457-dc1e0f64d495137095784ab212a715c979181b37",
|
4
4
|
"description": "Fetch API implementation for Node",
|
5
5
|
"sideEffects": false,
|
6
6
|
"dependencies": {
|
@@ -23,4 +23,5 @@ export declare class PonyfillReadableStream<T> implements ReadableStream<T> {
|
|
23
23
|
}): ReadableStream<T2>;
|
24
24
|
static [Symbol.hasInstance](instance: unknown): instance is PonyfillReadableStream<unknown>;
|
25
25
|
static from<T>(iterable: AsyncIterable<T> | Iterable<T>): PonyfillReadableStream<T>;
|
26
|
+
[Symbol.toStringTag]: string;
|
26
27
|
}
|
@@ -23,4 +23,5 @@ export declare class PonyfillReadableStream<T> implements ReadableStream<T> {
|
|
23
23
|
}): ReadableStream<T2>;
|
24
24
|
static [Symbol.hasInstance](instance: unknown): instance is PonyfillReadableStream<unknown>;
|
25
25
|
static from<T>(iterable: AsyncIterable<T> | Iterable<T>): PonyfillReadableStream<T>;
|
26
|
+
[Symbol.toStringTag]: string;
|
26
27
|
}
|
package/typings/Response.d.cts
CHANGED
@@ -19,4 +19,5 @@ export declare class PonyfillResponse<TJSON = any> extends PonyfillBody<TJSON> i
|
|
19
19
|
static error(): PonyfillResponse<any>;
|
20
20
|
static redirect(url: string, status?: number): PonyfillResponse<any>;
|
21
21
|
static json<T = any>(data: T, init?: ResponsePonyfilInit): PonyfillResponse<T>;
|
22
|
+
[Symbol.toStringTag]: string;
|
22
23
|
}
|
package/typings/Response.d.ts
CHANGED
@@ -19,4 +19,5 @@ export declare class PonyfillResponse<TJSON = any> extends PonyfillBody<TJSON> i
|
|
19
19
|
static error(): PonyfillResponse<any>;
|
20
20
|
static redirect(url: string, status?: number): PonyfillResponse<any>;
|
21
21
|
static json<T = any>(data: T, init?: ResponsePonyfilInit): PonyfillResponse<T>;
|
22
|
+
[Symbol.toStringTag]: string;
|
22
23
|
}
|