@whatwg-node/node-fetch 0.4.15-alpha-20230901113847-4f5ae95 → 0.4.15-alpha-20230901114303-38c018b

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PonyfillBtoa = exports.PonyfillTextDecoder = exports.PonyfillTextEncoder = void 0;
4
- const utils_1 = require("./utils");
4
+ const utils_js_1 = require("./utils.js");
5
5
  class PonyfillTextEncoder {
6
6
  constructor(encoding = 'utf-8') {
7
7
  this.encoding = encoding;
@@ -33,7 +33,7 @@ class PonyfillTextDecoder {
33
33
  if (Buffer.isBuffer(input)) {
34
34
  return input.toString(this.encoding);
35
35
  }
36
- if ((0, utils_1.isArrayBufferView)(input)) {
36
+ if ((0, utils_js_1.isArrayBufferView)(input)) {
37
37
  return Buffer.from(input.buffer, input.byteOffset, input.byteLength).toString(this.encoding);
38
38
  }
39
39
  return Buffer.from(input).toString(this.encoding);
@@ -1,4 +1,4 @@
1
- import { isArrayBufferView } from './utils';
1
+ import { isArrayBufferView } from './utils.js';
2
2
  export class PonyfillTextEncoder {
3
3
  constructor(encoding = 'utf-8') {
4
4
  this.encoding = encoding;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.4.15-alpha-20230901113847-4f5ae95",
3
+ "version": "0.4.15-alpha-20230901114303-38c018b",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "dependencies": {