@whatwg-node/node-fetch 0.5.5-alpha-20240125134921-4dca13415bc6d03dd81caaa7a490a154ac7f642b → 0.5.5-rc-20240125133601-fc7e289c722a90228b02f5403948b1d44cbc2235

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/Body.js CHANGED
@@ -318,15 +318,6 @@ function processBodyInit(bodyInit) {
318
318
  },
319
319
  };
320
320
  }
321
- if (isReadableStream(bodyInit)) {
322
- return {
323
- contentType: null,
324
- contentLength: null,
325
- bodyFactory() {
326
- return new ReadableStream_js_1.PonyfillReadableStream(bodyInit);
327
- },
328
- };
329
- }
330
321
  if (bodyInit[Symbol.iterator] || bodyInit[Symbol.asyncIterator]) {
331
322
  return {
332
323
  contentType: null,
@@ -348,6 +339,3 @@ function isBlob(value) {
348
339
  function isURLSearchParams(value) {
349
340
  return value?.sort != null;
350
341
  }
351
- function isReadableStream(value) {
352
- return value?.getReader != null;
353
- }
package/cjs/Request.js CHANGED
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- var _a;
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.PonyfillRequest = void 0;
5
4
  const Body_js_1 = require("./Body.js");
@@ -31,7 +30,6 @@ class PonyfillRequest extends Body_js_1.PonyfillBody {
31
30
  requestInit = options;
32
31
  }
33
32
  super(bodyInit, options);
34
- this[_a] = 'Request';
35
33
  this.cache = requestInit?.cache || 'default';
36
34
  this.credentials = requestInit?.credentials || 'same-origin';
37
35
  this.headers =
@@ -84,4 +82,3 @@ class PonyfillRequest extends Body_js_1.PonyfillBody {
84
82
  }
85
83
  }
86
84
  exports.PonyfillRequest = PonyfillRequest;
87
- _a = Symbol.toStringTag;
package/esm/Body.js CHANGED
@@ -313,15 +313,6 @@ function processBodyInit(bodyInit) {
313
313
  },
314
314
  };
315
315
  }
316
- if (isReadableStream(bodyInit)) {
317
- return {
318
- contentType: null,
319
- contentLength: null,
320
- bodyFactory() {
321
- return new PonyfillReadableStream(bodyInit);
322
- },
323
- };
324
- }
325
316
  if (bodyInit[Symbol.iterator] || bodyInit[Symbol.asyncIterator]) {
326
317
  return {
327
318
  contentType: null,
@@ -343,6 +334,3 @@ function isBlob(value) {
343
334
  function isURLSearchParams(value) {
344
335
  return value?.sort != null;
345
336
  }
346
- function isReadableStream(value) {
347
- return value?.getReader != null;
348
- }
package/esm/Request.js CHANGED
@@ -1,4 +1,3 @@
1
- var _a;
2
1
  import { PonyfillBody } from './Body.js';
3
2
  import { isHeadersLike, PonyfillHeaders } from './Headers.js';
4
3
  function isRequest(input) {
@@ -28,7 +27,6 @@ export class PonyfillRequest extends PonyfillBody {
28
27
  requestInit = options;
29
28
  }
30
29
  super(bodyInit, options);
31
- this[_a] = 'Request';
32
30
  this.cache = requestInit?.cache || 'default';
33
31
  this.credentials = requestInit?.credentials || 'same-origin';
34
32
  this.headers =
@@ -80,4 +78,3 @@ export class PonyfillRequest extends PonyfillBody {
80
78
  return new PonyfillRequest(this);
81
79
  }
82
80
  }
83
- _a = Symbol.toStringTag;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.5.5-alpha-20240125134921-4dca13415bc6d03dd81caaa7a490a154ac7f642b",
3
+ "version": "0.5.5-rc-20240125133601-fc7e289c722a90228b02f5403948b1d44cbc2235",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "dependencies": {
@@ -29,6 +29,5 @@ export declare class PonyfillRequest<TJSON = any> extends PonyfillBody<TJSON> im
29
29
  private _signal;
30
30
  get signal(): AbortSignal;
31
31
  clone(): PonyfillRequest<TJSON>;
32
- [Symbol.toStringTag]: string;
33
32
  }
34
33
  export {};
@@ -29,6 +29,5 @@ export declare class PonyfillRequest<TJSON = any> extends PonyfillBody<TJSON> im
29
29
  private _signal;
30
30
  get signal(): AbortSignal;
31
31
  clone(): PonyfillRequest<TJSON>;
32
- [Symbol.toStringTag]: string;
33
32
  }
34
33
  export {};