@whatwg-node/node-fetch 0.7.15-alpha-20250324142845-7d13d038e2996b5a310e2aa743ec03c83ffc1d90 → 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.
@@ -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
@@ -58,5 +58,6 @@ class PonyfillResponse extends Body_js_1.PonyfillBody {
58
58
  }
59
59
  return new PonyfillResponse(JSON.stringify(data), init);
60
60
  }
61
+ [Symbol.toStringTag] = 'Response';
61
62
  }
62
63
  exports.PonyfillResponse = PonyfillResponse;
@@ -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
@@ -55,4 +55,5 @@ export class PonyfillResponse extends PonyfillBody {
55
55
  }
56
56
  return new PonyfillResponse(JSON.stringify(data), init);
57
57
  }
58
+ [Symbol.toStringTag] = 'Response';
58
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.7.15-alpha-20250324142845-7d13d038e2996b5a310e2aa743ec03c83ffc1d90",
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
  }
@@ -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
  }
@@ -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
  }