initial commit
This commit is contained in:
0
node_modules/node-fetch-native/lib/empty.mjs
generated
vendored
Normal file
0
node_modules/node-fetch-native/lib/empty.mjs
generated
vendored
Normal file
11
node_modules/node-fetch-native/lib/index.cjs
generated
vendored
Normal file
11
node_modules/node-fetch-native/lib/index.cjs
generated
vendored
Normal file
@@ -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
node_modules/node-fetch-native/lib/index.d.ts
generated
vendored
Normal file
10
node_modules/node-fetch-native/lib/index.d.ts
generated
vendored
Normal file
@@ -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