initial commit
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
const nodeFetch = require("../dist/index.cjs");
|
||||
|
||||
function fetch (input, options) {
|
||||
return nodeFetch.fetch(input, options);
|
||||
}
|
||||
|
||||
for (const key in nodeFetch) {
|
||||
fetch[key] = nodeFetch[key];
|
||||
}
|
||||
|
||||
module.exports = fetch;
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
export declare const fetch: typeof globalThis.fetch;
|
||||
export declare const Blob: typeof globalThis.Blob;
|
||||
export declare const File: typeof globalThis.File;
|
||||
export declare const FormData: typeof globalThis.FormData;
|
||||
export declare const Headers: typeof globalThis.Headers;
|
||||
export declare const Request: typeof globalThis.Request;
|
||||
export declare const Response: typeof globalThis.Response;
|
||||
export declare const AbortController: typeof globalThis.AbortController;
|
||||
|
||||
export default fetch;
|
||||
Reference in New Issue
Block a user