@delta-comic/request 1.3.2 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +37 -37
- package/dist/index.js.map +1 -1
- package/dist/pack.tgz +0 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -52,14 +52,14 @@ var r = class {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
//#endregion
|
|
55
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
55
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/bind.js
|
|
56
56
|
function i(e, t) {
|
|
57
57
|
return function() {
|
|
58
58
|
return e.apply(t, arguments);
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
//#endregion
|
|
62
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
62
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/utils.js
|
|
63
63
|
var { toString: a } = Object.prototype, { getPrototypeOf: o } = Object, { iterator: s, toStringTag: c } = Symbol, l = ((e) => (t) => {
|
|
64
64
|
let n = a.call(t);
|
|
65
65
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
@@ -321,7 +321,7 @@ var ze = (e) => {
|
|
|
321
321
|
};
|
|
322
322
|
D.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", D.ERR_BAD_OPTION = "ERR_BAD_OPTION", D.ECONNABORTED = "ECONNABORTED", D.ETIMEDOUT = "ETIMEDOUT", D.ERR_NETWORK = "ERR_NETWORK", D.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", D.ERR_DEPRECATED = "ERR_DEPRECATED", D.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", D.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", D.ERR_CANCELED = "ERR_CANCELED", D.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", D.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
323
323
|
//#endregion
|
|
324
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
324
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toFormData.js
|
|
325
325
|
function O(e) {
|
|
326
326
|
return E.isPlainObject(e) || E.isArray(e);
|
|
327
327
|
}
|
|
@@ -385,7 +385,7 @@ function A(e, t, n) {
|
|
|
385
385
|
return f(e), t;
|
|
386
386
|
}
|
|
387
387
|
//#endregion
|
|
388
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
388
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
389
389
|
function Ke(e) {
|
|
390
390
|
let t = {
|
|
391
391
|
"!": "%21",
|
|
@@ -415,7 +415,7 @@ qe.append = function(e, t) {
|
|
|
415
415
|
}, "").join("&");
|
|
416
416
|
};
|
|
417
417
|
//#endregion
|
|
418
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
418
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/buildURL.js
|
|
419
419
|
function Je(e) {
|
|
420
420
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
421
421
|
}
|
|
@@ -429,7 +429,7 @@ function Ye(e, t, n) {
|
|
|
429
429
|
return e;
|
|
430
430
|
}
|
|
431
431
|
//#endregion
|
|
432
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
432
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/InterceptorManager.js
|
|
433
433
|
var Xe = class {
|
|
434
434
|
constructor() {
|
|
435
435
|
this.handlers = [];
|
|
@@ -488,7 +488,7 @@ var Xe = class {
|
|
|
488
488
|
...Ze
|
|
489
489
|
};
|
|
490
490
|
//#endregion
|
|
491
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
491
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
492
492
|
function nt(e, t) {
|
|
493
493
|
return A(e, new F.classes.URLSearchParams(), {
|
|
494
494
|
visitor: function(e, t, n, r) {
|
|
@@ -498,7 +498,7 @@ function nt(e, t) {
|
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
//#endregion
|
|
501
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
501
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
502
502
|
function rt(e) {
|
|
503
503
|
return E.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
504
504
|
}
|
|
@@ -523,7 +523,7 @@ function at(e) {
|
|
|
523
523
|
return null;
|
|
524
524
|
}
|
|
525
525
|
//#endregion
|
|
526
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
526
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/index.js
|
|
527
527
|
function ot(e, t, n) {
|
|
528
528
|
if (E.isString(e)) try {
|
|
529
529
|
return (t || JSON.parse)(e), E.trim(e);
|
|
@@ -596,7 +596,7 @@ E.forEach([
|
|
|
596
596
|
I.headers[e] = {};
|
|
597
597
|
});
|
|
598
598
|
//#endregion
|
|
599
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
599
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseHeaders.js
|
|
600
600
|
var st = E.toObjectSet([
|
|
601
601
|
"age",
|
|
602
602
|
"authorization",
|
|
@@ -625,7 +625,7 @@ function L(e) {
|
|
|
625
625
|
return e && String(e).trim().toLowerCase();
|
|
626
626
|
}
|
|
627
627
|
function R(e) {
|
|
628
|
-
return e === !1 || e == null ? e : E.isArray(e) ? e.map(R) : String(e);
|
|
628
|
+
return e === !1 || e == null ? e : E.isArray(e) ? e.map(R) : String(e).replace(/[\r\n]+$/, "");
|
|
629
629
|
}
|
|
630
630
|
function ut(e) {
|
|
631
631
|
let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
|
|
@@ -787,7 +787,7 @@ B.accessor([
|
|
|
787
787
|
};
|
|
788
788
|
}), E.freezeMethods(B);
|
|
789
789
|
//#endregion
|
|
790
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
790
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/transformData.js
|
|
791
791
|
function V(e, t) {
|
|
792
792
|
let n = this || I, r = t || n, i = B.from(r.headers), a = r.data;
|
|
793
793
|
return E.forEach(e, function(e) {
|
|
@@ -795,31 +795,31 @@ function V(e, t) {
|
|
|
795
795
|
}), i.normalize(), a;
|
|
796
796
|
}
|
|
797
797
|
//#endregion
|
|
798
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
798
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/isCancel.js
|
|
799
799
|
function mt(e) {
|
|
800
800
|
return !!(e && e.__CANCEL__);
|
|
801
801
|
}
|
|
802
802
|
//#endregion
|
|
803
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
803
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CanceledError.js
|
|
804
804
|
var H = class extends D {
|
|
805
805
|
constructor(e, t, n) {
|
|
806
806
|
super(e ?? "canceled", D.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
807
807
|
}
|
|
808
808
|
};
|
|
809
809
|
//#endregion
|
|
810
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
810
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/settle.js
|
|
811
811
|
function ht(e, t, n) {
|
|
812
812
|
let r = n.config.validateStatus;
|
|
813
813
|
!n.status || !r || r(n.status) ? e(n) : t(new D("Request failed with status code " + n.status, [D.ERR_BAD_REQUEST, D.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
|
|
814
814
|
}
|
|
815
815
|
//#endregion
|
|
816
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
816
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseProtocol.js
|
|
817
817
|
function gt(e) {
|
|
818
818
|
let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
819
819
|
return t && t[1] || "";
|
|
820
820
|
}
|
|
821
821
|
//#endregion
|
|
822
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
822
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/speedometer.js
|
|
823
823
|
function _t(e, t) {
|
|
824
824
|
e ||= 10;
|
|
825
825
|
let n = Array(e), r = Array(e), i = 0, a = 0, o;
|
|
@@ -834,7 +834,7 @@ function _t(e, t) {
|
|
|
834
834
|
};
|
|
835
835
|
}
|
|
836
836
|
//#endregion
|
|
837
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
837
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/throttle.js
|
|
838
838
|
function vt(e, t) {
|
|
839
839
|
let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
|
|
840
840
|
n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
|
|
@@ -847,7 +847,7 @@ function vt(e, t) {
|
|
|
847
847
|
}, () => i && o(i)];
|
|
848
848
|
}
|
|
849
849
|
//#endregion
|
|
850
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
850
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
851
851
|
var U = (e, t, n = 3) => {
|
|
852
852
|
let r = 0, i = _t(50, 250);
|
|
853
853
|
return vt((n) => {
|
|
@@ -893,23 +893,23 @@ var U = (e, t, n = 3) => {
|
|
|
893
893
|
remove() {}
|
|
894
894
|
};
|
|
895
895
|
//#endregion
|
|
896
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
896
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
897
897
|
function Ct(e) {
|
|
898
898
|
return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
|
|
899
899
|
}
|
|
900
900
|
//#endregion
|
|
901
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
901
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/combineURLs.js
|
|
902
902
|
function wt(e, t) {
|
|
903
903
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
904
904
|
}
|
|
905
905
|
//#endregion
|
|
906
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
906
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/buildFullPath.js
|
|
907
907
|
function Tt(e, t, n) {
|
|
908
908
|
let r = !Ct(t);
|
|
909
909
|
return e && (r || n == 0) ? wt(e, t) : t;
|
|
910
910
|
}
|
|
911
911
|
//#endregion
|
|
912
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
912
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/mergeConfig.js
|
|
913
913
|
var Et = (e) => e instanceof B ? { ...e } : e;
|
|
914
914
|
function W(e, t) {
|
|
915
915
|
t ||= {};
|
|
@@ -973,7 +973,7 @@ function W(e, t) {
|
|
|
973
973
|
}), n;
|
|
974
974
|
}
|
|
975
975
|
//#endregion
|
|
976
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
976
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/resolveConfig.js
|
|
977
977
|
var Dt = (e) => {
|
|
978
978
|
let t = W({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
|
|
979
979
|
if (t.headers = o = B.from(o), t.url = Ye(Tt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), E.isFormData(n)) {
|
|
@@ -1117,14 +1117,14 @@ var Dt = (e) => {
|
|
|
1117
1117
|
let { fetch: t, Request: n, Response: r } = e, i = t ? G(t) : typeof fetch == "function", a = G(n), o = G(r);
|
|
1118
1118
|
if (!i) return !1;
|
|
1119
1119
|
let s = i && G(It), c = i && (typeof Lt == "function" ? ((e) => (t) => e.encode(t))(new Lt()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && Rt(() => {
|
|
1120
|
-
let e = !1, t = new n(F.origin, {
|
|
1121
|
-
body:
|
|
1120
|
+
let e = !1, t = new It(), r = new n(F.origin, {
|
|
1121
|
+
body: t,
|
|
1122
1122
|
method: "POST",
|
|
1123
1123
|
get duplex() {
|
|
1124
1124
|
return e = !0, "half";
|
|
1125
1125
|
}
|
|
1126
1126
|
}).headers.has("Content-Type");
|
|
1127
|
-
return e && !
|
|
1127
|
+
return t.cancel(), e && !r;
|
|
1128
1128
|
}), u = o && s && Rt(() => E.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
|
|
1129
1129
|
i && [
|
|
1130
1130
|
"text",
|
|
@@ -1220,7 +1220,7 @@ var Dt = (e) => {
|
|
|
1220
1220
|
};
|
|
1221
1221
|
Vt();
|
|
1222
1222
|
//#endregion
|
|
1223
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
1223
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/adapters.js
|
|
1224
1224
|
var K = {
|
|
1225
1225
|
http: null,
|
|
1226
1226
|
xhr: Ot,
|
|
@@ -1256,7 +1256,7 @@ var Gt = {
|
|
|
1256
1256
|
adapters: K
|
|
1257
1257
|
};
|
|
1258
1258
|
//#endregion
|
|
1259
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
1259
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/dispatchRequest.js
|
|
1260
1260
|
function q(e) {
|
|
1261
1261
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new H(null, e);
|
|
1262
1262
|
}
|
|
@@ -1272,8 +1272,8 @@ function Kt(e) {
|
|
|
1272
1272
|
});
|
|
1273
1273
|
}
|
|
1274
1274
|
//#endregion
|
|
1275
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
1276
|
-
var qt = "1.
|
|
1275
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/env/data.js
|
|
1276
|
+
var qt = "1.14.0", J = {};
|
|
1277
1277
|
[
|
|
1278
1278
|
"object",
|
|
1279
1279
|
"boolean",
|
|
@@ -1434,7 +1434,7 @@ E.forEach([
|
|
|
1434
1434
|
Z.prototype[e] = t(), Z.prototype[e + "Form"] = t(!0);
|
|
1435
1435
|
});
|
|
1436
1436
|
//#endregion
|
|
1437
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
1437
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CancelToken.js
|
|
1438
1438
|
var Xt = class e {
|
|
1439
1439
|
constructor(e) {
|
|
1440
1440
|
if (typeof e != "function") throw TypeError("executor must be a function.");
|
|
@@ -1491,19 +1491,19 @@ var Xt = class e {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
};
|
|
1493
1493
|
//#endregion
|
|
1494
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
1494
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/spread.js
|
|
1495
1495
|
function Zt(e) {
|
|
1496
1496
|
return function(t) {
|
|
1497
1497
|
return e.apply(null, t);
|
|
1498
1498
|
};
|
|
1499
1499
|
}
|
|
1500
1500
|
//#endregion
|
|
1501
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
1501
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAxiosError.js
|
|
1502
1502
|
function Qt(e) {
|
|
1503
1503
|
return E.isObject(e) && e.isAxiosError === !0;
|
|
1504
1504
|
}
|
|
1505
1505
|
//#endregion
|
|
1506
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
1506
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
1507
1507
|
var $t = {
|
|
1508
1508
|
Continue: 100,
|
|
1509
1509
|
SwitchingProtocols: 101,
|
|
@@ -1579,7 +1579,7 @@ Object.entries($t).forEach(([e, t]) => {
|
|
|
1579
1579
|
$t[t] = e;
|
|
1580
1580
|
});
|
|
1581
1581
|
//#endregion
|
|
1582
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
1582
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/axios.js
|
|
1583
1583
|
function en(e) {
|
|
1584
1584
|
let t = new Z(e), n = i(Z.prototype.request, t);
|
|
1585
1585
|
return E.extend(n, Z.prototype, t, { allOwnKeys: !0 }), E.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
|
|
@@ -1591,7 +1591,7 @@ Q.Axios = Z, Q.CanceledError = H, Q.CancelToken = Xt, Q.isCancel = mt, Q.VERSION
|
|
|
1591
1591
|
return Promise.all(e);
|
|
1592
1592
|
}, Q.spread = Zt, Q.isAxiosError = Qt, Q.mergeConfig = W, Q.AxiosHeaders = B, Q.formToJSON = (e) => at(E.isHTMLForm(e) ? new FormData(e) : e), Q.getAdapter = Gt.getAdapter, Q.HttpStatusCode = $t, Q.default = Q;
|
|
1593
1593
|
//#endregion
|
|
1594
|
-
//#region ../../node_modules/.pnpm/axios@1.
|
|
1594
|
+
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/index.js
|
|
1595
1595
|
var { Axios: tn, AxiosError: nn, CanceledError: rn, isCancel: an, CancelToken: on, VERSION: sn, all: cn, Cancel: ln, isAxiosError: un, spread: dn, toFormData: fn, AxiosHeaders: pn, HttpStatusCode: mn, formToJSON: hn, getAdapter: gn, mergeConfig: _n } = Q, vn = class extends Error {
|
|
1596
1596
|
constructor(e = "The operation was aborted") {
|
|
1597
1597
|
super(e), this.name = "AbortError";
|