@whatwg-node/node-fetch 0.7.18-alpha-20250414155641-1b4cb74fa93350cda7c16bb71360a44498fe5fbd → 0.7.18-alpha-20250414164318-a767180b4dfd2724b0032447c9e2ef55708fffb5

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
@@ -205,6 +205,9 @@ class PonyfillBody {
205
205
  limits: formDataLimits,
206
206
  defCharset: 'utf-8',
207
207
  });
208
+ if (this.signal) {
209
+ (0, node_stream_1.addAbortSignal)(this.signal, bb);
210
+ }
208
211
  let completed = false;
209
212
  const complete = (err) => {
210
213
  if (completed)
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 { Readable } from 'node:stream';
4
+ import { addAbortSignal, Readable } from 'node:stream';
5
5
  import { Busboy } from '@fastify/busboy';
6
6
  import { handleMaybePromise } from '@whatwg-node/promise-helpers';
7
7
  import { hasArrayBufferMethod, hasBufferMethod, hasBytesMethod, PonyfillBlob } from './Blob.js';
@@ -202,6 +202,9 @@ export class PonyfillBody {
202
202
  limits: formDataLimits,
203
203
  defCharset: 'utf-8',
204
204
  });
205
+ if (this.signal) {
206
+ addAbortSignal(this.signal, bb);
207
+ }
205
208
  let completed = false;
206
209
  const complete = (err) => {
207
210
  if (completed)
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.7.18-alpha-20250414155641-1b4cb74fa93350cda7c16bb71360a44498fe5fbd",
3
+ "version": "0.7.18-alpha-20250414164318-a767180b4dfd2724b0032447c9e2ef55708fffb5",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "dependencies": {
7
7
  "@fastify/busboy": "^3.1.1",
8
8
  "@whatwg-node/disposablestack": "^0.0.6",
9
- "@whatwg-node/promise-helpers": "1.3.1-alpha-20250414155641-1b4cb74fa93350cda7c16bb71360a44498fe5fbd",
9
+ "@whatwg-node/promise-helpers": "1.3.1-alpha-20250414164318-a767180b4dfd2724b0032447c9e2ef55708fffb5",
10
10
  "tslib": "^2.6.3"
11
11
  },
12
12
  "repository": {