@whatwg-node/node-fetch 0.7.18-alpha-20250414151710-6a37974a4a9ff260e06d0c740e324d6e130cf2b4 → 0.7.18-alpha-20250414154607-8ad02ad3e71df040e85ce6e898dcadc9c4253191
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 +4 -0
- package/esm/Body.js +4 -0
- package/package.json +2 -2
package/cjs/Body.js
CHANGED
@@ -205,7 +205,11 @@ class PonyfillBody {
|
|
205
205
|
limits: formDataLimits,
|
206
206
|
defCharset: 'utf-8',
|
207
207
|
});
|
208
|
+
let completed = false;
|
208
209
|
const complete = (err) => {
|
210
|
+
if (completed)
|
211
|
+
return;
|
212
|
+
completed = true;
|
209
213
|
stream.unpipe(bb);
|
210
214
|
bb.destroy();
|
211
215
|
if (currFile) {
|
package/esm/Body.js
CHANGED
@@ -202,7 +202,11 @@ export class PonyfillBody {
|
|
202
202
|
limits: formDataLimits,
|
203
203
|
defCharset: 'utf-8',
|
204
204
|
});
|
205
|
+
let completed = false;
|
205
206
|
const complete = (err) => {
|
207
|
+
if (completed)
|
208
|
+
return;
|
209
|
+
completed = true;
|
206
210
|
stream.unpipe(bb);
|
207
211
|
bb.destroy();
|
208
212
|
if (currFile) {
|
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-20250414154607-8ad02ad3e71df040e85ce6e898dcadc9c4253191",
|
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-20250414154607-8ad02ad3e71df040e85ce6e898dcadc9c4253191",
|
10
10
|
"tslib": "^2.6.3"
|
11
11
|
},
|
12
12
|
"repository": {
|