@whatwg-node/node-fetch 0.3.3 → 0.3.4-rc-20230321094246-110a38a

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/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.3.3",
3
+ "version": "0.3.4-rc-20230321094246-110a38a",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
- "peerDependencies": {
7
- "@types/node": "^18.0.6"
8
- },
9
6
  "dependencies": {
10
7
  "@whatwg-node/events": "^0.0.2",
11
8
  "busboy": "^1.6.0",
@@ -1,5 +1,16 @@
1
1
  /// <reference types="node" />
2
- import { BlobOptions } from 'buffer';
2
+ interface BlobOptions {
3
+ /**
4
+ * @default 'utf8'
5
+ */
6
+ encoding?: BufferEncoding | undefined;
7
+ /**
8
+ * The Blob content-type. The intent is for `type` to convey
9
+ * the MIME media type of the data, however no validation of the type format
10
+ * is performed.
11
+ */
12
+ type?: string | undefined;
13
+ }
3
14
  export declare class PonyfillBlob implements Blob {
4
15
  private blobParts;
5
16
  type: string;
@@ -16,3 +27,4 @@ export interface PonyfillBlob {
16
27
  prototype: Blob;
17
28
  new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
18
29
  }
30
+ export {};
package/typings/Blob.d.ts CHANGED
@@ -1,5 +1,16 @@
1
1
  /// <reference types="node" />
2
- import { BlobOptions } from 'buffer';
2
+ interface BlobOptions {
3
+ /**
4
+ * @default 'utf8'
5
+ */
6
+ encoding?: BufferEncoding | undefined;
7
+ /**
8
+ * The Blob content-type. The intent is for `type` to convey
9
+ * the MIME media type of the data, however no validation of the type format
10
+ * is performed.
11
+ */
12
+ type?: string | undefined;
13
+ }
3
14
  export declare class PonyfillBlob implements Blob {
4
15
  private blobParts;
5
16
  type: string;
@@ -16,3 +27,4 @@ export interface PonyfillBlob {
16
27
  prototype: Blob;
17
28
  new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
18
29
  }
30
+ export {};