@whatwg-node/node-fetch 0.7.18-alpha-20250414141945-85ba4bb116008ce30707b20368f44d791a52afaa → 0.7.18-alpha-20250414142501-d6dc56a6dae8ef2cab5ea56aad70f6fd874ade7e

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
@@ -192,7 +192,6 @@ class PonyfillBody {
192
192
  if (!stream) {
193
193
  return reject(new Error('No stream available'));
194
194
  }
195
- let lastError;
196
195
  // form data file that is currently being processed, it's
197
196
  // important to keep track of it in case the stream ends early
198
197
  let currFile = null;
@@ -213,8 +212,8 @@ class PonyfillBody {
213
212
  currFile.destroy();
214
213
  currFile = null;
215
214
  }
216
- if (err || lastError) {
217
- reject(err || lastError);
215
+ if (err) {
216
+ reject(err);
218
217
  }
219
218
  else {
220
219
  // no error occured, this is a successful end/complete/finish
package/esm/Body.js CHANGED
@@ -189,7 +189,6 @@ export class PonyfillBody {
189
189
  if (!stream) {
190
190
  return reject(new Error('No stream available'));
191
191
  }
192
- let lastError;
193
192
  // form data file that is currently being processed, it's
194
193
  // important to keep track of it in case the stream ends early
195
194
  let currFile = null;
@@ -210,8 +209,8 @@ export class PonyfillBody {
210
209
  currFile.destroy();
211
210
  currFile = null;
212
211
  }
213
- if (err || lastError) {
214
- reject(err || lastError);
212
+ if (err) {
213
+ reject(err);
215
214
  }
216
215
  else {
217
216
  // no error occured, this is a successful end/complete/finish
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.7.18-alpha-20250414141945-85ba4bb116008ce30707b20368f44d791a52afaa",
3
+ "version": "0.7.18-alpha-20250414142501-d6dc56a6dae8ef2cab5ea56aad70f6fd874ade7e",
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-20250414141945-85ba4bb116008ce30707b20368f44d791a52afaa",
9
+ "@whatwg-node/promise-helpers": "1.3.1-alpha-20250414142501-d6dc56a6dae8ef2cab5ea56aad70f6fd874ade7e",
10
10
  "tslib": "^2.6.3"
11
11
  },
12
12
  "repository": {