full site update
This commit is contained in:
0
node_modules/node-fetch-native/lib/empty.cjs
generated
vendored
Normal file
0
node_modules/node-fetch-native/lib/empty.cjs
generated
vendored
Normal file
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.cts
generated
vendored
Normal file
10
node_modules/node-fetch-native/lib/index.d.cts
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;
|
10
node_modules/node-fetch-native/lib/index.d.mts
generated
vendored
Normal file
10
node_modules/node-fetch-native/lib/index.d.mts
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;
|
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;
|
11
node_modules/node-fetch-native/lib/native.cjs
generated
vendored
Normal file
11
node_modules/node-fetch-native/lib/native.cjs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
const nodeFetch = require("../dist/native.cjs");
|
||||
|
||||
function fetch(input, options) {
|
||||
return nodeFetch.fetch(input, options);
|
||||
}
|
||||
|
||||
for (const key in nodeFetch) {
|
||||
fetch[key] = nodeFetch[key];
|
||||
}
|
||||
|
||||
module.exports = fetch;
|
1
node_modules/node-fetch-native/lib/polyfill.d.cts
generated
vendored
Normal file
1
node_modules/node-fetch-native/lib/polyfill.d.cts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
1
node_modules/node-fetch-native/lib/polyfill.d.mts
generated
vendored
Normal file
1
node_modules/node-fetch-native/lib/polyfill.d.mts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
1
node_modules/node-fetch-native/lib/polyfill.d.ts
generated
vendored
Normal file
1
node_modules/node-fetch-native/lib/polyfill.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
32
node_modules/node-fetch-native/lib/proxy.d.ts
generated
vendored
Normal file
32
node_modules/node-fetch-native/lib/proxy.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import type * as http from "node:http";
|
||||
import type * as https from "node:https";
|
||||
import type * as undici from "undici";
|
||||
|
||||
export type ProxyOptions = {
|
||||
/**
|
||||
* HTTP(s) Proxy URL
|
||||
*
|
||||
* Default is read from `https_proxy`, `http_proxy`, `HTTPS_PROXY` or `HTTP_PROXY` environment variables
|
||||
* */
|
||||
url?: string;
|
||||
|
||||
/**
|
||||
* List of hosts to skip proxy for (comma separated or array of strings)
|
||||
*
|
||||
* Default is read from `no_proxy` or `NO_PROXY` environment variables
|
||||
*
|
||||
* Hots starting with a leading dot, like `.foo.com` are also matched against domain and all its subdomains like `bar.foo.com`
|
||||
*/
|
||||
noProxy?: string | string[];
|
||||
};
|
||||
|
||||
export declare const createProxy: (opts?: ProxyOptions) => {
|
||||
agent: http.Agent | https.Agent | undefined;
|
||||
dispatcher: undici.Dispatcher | undefined;
|
||||
};
|
||||
|
||||
export declare const createFetch: (
|
||||
proxyOptions?: ProxyOptions,
|
||||
) => typeof globalThis.fetch;
|
||||
|
||||
export declare const fetch: typeof globalThis.fetch;
|
Reference in New Issue
Block a user