@whatwg-node/node-fetch 0.0.7-alpha-20230208145746-08ecb64 → 0.0.7-alpha-20230208150005-0bd8aaf

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 +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -569,7 +569,7 @@ class PonyfillBody {
569
569
  for await (const chunk of _body.readable) {
570
570
  chunks.push(chunk);
571
571
  }
572
- return Buffer.concat(chunks).toString(this.contentType || 'utf-8');
572
+ return Buffer.concat(chunks).toString('utf-8' /* use this.contentType soon */);
573
573
  }
574
574
  const blob = await this.blob();
575
575
  return blob.text();
package/index.mjs CHANGED
@@ -563,7 +563,7 @@ class PonyfillBody {
563
563
  for await (const chunk of _body.readable) {
564
564
  chunks.push(chunk);
565
565
  }
566
- return Buffer.concat(chunks).toString(this.contentType || 'utf-8');
566
+ return Buffer.concat(chunks).toString('utf-8' /* use this.contentType soon */);
567
567
  }
568
568
  const blob = await this.blob();
569
569
  return blob.text();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.0.7-alpha-20230208145746-08ecb64",
3
+ "version": "0.0.7-alpha-20230208150005-0bd8aaf",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {