@whatwg-node/node-fetch 0.7.15-alpha-20250324212704-7c1695b36a5a2beeebc4b58563b2cab25c34ed9a → 0.7.15-alpha-20250324224943-fe2e257e455b2c5d9f69fb4b30dd1be84d2217e1

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
@@ -54,9 +54,6 @@ class PonyfillBody {
54
54
  }
55
55
  const body = this._bodyFactory();
56
56
  this._generatedBody = body;
57
- if (body?.readable && this.signal) {
58
- (0, node_stream_1.addAbortSignal)(this.signal, body.readable);
59
- }
60
57
  return body;
61
58
  }
62
59
  handleContentLengthHeader(forceSet = false) {
@@ -137,7 +134,7 @@ class PonyfillBody {
137
134
  this._chunks = [];
138
135
  return (0, utils_js_1.fakePromise)(this._chunks);
139
136
  }
140
- return _body.readable.toArray({ signal: this.signal }).then(chunks => {
137
+ return _body.readable.toArray().then(chunks => {
141
138
  this._chunks = chunks;
142
139
  return this._chunks;
143
140
  });
package/esm/Body.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/ban-ts-comment */
2
2
  import { Buffer } from 'node:buffer';
3
3
  import { IncomingMessage } from 'node:http';
4
- import { addAbortSignal, PassThrough, Readable } from 'node:stream';
4
+ import { PassThrough, Readable } from 'node:stream';
5
5
  import busboy from 'busboy';
6
6
  import { handleMaybePromise } from '@whatwg-node/promise-helpers';
7
7
  import { hasArrayBufferMethod, hasBufferMethod, hasBytesMethod, PonyfillBlob } from './Blob.js';
@@ -50,9 +50,6 @@ export class PonyfillBody {
50
50
  }
51
51
  const body = this._bodyFactory();
52
52
  this._generatedBody = body;
53
- if (body?.readable && this.signal) {
54
- addAbortSignal(this.signal, body.readable);
55
- }
56
53
  return body;
57
54
  }
58
55
  handleContentLengthHeader(forceSet = false) {
@@ -133,7 +130,7 @@ export class PonyfillBody {
133
130
  this._chunks = [];
134
131
  return fakePromise(this._chunks);
135
132
  }
136
- return _body.readable.toArray({ signal: this.signal }).then(chunks => {
133
+ return _body.readable.toArray().then(chunks => {
137
134
  this._chunks = chunks;
138
135
  return this._chunks;
139
136
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.7.15-alpha-20250324212704-7c1695b36a5a2beeebc4b58563b2cab25c34ed9a",
3
+ "version": "0.7.15-alpha-20250324224943-fe2e257e455b2c5d9f69fb4b30dd1be84d2217e1",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "dependencies": {