Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 4f6f4d8

Browse files
committed
fuck the fetch
1 parent fad222e commit 4f6f4d8

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/fuck-the-fetch.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1-
import fetch, {
2-
Blob,
3-
blobFrom,
4-
blobFromSync,
5-
File,
6-
fileFrom,
7-
fileFromSync,
8-
FormData,
9-
Headers,
10-
Request,
11-
Response,
12-
} from "node-fetch";
1+
import fetch, { Blob, Headers, Request, Response } from "node-fetch";
132

143
(fetch as any).__XX_PATCHED__ = true;
154
(globalThis as any).fetch = fetch;
165
(globalThis as any).Blob = Blob;
17-
(globalThis as any).blobFrom = blobFrom;
18-
(globalThis as any).blobFromSync = blobFromSync;
19-
(globalThis as any).File = File;
20-
(globalThis as any).fileFrom = fileFrom;
21-
(globalThis as any).fileFromSync = fileFromSync;
22-
(globalThis as any).FormData = FormData;
236
(globalThis as any).Headers = Headers;
247
(globalThis as any).Request = Request;
258
(globalThis as any).Response = Response;

0 commit comments

Comments
 (0)