@whatwg-node/node-fetch 0.7.18-alpha-20250414154607-8ad02ad3e71df040e85ce6e898dcadc9c4253191 → 0.7.18-alpha-20250414163719-162130a197ef14cd85b6f9a57841f9e33bc585dc
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 +3 -0
- package/esm/Body.js +4 -1
- package/package.json +2 -2
package/cjs/Body.js
CHANGED
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-
|
3
|
+
"version": "0.7.18-alpha-20250414163719-162130a197ef14cd85b6f9a57841f9e33bc585dc",
|
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-
|
9
|
+
"@whatwg-node/promise-helpers": "1.3.1-alpha-20250414163719-162130a197ef14cd85b6f9a57841f9e33bc585dc",
|
10
10
|
"tslib": "^2.6.3"
|
11
11
|
},
|
12
12
|
"repository": {
|