initial commit
This commit is contained in:
11
node_modules/unenv/runtime/npm/node-fetch.mjs
generated
vendored
Normal file
11
node_modules/unenv/runtime/npm/node-fetch.mjs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
const fetch = (...args) => globalThis.fetch(...args);
|
||||
export const Headers = globalThis.Headers;
|
||||
export const Request = globalThis.Request;
|
||||
export const Response = globalThis.Response;
|
||||
export const FetchError = Error;
|
||||
export const AbortError = Error;
|
||||
const redirectStatus = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
||||
export const isRedirect = (code) => redirectStatus.has(code);
|
||||
fetch.Promise = globalThis.Promise;
|
||||
fetch.isRedirect = isRedirect;
|
||||
export default fetch;
|
||||
Reference in New Issue
Block a user