initial commit
This commit is contained in:
28
node_modules/unenv/runtime/npm/node-fetch.cjs
generated
vendored
Normal file
28
node_modules/unenv/runtime/npm/node-fetch.cjs
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.isRedirect = exports.default = exports.Response = exports.Request = exports.Headers = exports.FetchError = exports.AbortError = void 0;
|
||||
|
||||
const fetch = (...args) => globalThis.fetch(...args);
|
||||
|
||||
const Headers = globalThis.Headers;
|
||||
exports.Headers = Headers;
|
||||
const Request = globalThis.Request;
|
||||
exports.Request = Request;
|
||||
const Response = globalThis.Response;
|
||||
exports.Response = Response;
|
||||
const FetchError = Error;
|
||||
exports.FetchError = FetchError;
|
||||
const AbortError = Error;
|
||||
exports.AbortError = AbortError;
|
||||
const redirectStatus = /* @__PURE__ */new Set([301, 302, 303, 307, 308]);
|
||||
|
||||
const isRedirect = code => redirectStatus.has(code);
|
||||
|
||||
exports.isRedirect = isRedirect;
|
||||
fetch.Promise = globalThis.Promise;
|
||||
fetch.isRedirect = isRedirect;
|
||||
var _default = fetch;
|
||||
module.exports = _default;
|
||||
Reference in New Issue
Block a user