@whatwg-node/node-fetch 0.0.1-alpha-20221228110205-1d6dcac → 0.0.1-alpha-20221228110541-2aa6aea

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.
Files changed (3) hide show
  1. package/index.js +4 -4
  2. package/index.mjs +4 -4
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -397,7 +397,7 @@ class PonyfillBody {
397
397
  }
398
398
  return readableProp;
399
399
  }
400
- }
400
+ },
401
401
  });
402
402
  }
403
403
  return null;
@@ -434,10 +434,10 @@ class PonyfillBody {
434
434
  var _a;
435
435
  const bb = busboy({
436
436
  headers: {
437
- 'content-type': this.contentType || ''
437
+ 'content-type': this.contentType || '',
438
438
  },
439
439
  limits: formDataLimits,
440
- defParamCharset: 'utf-8'
440
+ defParamCharset: 'utf-8',
441
441
  });
442
442
  bb.on('field', (name, value, { nameTruncated, valueTruncated }) => {
443
443
  if (nameTruncated) {
@@ -456,7 +456,7 @@ class PonyfillBody {
456
456
  fileStream.on('limit', () => {
457
457
  reject(new Error(`File size limit exceeded: ${formDataLimits === null || formDataLimits === void 0 ? void 0 : formDataLimits.fileSize} bytes`));
458
458
  });
459
- fileStream.on('data', (chunk) => {
459
+ fileStream.on('data', chunk => {
460
460
  chunks.push(Buffer.from(chunk));
461
461
  });
462
462
  fileStream.on('close', () => {
package/index.mjs CHANGED
@@ -391,7 +391,7 @@ class PonyfillBody {
391
391
  }
392
392
  return readableProp;
393
393
  }
394
- }
394
+ },
395
395
  });
396
396
  }
397
397
  return null;
@@ -428,10 +428,10 @@ class PonyfillBody {
428
428
  var _a;
429
429
  const bb = busboy({
430
430
  headers: {
431
- 'content-type': this.contentType || ''
431
+ 'content-type': this.contentType || '',
432
432
  },
433
433
  limits: formDataLimits,
434
- defParamCharset: 'utf-8'
434
+ defParamCharset: 'utf-8',
435
435
  });
436
436
  bb.on('field', (name, value, { nameTruncated, valueTruncated }) => {
437
437
  if (nameTruncated) {
@@ -450,7 +450,7 @@ class PonyfillBody {
450
450
  fileStream.on('limit', () => {
451
451
  reject(new Error(`File size limit exceeded: ${formDataLimits === null || formDataLimits === void 0 ? void 0 : formDataLimits.fileSize} bytes`));
452
452
  });
453
- fileStream.on('data', (chunk) => {
453
+ fileStream.on('data', chunk => {
454
454
  chunks.push(Buffer.from(chunk));
455
455
  });
456
456
  fileStream.on('close', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.0.1-alpha-20221228110205-1d6dcac",
3
+ "version": "0.0.1-alpha-20221228110541-2aa6aea",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {