@whatwg-node/node-fetch 0.3.3-rc-20230320123406-da3a60b → 0.3.3
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/AbortController.js +14 -0
- package/cjs/AbortError.js +20 -0
- package/cjs/AbortSignal.js +37 -0
- package/cjs/Blob.js +119 -0
- package/cjs/Body.js +372 -0
- package/cjs/File.js +13 -0
- package/cjs/FormData.js +134 -0
- package/cjs/Headers.js +127 -0
- package/cjs/ReadableStream.js +172 -0
- package/cjs/Request.js +69 -0
- package/cjs/Response.js +76 -0
- package/cjs/TextEncoderDecoder.js +39 -0
- package/cjs/URL.js +55 -0
- package/cjs/URLSearchParams.js +103 -0
- package/cjs/fetch.js +143 -0
- package/cjs/index.js +35 -0
- package/cjs/package.json +1 -0
- package/cjs/utils.js +18 -0
- package/esm/AbortController.js +10 -0
- package/esm/AbortError.js +16 -0
- package/esm/AbortSignal.js +33 -0
- package/esm/Blob.js +115 -0
- package/esm/Body.js +367 -0
- package/esm/File.js +9 -0
- package/esm/FormData.js +129 -0
- package/esm/Headers.js +123 -0
- package/esm/ReadableStream.js +168 -0
- package/esm/Request.js +65 -0
- package/esm/Response.js +72 -0
- package/esm/TextEncoderDecoder.js +33 -0
- package/esm/URL.js +50 -0
- package/esm/URLSearchParams.js +98 -0
- package/esm/fetch.js +139 -0
- package/esm/index.js +15 -0
- package/esm/utils.js +13 -0
- package/package.json +19 -12
- package/typings/AbortController.d.cts +5 -0
- package/{AbortController.d.ts → typings/AbortController.d.ts} +1 -1
- package/typings/AbortError.d.ts +4 -0
- package/typings/AbortSignal.d.ts +11 -0
- package/typings/Blob.d.ts +18 -0
- package/typings/Body.d.cts +41 -0
- package/{Body.d.ts → typings/Body.d.ts} +3 -3
- package/typings/File.d.cts +7 -0
- package/{File.d.ts → typings/File.d.ts} +1 -1
- package/typings/FormData.d.cts +17 -0
- package/{FormData.d.ts → typings/FormData.d.ts} +2 -2
- package/typings/Headers.d.ts +21 -0
- package/typings/ReadableStream.d.ts +20 -0
- package/typings/Request.d.cts +24 -0
- package/{Request.d.ts → typings/Request.d.ts} +2 -2
- package/typings/Response.d.cts +22 -0
- package/{Response.d.ts → typings/Response.d.ts} +2 -2
- package/typings/TextEncoderDecoder.d.ts +15 -0
- package/typings/URL.d.cts +14 -0
- package/{URL.d.ts → typings/URL.d.ts} +1 -1
- package/typings/URLSearchParams.d.ts +17 -0
- package/typings/fetch.d.cts +3 -0
- package/{fetch.d.ts → typings/fetch.d.ts} +2 -2
- package/typings/index.d.cts +15 -0
- package/typings/index.d.ts +15 -0
- package/typings/utils.d.ts +2 -0
- package/index.d.ts +0 -15
- package/index.js +0 -1452
- package/index.mjs +0 -1430
- /package/{AbortError.d.ts → typings/AbortError.d.cts} +0 -0
- /package/{AbortSignal.d.ts → typings/AbortSignal.d.cts} +0 -0
- /package/{Blob.d.ts → typings/Blob.d.cts} +0 -0
- /package/{Headers.d.ts → typings/Headers.d.cts} +0 -0
- /package/{ReadableStream.d.ts → typings/ReadableStream.d.cts} +0 -0
- /package/{TextEncoderDecoder.d.ts → typings/TextEncoderDecoder.d.cts} +0 -0
- /package/{URLSearchParams.d.ts → typings/URLSearchParams.d.cts} +0 -0
- /package/{utils.d.ts → typings/utils.d.cts} +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@whatwg-node/node-fetch",
|
3
|
-
"version": "0.3.3
|
3
|
+
"version": "0.3.3",
|
4
4
|
"description": "Fetch API implementation for Node",
|
5
5
|
"sideEffects": false,
|
6
6
|
"peerDependencies": {
|
@@ -20,21 +20,28 @@
|
|
20
20
|
},
|
21
21
|
"author": "Arda TANRIKULU <ardatanrikulu@gmail.com>",
|
22
22
|
"license": "MIT",
|
23
|
-
"main": "index.js",
|
24
|
-
"module": "index.
|
25
|
-
"typings": "index.d.ts",
|
23
|
+
"main": "cjs/index.js",
|
24
|
+
"module": "esm/index.js",
|
25
|
+
"typings": "typings/index.d.ts",
|
26
26
|
"typescript": {
|
27
|
-
"definition": "index.d.ts"
|
27
|
+
"definition": "typings/index.d.ts"
|
28
28
|
},
|
29
|
+
"type": "module",
|
29
30
|
"exports": {
|
30
31
|
".": {
|
31
|
-
"require":
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
"
|
36
|
-
|
32
|
+
"require": {
|
33
|
+
"types": "./typings/index.d.cts",
|
34
|
+
"default": "./cjs/index.js"
|
35
|
+
},
|
36
|
+
"import": {
|
37
|
+
"types": "./typings/index.d.ts",
|
38
|
+
"default": "./esm/index.js"
|
39
|
+
},
|
40
|
+
"default": {
|
41
|
+
"types": "./typings/index.d.ts",
|
42
|
+
"default": "./esm/index.js"
|
43
|
+
}
|
37
44
|
},
|
38
45
|
"./package.json": "./package.json"
|
39
46
|
}
|
40
|
-
}
|
47
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { EventTarget } from '@whatwg-node/events';
|
2
|
+
export declare class PonyfillAbortSignal extends EventTarget implements AbortSignal {
|
3
|
+
aborted: boolean;
|
4
|
+
_onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
5
|
+
reason: any;
|
6
|
+
throwIfAborted(): void;
|
7
|
+
get onabort(): ((this: AbortSignal, ev: Event) => any) | null;
|
8
|
+
set onabort(value: ((this: AbortSignal, ev: Event) => any) | null);
|
9
|
+
abort(reason?: any): void;
|
10
|
+
static timeout(milliseconds: number): PonyfillAbortSignal;
|
11
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { BlobOptions } from 'buffer';
|
3
|
+
export declare class PonyfillBlob implements Blob {
|
4
|
+
private blobParts;
|
5
|
+
type: string;
|
6
|
+
private encoding;
|
7
|
+
constructor(blobParts: BlobPart[], options?: BlobOptions);
|
8
|
+
buffer(): Promise<Buffer>;
|
9
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
10
|
+
text(): Promise<string>;
|
11
|
+
get size(): number;
|
12
|
+
stream(): any;
|
13
|
+
slice(): any;
|
14
|
+
}
|
15
|
+
export interface PonyfillBlob {
|
16
|
+
prototype: Blob;
|
17
|
+
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
|
18
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
/// <reference types="node" />
|
3
|
+
import { Readable } from 'stream';
|
4
|
+
import { PonyfillBlob } from './Blob.cjs';
|
5
|
+
import { PonyfillFormData } from './FormData.cjs';
|
6
|
+
import { PonyfillReadableStream } from './ReadableStream.cjs';
|
7
|
+
export type BodyPonyfillInit = XMLHttpRequestBodyInit | Readable | PonyfillReadableStream<Uint8Array> | AsyncIterable<Uint8Array>;
|
8
|
+
export interface FormDataLimits {
|
9
|
+
fieldNameSize?: number;
|
10
|
+
fieldSize?: number;
|
11
|
+
fields?: number;
|
12
|
+
fileSize?: number;
|
13
|
+
files?: number;
|
14
|
+
parts?: number;
|
15
|
+
headerSize?: number;
|
16
|
+
}
|
17
|
+
export interface PonyfillBodyOptions {
|
18
|
+
formDataLimits?: FormDataLimits;
|
19
|
+
}
|
20
|
+
export declare class PonyfillBody<TJSON = any> implements Body {
|
21
|
+
private bodyInit;
|
22
|
+
private options;
|
23
|
+
bodyUsed: boolean;
|
24
|
+
contentType: string | null;
|
25
|
+
contentLength: number | null;
|
26
|
+
constructor(bodyInit: BodyPonyfillInit | null, options?: PonyfillBodyOptions);
|
27
|
+
private bodyType?;
|
28
|
+
private _bodyFactory;
|
29
|
+
private _generatedBody;
|
30
|
+
private generateBody;
|
31
|
+
get body(): PonyfillReadableStream<Uint8Array> | null;
|
32
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
33
|
+
_collectChunksFromReadable(): Promise<Uint8Array[]>;
|
34
|
+
blob(): Promise<PonyfillBlob>;
|
35
|
+
formData(opts?: {
|
36
|
+
formDataLimits: FormDataLimits;
|
37
|
+
}): Promise<PonyfillFormData>;
|
38
|
+
buffer(): Promise<Buffer>;
|
39
|
+
json(): Promise<TJSON>;
|
40
|
+
text(): Promise<string>;
|
41
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
/// <reference types="node" />
|
3
3
|
import { Readable } from 'stream';
|
4
|
-
import { PonyfillBlob } from './Blob';
|
5
|
-
import { PonyfillFormData } from './FormData';
|
6
|
-
import { PonyfillReadableStream } from './ReadableStream';
|
4
|
+
import { PonyfillBlob } from './Blob.js';
|
5
|
+
import { PonyfillFormData } from './FormData.js';
|
6
|
+
import { PonyfillReadableStream } from './ReadableStream.js';
|
7
7
|
export type BodyPonyfillInit = XMLHttpRequestBodyInit | Readable | PonyfillReadableStream<Uint8Array> | AsyncIterable<Uint8Array>;
|
8
8
|
export interface FormDataLimits {
|
9
9
|
fieldNameSize?: number;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { PonyfillBlob } from './Blob.cjs';
|
2
|
+
export declare class PonyfillFile extends PonyfillBlob implements File {
|
3
|
+
name: string;
|
4
|
+
lastModified: number;
|
5
|
+
constructor(fileBits: BlobPart[], name: string, options?: FilePropertyBag);
|
6
|
+
webkitRelativePath: string;
|
7
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { PonyfillBlob } from './Blob.cjs';
|
2
|
+
import { PonyfillReadableStream } from './ReadableStream.cjs';
|
3
|
+
export declare class PonyfillFormData implements FormData {
|
4
|
+
private map;
|
5
|
+
append(name: string, value: PonyfillBlob | string, fileName?: string): void;
|
6
|
+
delete(name: string): void;
|
7
|
+
get(name: string): FormDataEntryValue | null;
|
8
|
+
getAll(name: string): FormDataEntryValue[];
|
9
|
+
has(name: string): boolean;
|
10
|
+
set(name: string, value: PonyfillBlob | string, fileName?: string): void;
|
11
|
+
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
|
12
|
+
entries(): IterableIterator<[string, FormDataEntryValue]>;
|
13
|
+
keys(): IterableIterator<string>;
|
14
|
+
values(): IterableIterator<FormDataEntryValue>;
|
15
|
+
forEach(callback: (value: FormDataEntryValue, key: string, parent: this) => void): void;
|
16
|
+
}
|
17
|
+
export declare function getStreamFromFormData(formData: FormData, boundary?: string): PonyfillReadableStream<Uint8Array>;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { PonyfillBlob } from './Blob';
|
2
|
-
import { PonyfillReadableStream } from './ReadableStream';
|
1
|
+
import { PonyfillBlob } from './Blob.js';
|
2
|
+
import { PonyfillReadableStream } from './ReadableStream.js';
|
3
3
|
export declare class PonyfillFormData implements FormData {
|
4
4
|
private map;
|
5
5
|
append(name: string, value: PonyfillBlob | string, fileName?: string): void;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export type PonyfillHeadersInit = [string, string][] | Record<string, string | string[] | undefined> | Headers;
|
2
|
+
export declare class PonyfillHeaders implements Headers {
|
3
|
+
private headersInit?;
|
4
|
+
private map;
|
5
|
+
private mapIsBuilt;
|
6
|
+
private objectNormalizedKeysOfHeadersInit;
|
7
|
+
private objectOriginalKeysOfHeadersInit;
|
8
|
+
constructor(headersInit?: PonyfillHeadersInit | undefined);
|
9
|
+
private _get;
|
10
|
+
private getMap;
|
11
|
+
append(name: string, value: string): void;
|
12
|
+
get(name: string): string | null;
|
13
|
+
has(name: string): boolean;
|
14
|
+
set(name: string, value: string): void;
|
15
|
+
delete(name: string): void;
|
16
|
+
forEach(callback: (value: string, key: string, parent: Headers) => void): void;
|
17
|
+
keys(): IterableIterator<string>;
|
18
|
+
values(): IterableIterator<string>;
|
19
|
+
entries(): IterableIterator<[string, string]>;
|
20
|
+
[Symbol.iterator](): IterableIterator<[string, string]>;
|
21
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { Readable } from 'stream';
|
3
|
+
export declare class PonyfillReadableStream<T> implements ReadableStream<T> {
|
4
|
+
readable: Readable;
|
5
|
+
constructor(underlyingSource?: UnderlyingSource<T> | Readable | ReadableStream<T> | PonyfillReadableStream<T>);
|
6
|
+
cancel(reason?: any): Promise<void>;
|
7
|
+
locked: boolean;
|
8
|
+
getReader(options: {
|
9
|
+
mode: 'byob';
|
10
|
+
}): ReadableStreamBYOBReader;
|
11
|
+
getReader(): ReadableStreamDefaultReader<T>;
|
12
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<any>;
|
13
|
+
tee(): [ReadableStream<T>, ReadableStream<T>];
|
14
|
+
pipeTo(destination: WritableStream<T>): Promise<void>;
|
15
|
+
pipeThrough<T2>({ writable, readable, }: {
|
16
|
+
writable: WritableStream<T>;
|
17
|
+
readable: ReadableStream<T2>;
|
18
|
+
}): ReadableStream<T2>;
|
19
|
+
static [Symbol.hasInstance](instance: unknown): instance is PonyfillReadableStream<unknown>;
|
20
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { BodyPonyfillInit, PonyfillBody, PonyfillBodyOptions } from './Body.cjs';
|
2
|
+
import { PonyfillHeadersInit } from './Headers.cjs';
|
3
|
+
export type RequestPonyfillInit = PonyfillBodyOptions & Omit<RequestInit, 'body' | 'headers'> & {
|
4
|
+
body?: BodyPonyfillInit | null;
|
5
|
+
headers?: PonyfillHeadersInit;
|
6
|
+
};
|
7
|
+
export declare class PonyfillRequest<TJSON = any> extends PonyfillBody<TJSON> implements Request {
|
8
|
+
constructor(input: RequestInfo | URL, options?: RequestPonyfillInit);
|
9
|
+
cache: RequestCache;
|
10
|
+
credentials: RequestCredentials;
|
11
|
+
destination: RequestDestination;
|
12
|
+
headers: Headers;
|
13
|
+
integrity: string;
|
14
|
+
keepalive: boolean;
|
15
|
+
method: string;
|
16
|
+
mode: RequestMode;
|
17
|
+
priority: string;
|
18
|
+
redirect: RequestRedirect;
|
19
|
+
referrer: string;
|
20
|
+
referrerPolicy: ReferrerPolicy;
|
21
|
+
url: string;
|
22
|
+
signal: AbortSignal;
|
23
|
+
clone(): Request;
|
24
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { BodyPonyfillInit, PonyfillBody, PonyfillBodyOptions } from './Body';
|
2
|
-
import { PonyfillHeadersInit } from './Headers';
|
1
|
+
import { BodyPonyfillInit, PonyfillBody, PonyfillBodyOptions } from './Body.js';
|
2
|
+
import { PonyfillHeadersInit } from './Headers.js';
|
3
3
|
export type RequestPonyfillInit = PonyfillBodyOptions & Omit<RequestInit, 'body' | 'headers'> & {
|
4
4
|
body?: BodyPonyfillInit | null;
|
5
5
|
headers?: PonyfillHeadersInit;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { BodyPonyfillInit, PonyfillBody, PonyfillBodyOptions } from './Body.cjs';
|
2
|
+
import { PonyfillHeadersInit } from './Headers.cjs';
|
3
|
+
export type ResponsePonyfilInit = PonyfillBodyOptions & Omit<ResponseInit, 'headers'> & {
|
4
|
+
url?: string;
|
5
|
+
redirected?: boolean;
|
6
|
+
headers?: PonyfillHeadersInit;
|
7
|
+
type?: ResponseType;
|
8
|
+
};
|
9
|
+
export declare class PonyfillResponse<TJSON = any> extends PonyfillBody<TJSON> implements Response {
|
10
|
+
constructor(body?: BodyPonyfillInit | null, init?: ResponsePonyfilInit);
|
11
|
+
headers: Headers;
|
12
|
+
get ok(): boolean;
|
13
|
+
status: number;
|
14
|
+
statusText: string;
|
15
|
+
url: string;
|
16
|
+
redirected: boolean;
|
17
|
+
type: ResponseType;
|
18
|
+
clone(): PonyfillResponse<any>;
|
19
|
+
static error(): PonyfillResponse<any>;
|
20
|
+
static redirect(url: string, status?: number): PonyfillResponse<any>;
|
21
|
+
static json<T = any>(data: T, init?: RequestInit): PonyfillResponse<T>;
|
22
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { BodyPonyfillInit, PonyfillBody, PonyfillBodyOptions } from './Body';
|
2
|
-
import { PonyfillHeadersInit } from './Headers';
|
1
|
+
import { BodyPonyfillInit, PonyfillBody, PonyfillBodyOptions } from './Body.js';
|
2
|
+
import { PonyfillHeadersInit } from './Headers.js';
|
3
3
|
export type ResponsePonyfilInit = PonyfillBodyOptions & Omit<ResponseInit, 'headers'> & {
|
4
4
|
url?: string;
|
5
5
|
redirected?: boolean;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
export declare class PonyfillTextEncoder implements TextEncoder {
|
3
|
+
encoding: BufferEncoding;
|
4
|
+
constructor(encoding?: BufferEncoding);
|
5
|
+
encode(input: string): Buffer;
|
6
|
+
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
7
|
+
}
|
8
|
+
export declare class PonyfillTextDecoder implements TextDecoder {
|
9
|
+
encoding: BufferEncoding;
|
10
|
+
fatal: boolean;
|
11
|
+
ignoreBOM: boolean;
|
12
|
+
constructor(encoding: BufferEncoding, options: TextDecoderOptions);
|
13
|
+
decode(input: Uint8Array): string;
|
14
|
+
}
|
15
|
+
export declare function PonyfillBtoa(input: string): string;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import FastUrl from 'fast-url-parser';
|
2
|
+
import { PonyfillURLSearchParams } from './URLSearchParams.cjs';
|
3
|
+
export declare class PonyfillURL extends FastUrl implements URL {
|
4
|
+
constructor(url: string, base?: string | URL);
|
5
|
+
get origin(): string;
|
6
|
+
private _searchParams?;
|
7
|
+
get searchParams(): PonyfillURLSearchParams;
|
8
|
+
get username(): string;
|
9
|
+
set username(value: string);
|
10
|
+
get password(): string;
|
11
|
+
set password(value: string);
|
12
|
+
toString(): string;
|
13
|
+
toJSON(): string;
|
14
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import FastUrl from 'fast-url-parser';
|
2
|
-
import { PonyfillURLSearchParams } from './URLSearchParams';
|
2
|
+
import { PonyfillURLSearchParams } from './URLSearchParams.js';
|
3
3
|
export declare class PonyfillURL extends FastUrl implements URL {
|
4
4
|
constructor(url: string, base?: string | URL);
|
5
5
|
get origin(): string;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare class PonyfillURLSearchParams implements URLSearchParams {
|
2
|
+
private params;
|
3
|
+
constructor(init?: string | string[][] | Record<string, string> | URLSearchParams);
|
4
|
+
append(name: string, value: string): void;
|
5
|
+
delete(name: string): void;
|
6
|
+
get(name: string): string | null;
|
7
|
+
getAll(name: string): string[];
|
8
|
+
has(name: string): boolean;
|
9
|
+
set(name: string, value: string): void;
|
10
|
+
sort(): void;
|
11
|
+
toString(): string;
|
12
|
+
keys(): IterableIterator<string>;
|
13
|
+
entries(): IterableIterator<[string, string]>;
|
14
|
+
values(): IterableIterator<string>;
|
15
|
+
[Symbol.iterator](): IterableIterator<[string, string]>;
|
16
|
+
forEach(callback: (value: string, key: string, parent: URLSearchParams) => void): void;
|
17
|
+
}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { PonyfillRequest, RequestPonyfillInit } from './Request.cjs';
|
2
|
+
import { PonyfillResponse } from './Response.cjs';
|
3
|
+
export declare function fetchPonyfill<TResponseJSON = any, TRequestJSON = any>(info: string | PonyfillRequest<TRequestJSON> | URL, init?: RequestPonyfillInit): Promise<PonyfillResponse<TResponseJSON>>;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { PonyfillRequest, RequestPonyfillInit } from './Request';
|
2
|
-
import { PonyfillResponse } from './Response';
|
1
|
+
import { PonyfillRequest, RequestPonyfillInit } from './Request.js';
|
2
|
+
import { PonyfillResponse } from './Response.js';
|
3
3
|
export declare function fetchPonyfill<TResponseJSON = any, TRequestJSON = any>(info: string | PonyfillRequest<TRequestJSON> | URL, init?: RequestPonyfillInit): Promise<PonyfillResponse<TResponseJSON>>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export { fetchPonyfill as fetch } from './fetch.cjs';
|
2
|
+
export { PonyfillHeaders as Headers } from './Headers.cjs';
|
3
|
+
export { PonyfillBody as Body } from './Body.cjs';
|
4
|
+
export { PonyfillRequest as Request, RequestPonyfillInit as RequestInit } from './Request.cjs';
|
5
|
+
export { PonyfillResponse as Response, ResponsePonyfilInit as ResponseInit } from './Response.cjs';
|
6
|
+
export { PonyfillReadableStream as ReadableStream } from './ReadableStream.cjs';
|
7
|
+
export { PonyfillFile as File } from './File.cjs';
|
8
|
+
export { PonyfillFormData as FormData } from './FormData.cjs';
|
9
|
+
export { PonyfillAbortController as AbortController } from './AbortController.cjs';
|
10
|
+
export { PonyfillAbortSignal as AbortSignal } from './AbortSignal.cjs';
|
11
|
+
export { PonyfillAbortError as AbortError } from './AbortError.cjs';
|
12
|
+
export { PonyfillBlob as Blob } from './Blob.cjs';
|
13
|
+
export { PonyfillTextEncoder as TextEncoder, PonyfillTextDecoder as TextDecoder, PonyfillBtoa as btoa, } from './TextEncoderDecoder.cjs';
|
14
|
+
export { PonyfillURL as URL } from './URL.cjs';
|
15
|
+
export { PonyfillURLSearchParams as URLSearchParams } from './URLSearchParams.cjs';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export { fetchPonyfill as fetch } from './fetch.js';
|
2
|
+
export { PonyfillHeaders as Headers } from './Headers.js';
|
3
|
+
export { PonyfillBody as Body } from './Body.js';
|
4
|
+
export { PonyfillRequest as Request, RequestPonyfillInit as RequestInit } from './Request.js';
|
5
|
+
export { PonyfillResponse as Response, ResponsePonyfilInit as ResponseInit } from './Response.js';
|
6
|
+
export { PonyfillReadableStream as ReadableStream } from './ReadableStream.js';
|
7
|
+
export { PonyfillFile as File } from './File.js';
|
8
|
+
export { PonyfillFormData as FormData } from './FormData.js';
|
9
|
+
export { PonyfillAbortController as AbortController } from './AbortController.js';
|
10
|
+
export { PonyfillAbortSignal as AbortSignal } from './AbortSignal.js';
|
11
|
+
export { PonyfillAbortError as AbortError } from './AbortError.js';
|
12
|
+
export { PonyfillBlob as Blob } from './Blob.js';
|
13
|
+
export { PonyfillTextEncoder as TextEncoder, PonyfillTextDecoder as TextDecoder, PonyfillBtoa as btoa, } from './TextEncoderDecoder.js';
|
14
|
+
export { PonyfillURL as URL } from './URL.js';
|
15
|
+
export { PonyfillURLSearchParams as URLSearchParams } from './URLSearchParams.js';
|
package/index.d.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
export { fetchPonyfill as fetch } from './fetch';
|
2
|
-
export { PonyfillHeaders as Headers } from './Headers';
|
3
|
-
export { PonyfillBody as Body } from './Body';
|
4
|
-
export { PonyfillRequest as Request, RequestPonyfillInit as RequestInit } from './Request';
|
5
|
-
export { PonyfillResponse as Response, ResponsePonyfilInit as ResponseInit } from './Response';
|
6
|
-
export { PonyfillReadableStream as ReadableStream } from './ReadableStream';
|
7
|
-
export { PonyfillFile as File } from './File';
|
8
|
-
export { PonyfillFormData as FormData } from './FormData';
|
9
|
-
export { PonyfillAbortController as AbortController } from './AbortController';
|
10
|
-
export { PonyfillAbortSignal as AbortSignal } from './AbortSignal';
|
11
|
-
export { PonyfillAbortError as AbortError } from './AbortError';
|
12
|
-
export { PonyfillBlob as Blob } from './Blob';
|
13
|
-
export { PonyfillTextEncoder as TextEncoder, PonyfillTextDecoder as TextDecoder, PonyfillBtoa as btoa, } from './TextEncoderDecoder';
|
14
|
-
export { PonyfillURL as URL } from './URL';
|
15
|
-
export { PonyfillURLSearchParams as URLSearchParams } from './URLSearchParams';
|