@fragment-dev/cli 2026.2.10-1 → 2026.2.12-2
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/{chunk-JWNTCRIF.js → chunk-34FD7SEO.js} +482 -278
- package/dist/{chunk-K5YR2U62.js → chunk-35DUXCJ3.js} +2 -2
- package/dist/{chunk-NOGSS5QP.js → chunk-35UC73SK.js} +3 -3
- package/dist/{chunk-OJFPO3SF.js → chunk-56TKVU7S.js} +1 -1
- package/dist/{chunk-KERHWPH2.js → chunk-5BUOYWE6.js} +1 -1
- package/dist/{chunk-2LXXWE6V.js → chunk-5VQOJYB6.js} +2 -2
- package/dist/{chunk-E2APEK55.js → chunk-6GZ26RNA.js} +2 -2
- package/dist/{chunk-24DMZVEL.js → chunk-6ZYUVJ4K.js} +1 -1
- package/dist/{chunk-T45TSTAQ.js → chunk-7QS4OOE3.js} +2 -2
- package/dist/{chunk-S2H2GXXC.js → chunk-7TW2KTSU.js} +2 -2
- package/dist/{chunk-XUBNEHXD.js → chunk-AQZ5BNHQ.js} +2 -2
- package/dist/{chunk-5NLTSMZ4.js → chunk-BXOTZ44G.js} +2 -2
- package/dist/{chunk-ODRJQH2K.js → chunk-CPLM4QRN.js} +2 -2
- package/dist/{chunk-QOVQ4VX3.js → chunk-CQR5RBDX.js} +2 -2
- package/dist/{chunk-QBK3LAGY.js → chunk-FDUEBGE2.js} +2 -2
- package/dist/{chunk-2DNDGK5W.js → chunk-LUAGHKZW.js} +1 -1
- package/dist/{chunk-WMMLNAPF.js → chunk-OH3OU5JZ.js} +2 -2
- package/dist/{chunk-VVQCR6GY.js → chunk-PTAYONJY.js} +1 -1
- package/dist/{chunk-NDMXLDAQ.js → chunk-RPQQPUPM.js} +1 -1
- package/dist/{chunk-5UOG5RJJ.js → chunk-TFNZOM2G.js} +23 -23
- package/dist/{chunk-23FWWC5Q.js → chunk-TT42GJMO.js} +2 -2
- package/dist/{chunk-WOZYXIWP.js → chunk-UBPFZ3M3.js} +2 -2
- package/dist/{chunk-ELZ3W64C.js → chunk-UNU5ALKT.js} +3 -2
- package/dist/{chunk-E2MX6GMX.js → chunk-UTTB2HBQ.js} +2 -2
- package/dist/{chunk-SCS6SLPR.js → chunk-VVIQ2675.js} +2 -2
- package/dist/{chunk-QBJ5OH6K.js → chunk-WI7JYJZL.js} +1 -1
- package/dist/{chunk-OOVV5G4Q.js → chunk-Y75QUU2K.js} +1 -1
- package/dist/{chunk-FFEXPGGH.js → chunk-ZHDEHO5C.js} +1 -1
- package/dist/{chunk-Y3XCF6AG.js → chunk-ZZGXHUYA.js} +2 -2
- package/dist/commands/add-ledger-entry.js +3 -3
- package/dist/commands/create-custom-link.js +3 -3
- package/dist/commands/create-ledger.js +3 -3
- package/dist/commands/delete-custom-txs.js +3 -3
- package/dist/commands/delete-ledger.js +3 -3
- package/dist/commands/delete-schema.js +3 -3
- package/dist/commands/gen-graphql.js +3 -3
- package/dist/commands/get-schema.js +4 -4
- package/dist/commands/init.js +2 -2
- package/dist/commands/login.js +3 -3
- package/dist/commands/migrate-ledger-entry.js +3 -3
- package/dist/commands/query/ledgerAccounts.js +3 -3
- package/dist/commands/query/ledgers.js +3 -3
- package/dist/commands/query/schema.js +3 -3
- package/dist/commands/query/schemas.js +3 -3
- package/dist/commands/reverse-ledger-entry.js +3 -3
- package/dist/commands/start.js +2 -2
- package/dist/commands/store-schema.js +3 -3
- package/dist/commands/token.js +3 -3
- package/dist/commands/update-ledger-account.js +3 -3
- package/dist/commands/update.js +3 -3
- package/dist/commands/verify-schema.js +4 -4
- package/dist/commands/workspace.js +3 -3
- package/dist/commands.js +29 -29
- package/dist/index.js +29 -29
- package/dist/lib/authenticatedCommand.js +2 -2
- package/dist/lib/baseCommand.js +1 -1
- package/dist/utils/schemaValidation.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -35389,18 +35389,18 @@ var require_sign = __commonJS({
|
|
|
35389
35389
|
}
|
|
35390
35390
|
});
|
|
35391
35391
|
|
|
35392
|
-
// ../../node_modules/
|
|
35392
|
+
// ../../node_modules/form-data/node_modules/gopd/gOPD.js
|
|
35393
35393
|
var require_gOPD = __commonJS({
|
|
35394
|
-
"../../node_modules/
|
|
35394
|
+
"../../node_modules/form-data/node_modules/gopd/gOPD.js"(exports, module) {
|
|
35395
35395
|
"use strict";
|
|
35396
35396
|
init_cjs_shims();
|
|
35397
35397
|
module.exports = Object.getOwnPropertyDescriptor;
|
|
35398
35398
|
}
|
|
35399
35399
|
});
|
|
35400
35400
|
|
|
35401
|
-
// ../../node_modules/
|
|
35401
|
+
// ../../node_modules/form-data/node_modules/gopd/index.js
|
|
35402
35402
|
var require_gopd = __commonJS({
|
|
35403
|
-
"../../node_modules/
|
|
35403
|
+
"../../node_modules/form-data/node_modules/gopd/index.js"(exports, module) {
|
|
35404
35404
|
"use strict";
|
|
35405
35405
|
init_cjs_shims();
|
|
35406
35406
|
var $gOPD = require_gOPD();
|
|
@@ -35415,9 +35415,9 @@ var require_gopd = __commonJS({
|
|
|
35415
35415
|
}
|
|
35416
35416
|
});
|
|
35417
35417
|
|
|
35418
|
-
// ../../node_modules/
|
|
35418
|
+
// ../../node_modules/form-data/node_modules/es-define-property/index.js
|
|
35419
35419
|
var require_es_define_property = __commonJS({
|
|
35420
|
-
"../../node_modules/
|
|
35420
|
+
"../../node_modules/form-data/node_modules/es-define-property/index.js"(exports, module) {
|
|
35421
35421
|
"use strict";
|
|
35422
35422
|
init_cjs_shims();
|
|
35423
35423
|
var $defineProperty = Object.defineProperty || false;
|
|
@@ -35432,9 +35432,9 @@ var require_es_define_property = __commonJS({
|
|
|
35432
35432
|
}
|
|
35433
35433
|
});
|
|
35434
35434
|
|
|
35435
|
-
// ../../node_modules/
|
|
35435
|
+
// ../../node_modules/form-data/node_modules/has-symbols/shams.js
|
|
35436
35436
|
var require_shams = __commonJS({
|
|
35437
|
-
"../../node_modules/
|
|
35437
|
+
"../../node_modules/form-data/node_modules/has-symbols/shams.js"(exports, module) {
|
|
35438
35438
|
"use strict";
|
|
35439
35439
|
init_cjs_shims();
|
|
35440
35440
|
module.exports = function hasSymbols() {
|
|
@@ -35488,9 +35488,9 @@ var require_shams = __commonJS({
|
|
|
35488
35488
|
}
|
|
35489
35489
|
});
|
|
35490
35490
|
|
|
35491
|
-
// ../../node_modules/
|
|
35491
|
+
// ../../node_modules/form-data/node_modules/has-symbols/index.js
|
|
35492
35492
|
var require_has_symbols = __commonJS({
|
|
35493
|
-
"../../node_modules/
|
|
35493
|
+
"../../node_modules/form-data/node_modules/has-symbols/index.js"(exports, module) {
|
|
35494
35494
|
"use strict";
|
|
35495
35495
|
init_cjs_shims();
|
|
35496
35496
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
@@ -35756,9 +35756,9 @@ var require_get_proto = __commonJS({
|
|
|
35756
35756
|
}
|
|
35757
35757
|
});
|
|
35758
35758
|
|
|
35759
|
-
// ../../node_modules/
|
|
35759
|
+
// ../../node_modules/form-data/node_modules/hasown/index.js
|
|
35760
35760
|
var require_hasown = __commonJS({
|
|
35761
|
-
"../../node_modules/
|
|
35761
|
+
"../../node_modules/form-data/node_modules/hasown/index.js"(exports, module) {
|
|
35762
35762
|
"use strict";
|
|
35763
35763
|
init_cjs_shims();
|
|
35764
35764
|
var call = Function.prototype.call;
|
|
@@ -35768,9 +35768,9 @@ var require_hasown = __commonJS({
|
|
|
35768
35768
|
}
|
|
35769
35769
|
});
|
|
35770
35770
|
|
|
35771
|
-
// ../../node_modules/
|
|
35771
|
+
// ../../node_modules/form-data/node_modules/get-intrinsic/index.js
|
|
35772
35772
|
var require_get_intrinsic = __commonJS({
|
|
35773
|
-
"../../node_modules/
|
|
35773
|
+
"../../node_modules/form-data/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
35774
35774
|
"use strict";
|
|
35775
35775
|
init_cjs_shims();
|
|
35776
35776
|
var undefined2;
|
|
@@ -36165,9 +36165,9 @@ var require_shams3 = __commonJS({
|
|
|
36165
36165
|
}
|
|
36166
36166
|
});
|
|
36167
36167
|
|
|
36168
|
-
// ../../node_modules/es-set-tostringtag/index.js
|
|
36168
|
+
// ../../node_modules/form-data/node_modules/es-set-tostringtag/index.js
|
|
36169
36169
|
var require_es_set_tostringtag = __commonJS({
|
|
36170
|
-
"../../node_modules/es-set-tostringtag/index.js"(exports, module) {
|
|
36170
|
+
"../../node_modules/form-data/node_modules/es-set-tostringtag/index.js"(exports, module) {
|
|
36171
36171
|
"use strict";
|
|
36172
36172
|
init_cjs_shims();
|
|
36173
36173
|
var GetIntrinsic = require_get_intrinsic();
|
|
@@ -36198,21 +36198,9 @@ var require_es_set_tostringtag = __commonJS({
|
|
|
36198
36198
|
}
|
|
36199
36199
|
});
|
|
36200
36200
|
|
|
36201
|
-
// ../../node_modules/
|
|
36202
|
-
var require_hasown2 = __commonJS({
|
|
36203
|
-
"../../node_modules/axios/node_modules/hasown/index.js"(exports, module) {
|
|
36204
|
-
"use strict";
|
|
36205
|
-
init_cjs_shims();
|
|
36206
|
-
var call = Function.prototype.call;
|
|
36207
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
36208
|
-
var bind = require_function_bind();
|
|
36209
|
-
module.exports = bind.call(call, $hasOwn);
|
|
36210
|
-
}
|
|
36211
|
-
});
|
|
36212
|
-
|
|
36213
|
-
// ../../node_modules/axios/node_modules/form-data/lib/populate.js
|
|
36201
|
+
// ../../node_modules/form-data/lib/populate.js
|
|
36214
36202
|
var require_populate = __commonJS({
|
|
36215
|
-
"../../node_modules/
|
|
36203
|
+
"../../node_modules/form-data/lib/populate.js"(exports, module) {
|
|
36216
36204
|
"use strict";
|
|
36217
36205
|
init_cjs_shims();
|
|
36218
36206
|
module.exports = function(dst, src) {
|
|
@@ -36224,9 +36212,9 @@ var require_populate = __commonJS({
|
|
|
36224
36212
|
}
|
|
36225
36213
|
});
|
|
36226
36214
|
|
|
36227
|
-
// ../../node_modules/
|
|
36215
|
+
// ../../node_modules/form-data/lib/form_data.js
|
|
36228
36216
|
var require_form_data = __commonJS({
|
|
36229
|
-
"../../node_modules/
|
|
36217
|
+
"../../node_modules/form-data/lib/form_data.js"(exports, module) {
|
|
36230
36218
|
"use strict";
|
|
36231
36219
|
init_cjs_shims();
|
|
36232
36220
|
var CombinedStream = require_combined_stream();
|
|
@@ -36241,7 +36229,7 @@ var require_form_data = __commonJS({
|
|
|
36241
36229
|
var mime = require_mime_types();
|
|
36242
36230
|
var asynckit = require_asynckit();
|
|
36243
36231
|
var setToStringTag = require_es_set_tostringtag();
|
|
36244
|
-
var hasOwn =
|
|
36232
|
+
var hasOwn = require_hasown();
|
|
36245
36233
|
var populate = require_populate();
|
|
36246
36234
|
function FormData2(options) {
|
|
36247
36235
|
if (!(this instanceof FormData2)) {
|
|
@@ -36539,7 +36527,7 @@ var require_form_data = __commonJS({
|
|
|
36539
36527
|
FormData2.prototype.toString = function() {
|
|
36540
36528
|
return "[object FormData]";
|
|
36541
36529
|
};
|
|
36542
|
-
setToStringTag(FormData2, "FormData");
|
|
36530
|
+
setToStringTag(FormData2.prototype, "FormData");
|
|
36543
36531
|
module.exports = FormData2;
|
|
36544
36532
|
}
|
|
36545
36533
|
});
|
|
@@ -36615,9 +36603,9 @@ var require_proxy_from_env = __commonJS({
|
|
|
36615
36603
|
}
|
|
36616
36604
|
});
|
|
36617
36605
|
|
|
36618
|
-
// ../../node_modules/follow-redirects/debug.js
|
|
36606
|
+
// ../../node_modules/axios/node_modules/follow-redirects/debug.js
|
|
36619
36607
|
var require_debug = __commonJS({
|
|
36620
|
-
"../../node_modules/follow-redirects/debug.js"(exports, module) {
|
|
36608
|
+
"../../node_modules/axios/node_modules/follow-redirects/debug.js"(exports, module) {
|
|
36621
36609
|
init_cjs_shims();
|
|
36622
36610
|
var debug;
|
|
36623
36611
|
module.exports = function() {
|
|
@@ -36636,9 +36624,9 @@ var require_debug = __commonJS({
|
|
|
36636
36624
|
}
|
|
36637
36625
|
});
|
|
36638
36626
|
|
|
36639
|
-
// ../../node_modules/follow-redirects/index.js
|
|
36627
|
+
// ../../node_modules/axios/node_modules/follow-redirects/index.js
|
|
36640
36628
|
var require_follow_redirects = __commonJS({
|
|
36641
|
-
"../../node_modules/follow-redirects/index.js"(exports, module) {
|
|
36629
|
+
"../../node_modules/axios/node_modules/follow-redirects/index.js"(exports, module) {
|
|
36642
36630
|
init_cjs_shims();
|
|
36643
36631
|
var url = __require("url");
|
|
36644
36632
|
var URL2 = url.URL;
|
|
@@ -36647,9 +36635,17 @@ var require_follow_redirects = __commonJS({
|
|
|
36647
36635
|
var Writable = __require("stream").Writable;
|
|
36648
36636
|
var assert3 = __require("assert");
|
|
36649
36637
|
var debug = require_debug();
|
|
36638
|
+
(function detectUnsupportedEnvironment() {
|
|
36639
|
+
var looksLikeNode = typeof process !== "undefined";
|
|
36640
|
+
var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
36641
|
+
var looksLikeV8 = isFunction(Error.captureStackTrace);
|
|
36642
|
+
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
|
36643
|
+
console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
36644
|
+
}
|
|
36645
|
+
})();
|
|
36650
36646
|
var useNativeURL = false;
|
|
36651
36647
|
try {
|
|
36652
|
-
assert3(new URL2());
|
|
36648
|
+
assert3(new URL2(""));
|
|
36653
36649
|
} catch (error) {
|
|
36654
36650
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
36655
36651
|
}
|
|
@@ -37076,7 +37072,9 @@ var require_follow_redirects = __commonJS({
|
|
|
37076
37072
|
}
|
|
37077
37073
|
function createErrorType(code, message, baseClass) {
|
|
37078
37074
|
function CustomError(properties) {
|
|
37079
|
-
Error.captureStackTrace
|
|
37075
|
+
if (isFunction(Error.captureStackTrace)) {
|
|
37076
|
+
Error.captureStackTrace(this, this.constructor);
|
|
37077
|
+
}
|
|
37080
37078
|
Object.assign(this, properties || {});
|
|
37081
37079
|
this.code = code;
|
|
37082
37080
|
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
@@ -37134,6 +37132,7 @@ var require_axios = __commonJS({
|
|
|
37134
37132
|
var proxyFromEnv = require_proxy_from_env();
|
|
37135
37133
|
var http = __require("http");
|
|
37136
37134
|
var https = __require("https");
|
|
37135
|
+
var http2 = __require("http2");
|
|
37137
37136
|
var util = __require("util");
|
|
37138
37137
|
var followRedirects = require_follow_redirects();
|
|
37139
37138
|
var zlib = __require("zlib");
|
|
@@ -37148,6 +37147,7 @@ var require_axios = __commonJS({
|
|
|
37148
37147
|
var proxyFromEnv__default = /* @__PURE__ */ _interopDefaultLegacy(proxyFromEnv);
|
|
37149
37148
|
var http__default = /* @__PURE__ */ _interopDefaultLegacy(http);
|
|
37150
37149
|
var https__default = /* @__PURE__ */ _interopDefaultLegacy(https);
|
|
37150
|
+
var http2__default = /* @__PURE__ */ _interopDefaultLegacy(http2);
|
|
37151
37151
|
var util__default = /* @__PURE__ */ _interopDefaultLegacy(util);
|
|
37152
37152
|
var followRedirects__default = /* @__PURE__ */ _interopDefaultLegacy(followRedirects);
|
|
37153
37153
|
var zlib__default = /* @__PURE__ */ _interopDefaultLegacy(zlib);
|
|
@@ -37217,7 +37217,12 @@ var require_axios = __commonJS({
|
|
|
37217
37217
|
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
37218
37218
|
};
|
|
37219
37219
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
37220
|
-
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
37220
|
+
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
37221
|
+
"ReadableStream",
|
|
37222
|
+
"Request",
|
|
37223
|
+
"Response",
|
|
37224
|
+
"Headers"
|
|
37225
|
+
].map(kindOfTest);
|
|
37221
37226
|
var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37222
37227
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
37223
37228
|
if (obj === null || typeof obj === "undefined") {
|
|
@@ -37271,6 +37276,9 @@ var require_axios = __commonJS({
|
|
|
37271
37276
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
37272
37277
|
const result = {};
|
|
37273
37278
|
const assignValue = (val, key) => {
|
|
37279
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
37280
|
+
return;
|
|
37281
|
+
}
|
|
37274
37282
|
const targetKey = caseless && findKey(result, key) || key;
|
|
37275
37283
|
if (isPlainObject2(result[targetKey]) && isPlainObject2(val)) {
|
|
37276
37284
|
result[targetKey] = merge(result[targetKey], val);
|
|
@@ -37288,13 +37296,27 @@ var require_axios = __commonJS({
|
|
|
37288
37296
|
return result;
|
|
37289
37297
|
}
|
|
37290
37298
|
var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
37291
|
-
forEach(
|
|
37292
|
-
|
|
37293
|
-
|
|
37294
|
-
|
|
37295
|
-
|
|
37296
|
-
|
|
37297
|
-
|
|
37299
|
+
forEach(
|
|
37300
|
+
b,
|
|
37301
|
+
(val, key) => {
|
|
37302
|
+
if (thisArg && isFunction$1(val)) {
|
|
37303
|
+
Object.defineProperty(a, key, {
|
|
37304
|
+
value: bind(val, thisArg),
|
|
37305
|
+
writable: true,
|
|
37306
|
+
enumerable: true,
|
|
37307
|
+
configurable: true
|
|
37308
|
+
});
|
|
37309
|
+
} else {
|
|
37310
|
+
Object.defineProperty(a, key, {
|
|
37311
|
+
value: val,
|
|
37312
|
+
writable: true,
|
|
37313
|
+
enumerable: true,
|
|
37314
|
+
configurable: true
|
|
37315
|
+
});
|
|
37316
|
+
}
|
|
37317
|
+
},
|
|
37318
|
+
{ allOwnKeys }
|
|
37319
|
+
);
|
|
37298
37320
|
return a;
|
|
37299
37321
|
};
|
|
37300
37322
|
var stripBOM = (content) => {
|
|
@@ -37303,9 +37325,17 @@ var require_axios = __commonJS({
|
|
|
37303
37325
|
}
|
|
37304
37326
|
return content;
|
|
37305
37327
|
};
|
|
37306
|
-
var inherits = (constructor, superConstructor, props,
|
|
37307
|
-
constructor.prototype = Object.create(
|
|
37308
|
-
|
|
37328
|
+
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
37329
|
+
constructor.prototype = Object.create(
|
|
37330
|
+
superConstructor.prototype,
|
|
37331
|
+
descriptors
|
|
37332
|
+
);
|
|
37333
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
37334
|
+
value: constructor,
|
|
37335
|
+
writable: true,
|
|
37336
|
+
enumerable: false,
|
|
37337
|
+
configurable: true
|
|
37338
|
+
});
|
|
37309
37339
|
Object.defineProperty(constructor, "super", {
|
|
37310
37340
|
value: superConstructor.prototype
|
|
37311
37341
|
});
|
|
@@ -37380,19 +37410,16 @@ var require_axios = __commonJS({
|
|
|
37380
37410
|
};
|
|
37381
37411
|
var isHTMLForm = kindOfTest("HTMLFormElement");
|
|
37382
37412
|
var toCamelCase = (str) => {
|
|
37383
|
-
return str.toLowerCase().replace(
|
|
37384
|
-
|
|
37385
|
-
|
|
37386
|
-
return p1.toUpperCase() + p2;
|
|
37387
|
-
}
|
|
37388
|
-
);
|
|
37413
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
37414
|
+
return p1.toUpperCase() + p2;
|
|
37415
|
+
});
|
|
37389
37416
|
};
|
|
37390
37417
|
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
37391
37418
|
var isRegExp = kindOfTest("RegExp");
|
|
37392
37419
|
var reduceDescriptors = (obj, reducer) => {
|
|
37393
|
-
const
|
|
37420
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
37394
37421
|
const reducedDescriptors = {};
|
|
37395
|
-
forEach(
|
|
37422
|
+
forEach(descriptors, (descriptor, name) => {
|
|
37396
37423
|
let ret;
|
|
37397
37424
|
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
37398
37425
|
reducedDescriptors[name] = ret || descriptor;
|
|
@@ -37470,20 +37497,21 @@ var require_axios = __commonJS({
|
|
|
37470
37497
|
return setImmediate;
|
|
37471
37498
|
}
|
|
37472
37499
|
return postMessageSupported ? ((token, callbacks) => {
|
|
37473
|
-
_global.addEventListener(
|
|
37474
|
-
|
|
37475
|
-
|
|
37476
|
-
|
|
37477
|
-
|
|
37500
|
+
_global.addEventListener(
|
|
37501
|
+
"message",
|
|
37502
|
+
({ source, data }) => {
|
|
37503
|
+
if (source === _global && data === token) {
|
|
37504
|
+
callbacks.length && callbacks.shift()();
|
|
37505
|
+
}
|
|
37506
|
+
},
|
|
37507
|
+
false
|
|
37508
|
+
);
|
|
37478
37509
|
return (cb) => {
|
|
37479
37510
|
callbacks.push(cb);
|
|
37480
37511
|
_global.postMessage(token, "*");
|
|
37481
37512
|
};
|
|
37482
37513
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
37483
|
-
})(
|
|
37484
|
-
typeof setImmediate === "function",
|
|
37485
|
-
isFunction$1(_global.postMessage)
|
|
37486
|
-
);
|
|
37514
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
37487
37515
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
37488
37516
|
var isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
37489
37517
|
var utils$1 = {
|
|
@@ -37546,25 +37574,38 @@ var require_axios = __commonJS({
|
|
|
37546
37574
|
asap,
|
|
37547
37575
|
isIterable
|
|
37548
37576
|
};
|
|
37549
|
-
|
|
37550
|
-
|
|
37551
|
-
|
|
37552
|
-
|
|
37553
|
-
|
|
37554
|
-
|
|
37577
|
+
var AxiosError = class _AxiosError extends Error {
|
|
37578
|
+
static from(error, code, config, request, response, customProps) {
|
|
37579
|
+
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
37580
|
+
axiosError.cause = error;
|
|
37581
|
+
axiosError.name = error.name;
|
|
37582
|
+
customProps && Object.assign(axiosError, customProps);
|
|
37583
|
+
return axiosError;
|
|
37555
37584
|
}
|
|
37556
|
-
|
|
37557
|
-
|
|
37558
|
-
|
|
37559
|
-
|
|
37560
|
-
|
|
37561
|
-
|
|
37562
|
-
|
|
37563
|
-
|
|
37585
|
+
/**
|
|
37586
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
37587
|
+
*
|
|
37588
|
+
* @param {string} message The error message.
|
|
37589
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
37590
|
+
* @param {Object} [config] The config.
|
|
37591
|
+
* @param {Object} [request] The request.
|
|
37592
|
+
* @param {Object} [response] The response.
|
|
37593
|
+
*
|
|
37594
|
+
* @returns {Error} The created error.
|
|
37595
|
+
*/
|
|
37596
|
+
constructor(message, code, config, request, response) {
|
|
37597
|
+
super(message);
|
|
37598
|
+
this.name = "AxiosError";
|
|
37599
|
+
this.isAxiosError = true;
|
|
37600
|
+
code && (this.code = code);
|
|
37601
|
+
config && (this.config = config);
|
|
37602
|
+
request && (this.request = request);
|
|
37603
|
+
if (response) {
|
|
37604
|
+
this.response = response;
|
|
37605
|
+
this.status = response.status;
|
|
37606
|
+
}
|
|
37564
37607
|
}
|
|
37565
|
-
|
|
37566
|
-
utils$1.inherits(AxiosError, Error, {
|
|
37567
|
-
toJSON: function toJSON() {
|
|
37608
|
+
toJSON() {
|
|
37568
37609
|
return {
|
|
37569
37610
|
// Standard
|
|
37570
37611
|
message: this.message,
|
|
@@ -37583,45 +37624,20 @@ var require_axios = __commonJS({
|
|
|
37583
37624
|
status: this.status
|
|
37584
37625
|
};
|
|
37585
37626
|
}
|
|
37586
|
-
});
|
|
37587
|
-
var prototype$1 = AxiosError.prototype;
|
|
37588
|
-
var descriptors = {};
|
|
37589
|
-
[
|
|
37590
|
-
"ERR_BAD_OPTION_VALUE",
|
|
37591
|
-
"ERR_BAD_OPTION",
|
|
37592
|
-
"ECONNABORTED",
|
|
37593
|
-
"ETIMEDOUT",
|
|
37594
|
-
"ERR_NETWORK",
|
|
37595
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
37596
|
-
"ERR_DEPRECATED",
|
|
37597
|
-
"ERR_BAD_RESPONSE",
|
|
37598
|
-
"ERR_BAD_REQUEST",
|
|
37599
|
-
"ERR_CANCELED",
|
|
37600
|
-
"ERR_NOT_SUPPORT",
|
|
37601
|
-
"ERR_INVALID_URL"
|
|
37602
|
-
// eslint-disable-next-line func-names
|
|
37603
|
-
].forEach((code) => {
|
|
37604
|
-
descriptors[code] = { value: code };
|
|
37605
|
-
});
|
|
37606
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
37607
|
-
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
|
|
37608
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
37609
|
-
const axiosError = Object.create(prototype$1);
|
|
37610
|
-
utils$1.toFlatObject(error, axiosError, function filter(obj) {
|
|
37611
|
-
return obj !== Error.prototype;
|
|
37612
|
-
}, (prop) => {
|
|
37613
|
-
return prop !== "isAxiosError";
|
|
37614
|
-
});
|
|
37615
|
-
const msg = error && error.message ? error.message : "Error";
|
|
37616
|
-
const errCode = code == null && error ? error.code : code;
|
|
37617
|
-
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
37618
|
-
if (error && axiosError.cause == null) {
|
|
37619
|
-
Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
|
|
37620
|
-
}
|
|
37621
|
-
axiosError.name = error && error.name || "Error";
|
|
37622
|
-
customProps && Object.assign(axiosError, customProps);
|
|
37623
|
-
return axiosError;
|
|
37624
37627
|
};
|
|
37628
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
37629
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
37630
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
37631
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
37632
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
37633
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
37634
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
37635
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
37636
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
37637
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
37638
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
37639
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
37640
|
+
var AxiosError$1 = AxiosError;
|
|
37625
37641
|
function isVisitable(thing) {
|
|
37626
37642
|
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
37627
37643
|
}
|
|
@@ -37673,7 +37689,7 @@ var require_axios = __commonJS({
|
|
|
37673
37689
|
return value.toString();
|
|
37674
37690
|
}
|
|
37675
37691
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
37676
|
-
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
37692
|
+
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
37677
37693
|
}
|
|
37678
37694
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
37679
37695
|
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
@@ -37775,17 +37791,15 @@ var require_axios = __commonJS({
|
|
|
37775
37791
|
return url2;
|
|
37776
37792
|
}
|
|
37777
37793
|
const _encode = options && options.encode || encode;
|
|
37778
|
-
|
|
37779
|
-
options
|
|
37780
|
-
|
|
37781
|
-
|
|
37782
|
-
}
|
|
37783
|
-
const serializeFn = options && options.serialize;
|
|
37794
|
+
const _options = utils$1.isFunction(options) ? {
|
|
37795
|
+
serialize: options
|
|
37796
|
+
} : options;
|
|
37797
|
+
const serializeFn = _options && _options.serialize;
|
|
37784
37798
|
let serializedParams;
|
|
37785
37799
|
if (serializeFn) {
|
|
37786
|
-
serializedParams = serializeFn(params,
|
|
37800
|
+
serializedParams = serializeFn(params, _options);
|
|
37787
37801
|
} else {
|
|
37788
|
-
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params,
|
|
37802
|
+
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
37789
37803
|
}
|
|
37790
37804
|
if (serializedParams) {
|
|
37791
37805
|
const hashmarkIndex = url2.indexOf("#");
|
|
@@ -37805,6 +37819,7 @@ var require_axios = __commonJS({
|
|
|
37805
37819
|
*
|
|
37806
37820
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
37807
37821
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
37822
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
37808
37823
|
*
|
|
37809
37824
|
* @return {Number} An ID used to remove interceptor later
|
|
37810
37825
|
*/
|
|
@@ -37822,7 +37837,7 @@ var require_axios = __commonJS({
|
|
|
37822
37837
|
*
|
|
37823
37838
|
* @param {Number} id The ID that was returned by `use`
|
|
37824
37839
|
*
|
|
37825
|
-
* @returns {
|
|
37840
|
+
* @returns {void}
|
|
37826
37841
|
*/
|
|
37827
37842
|
eject(id) {
|
|
37828
37843
|
if (this.handlers[id]) {
|
|
@@ -37861,7 +37876,8 @@ var require_axios = __commonJS({
|
|
|
37861
37876
|
var transitionalDefaults = {
|
|
37862
37877
|
silentJSONParsing: true,
|
|
37863
37878
|
forcedJSONParsing: true,
|
|
37864
|
-
clarifyTimeoutError: false
|
|
37879
|
+
clarifyTimeoutError: false,
|
|
37880
|
+
legacyInterceptorReqResOrdering: true
|
|
37865
37881
|
};
|
|
37866
37882
|
var URLSearchParams = url__default["default"].URLSearchParams;
|
|
37867
37883
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
@@ -38047,7 +38063,7 @@ var require_axios = __commonJS({
|
|
|
38047
38063
|
} catch (e) {
|
|
38048
38064
|
if (strictJSONParsing) {
|
|
38049
38065
|
if (e.name === "SyntaxError") {
|
|
38050
|
-
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
38066
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
38051
38067
|
}
|
|
38052
38068
|
throw e;
|
|
38053
38069
|
}
|
|
@@ -38367,21 +38383,31 @@ var require_axios = __commonJS({
|
|
|
38367
38383
|
function isCancel(value) {
|
|
38368
38384
|
return !!(value && value.__CANCEL__);
|
|
38369
38385
|
}
|
|
38370
|
-
|
|
38371
|
-
|
|
38372
|
-
|
|
38373
|
-
|
|
38374
|
-
|
|
38375
|
-
|
|
38376
|
-
|
|
38386
|
+
var CanceledError = class extends AxiosError$1 {
|
|
38387
|
+
/**
|
|
38388
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
38389
|
+
*
|
|
38390
|
+
* @param {string=} message The message.
|
|
38391
|
+
* @param {Object=} config The config.
|
|
38392
|
+
* @param {Object=} request The request.
|
|
38393
|
+
*
|
|
38394
|
+
* @returns {CanceledError} The created error.
|
|
38395
|
+
*/
|
|
38396
|
+
constructor(message, config, request) {
|
|
38397
|
+
super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
38398
|
+
this.name = "CanceledError";
|
|
38399
|
+
this.__CANCEL__ = true;
|
|
38400
|
+
}
|
|
38401
|
+
};
|
|
38402
|
+
var CanceledError$1 = CanceledError;
|
|
38377
38403
|
function settle(resolve, reject, response) {
|
|
38378
38404
|
const validateStatus = response.config.validateStatus;
|
|
38379
38405
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
38380
38406
|
resolve(response);
|
|
38381
38407
|
} else {
|
|
38382
|
-
reject(new AxiosError(
|
|
38408
|
+
reject(new AxiosError$1(
|
|
38383
38409
|
"Request failed with status code " + response.status,
|
|
38384
|
-
[AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
38410
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
38385
38411
|
response.config,
|
|
38386
38412
|
response.request,
|
|
38387
38413
|
response
|
|
@@ -38389,6 +38415,9 @@ var require_axios = __commonJS({
|
|
|
38389
38415
|
}
|
|
38390
38416
|
}
|
|
38391
38417
|
function isAbsoluteURL(url2) {
|
|
38418
|
+
if (typeof url2 !== "string") {
|
|
38419
|
+
return false;
|
|
38420
|
+
}
|
|
38392
38421
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
38393
38422
|
}
|
|
38394
38423
|
function combineURLs(baseURL, relativeURL) {
|
|
@@ -38401,7 +38430,7 @@ var require_axios = __commonJS({
|
|
|
38401
38430
|
}
|
|
38402
38431
|
return requestedURL;
|
|
38403
38432
|
}
|
|
38404
|
-
var VERSION = "1.
|
|
38433
|
+
var VERSION = "1.13.5";
|
|
38405
38434
|
function parseProtocol(url2) {
|
|
38406
38435
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
38407
38436
|
return match && match[1] || "";
|
|
@@ -38417,7 +38446,7 @@ var require_axios = __commonJS({
|
|
|
38417
38446
|
uri = protocol.length ? uri.slice(protocol.length + 1) : uri;
|
|
38418
38447
|
const match = DATA_URL_PATTERN.exec(uri);
|
|
38419
38448
|
if (!match) {
|
|
38420
|
-
throw new AxiosError("Invalid URL", AxiosError.ERR_INVALID_URL);
|
|
38449
|
+
throw new AxiosError$1("Invalid URL", AxiosError$1.ERR_INVALID_URL);
|
|
38421
38450
|
}
|
|
38422
38451
|
const mime = match[1];
|
|
38423
38452
|
const isBase64 = match[2];
|
|
@@ -38425,13 +38454,13 @@ var require_axios = __commonJS({
|
|
|
38425
38454
|
const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
|
|
38426
38455
|
if (asBlob) {
|
|
38427
38456
|
if (!_Blob) {
|
|
38428
|
-
throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
38457
|
+
throw new AxiosError$1("Blob is not supported", AxiosError$1.ERR_NOT_SUPPORT);
|
|
38429
38458
|
}
|
|
38430
38459
|
return new _Blob([buffer], { type: mime });
|
|
38431
38460
|
}
|
|
38432
38461
|
return buffer;
|
|
38433
38462
|
}
|
|
38434
|
-
throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
38463
|
+
throw new AxiosError$1("Unsupported protocol " + protocol, AxiosError$1.ERR_NOT_SUPPORT);
|
|
38435
38464
|
}
|
|
38436
38465
|
var kInternals = Symbol("internals");
|
|
38437
38466
|
var AxiosTransformStream = class extends stream__default["default"].Transform {
|
|
@@ -38835,6 +38864,76 @@ var require_axios = __commonJS({
|
|
|
38835
38864
|
stream2.on("end", flush).on("error", flush);
|
|
38836
38865
|
return throttled;
|
|
38837
38866
|
};
|
|
38867
|
+
var Http2Sessions = class {
|
|
38868
|
+
constructor() {
|
|
38869
|
+
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
38870
|
+
}
|
|
38871
|
+
getSession(authority, options) {
|
|
38872
|
+
options = Object.assign({
|
|
38873
|
+
sessionTimeout: 1e3
|
|
38874
|
+
}, options);
|
|
38875
|
+
let authoritySessions = this.sessions[authority];
|
|
38876
|
+
if (authoritySessions) {
|
|
38877
|
+
let len = authoritySessions.length;
|
|
38878
|
+
for (let i = 0; i < len; i++) {
|
|
38879
|
+
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
38880
|
+
if (!sessionHandle.destroyed && !sessionHandle.closed && util__default["default"].isDeepStrictEqual(sessionOptions, options)) {
|
|
38881
|
+
return sessionHandle;
|
|
38882
|
+
}
|
|
38883
|
+
}
|
|
38884
|
+
}
|
|
38885
|
+
const session = http2__default["default"].connect(authority, options);
|
|
38886
|
+
let removed;
|
|
38887
|
+
const removeSession = () => {
|
|
38888
|
+
if (removed) {
|
|
38889
|
+
return;
|
|
38890
|
+
}
|
|
38891
|
+
removed = true;
|
|
38892
|
+
let entries = authoritySessions, len = entries.length, i = len;
|
|
38893
|
+
while (i--) {
|
|
38894
|
+
if (entries[i][0] === session) {
|
|
38895
|
+
if (len === 1) {
|
|
38896
|
+
delete this.sessions[authority];
|
|
38897
|
+
} else {
|
|
38898
|
+
entries.splice(i, 1);
|
|
38899
|
+
}
|
|
38900
|
+
return;
|
|
38901
|
+
}
|
|
38902
|
+
}
|
|
38903
|
+
};
|
|
38904
|
+
const originalRequestFn = session.request;
|
|
38905
|
+
const { sessionTimeout } = options;
|
|
38906
|
+
if (sessionTimeout != null) {
|
|
38907
|
+
let timer;
|
|
38908
|
+
let streamsCount = 0;
|
|
38909
|
+
session.request = function() {
|
|
38910
|
+
const stream2 = originalRequestFn.apply(this, arguments);
|
|
38911
|
+
streamsCount++;
|
|
38912
|
+
if (timer) {
|
|
38913
|
+
clearTimeout(timer);
|
|
38914
|
+
timer = null;
|
|
38915
|
+
}
|
|
38916
|
+
stream2.once("close", () => {
|
|
38917
|
+
if (!--streamsCount) {
|
|
38918
|
+
timer = setTimeout(() => {
|
|
38919
|
+
timer = null;
|
|
38920
|
+
removeSession();
|
|
38921
|
+
}, sessionTimeout);
|
|
38922
|
+
}
|
|
38923
|
+
});
|
|
38924
|
+
return stream2;
|
|
38925
|
+
};
|
|
38926
|
+
}
|
|
38927
|
+
session.once("close", removeSession);
|
|
38928
|
+
let entry = [
|
|
38929
|
+
session,
|
|
38930
|
+
options
|
|
38931
|
+
];
|
|
38932
|
+
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
38933
|
+
return session;
|
|
38934
|
+
}
|
|
38935
|
+
};
|
|
38936
|
+
var http2Sessions = new Http2Sessions();
|
|
38838
38937
|
function dispatchBeforeRedirect(options, responseDetails) {
|
|
38839
38938
|
if (options.beforeRedirects.proxy) {
|
|
38840
38939
|
options.beforeRedirects.proxy(options);
|
|
@@ -38856,8 +38955,11 @@ var require_axios = __commonJS({
|
|
|
38856
38955
|
proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
|
|
38857
38956
|
}
|
|
38858
38957
|
if (proxy.auth) {
|
|
38859
|
-
|
|
38958
|
+
const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
|
|
38959
|
+
if (validProxyAuth) {
|
|
38860
38960
|
proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
|
|
38961
|
+
} else if (typeof proxy.auth === "object") {
|
|
38962
|
+
throw new AxiosError$1("Invalid proxy authorization", AxiosError$1.ERR_BAD_OPTION, { proxy });
|
|
38861
38963
|
}
|
|
38862
38964
|
const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
38863
38965
|
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
@@ -38908,14 +39010,54 @@ var require_axios = __commonJS({
|
|
|
38908
39010
|
};
|
|
38909
39011
|
};
|
|
38910
39012
|
var buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : { address, family });
|
|
39013
|
+
var http2Transport = {
|
|
39014
|
+
request(options, cb) {
|
|
39015
|
+
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
39016
|
+
const { http2Options, headers } = options;
|
|
39017
|
+
const session = http2Sessions.getSession(authority, http2Options);
|
|
39018
|
+
const {
|
|
39019
|
+
HTTP2_HEADER_SCHEME,
|
|
39020
|
+
HTTP2_HEADER_METHOD,
|
|
39021
|
+
HTTP2_HEADER_PATH,
|
|
39022
|
+
HTTP2_HEADER_STATUS
|
|
39023
|
+
} = http2__default["default"].constants;
|
|
39024
|
+
const http2Headers = {
|
|
39025
|
+
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
39026
|
+
[HTTP2_HEADER_METHOD]: options.method,
|
|
39027
|
+
[HTTP2_HEADER_PATH]: options.path
|
|
39028
|
+
};
|
|
39029
|
+
utils$1.forEach(headers, (header, name) => {
|
|
39030
|
+
name.charAt(0) !== ":" && (http2Headers[name] = header);
|
|
39031
|
+
});
|
|
39032
|
+
const req = session.request(http2Headers);
|
|
39033
|
+
req.once("response", (responseHeaders) => {
|
|
39034
|
+
const response = req;
|
|
39035
|
+
responseHeaders = Object.assign({}, responseHeaders);
|
|
39036
|
+
const status = responseHeaders[HTTP2_HEADER_STATUS];
|
|
39037
|
+
delete responseHeaders[HTTP2_HEADER_STATUS];
|
|
39038
|
+
response.headers = responseHeaders;
|
|
39039
|
+
response.statusCode = +status;
|
|
39040
|
+
cb(response);
|
|
39041
|
+
});
|
|
39042
|
+
return req;
|
|
39043
|
+
}
|
|
39044
|
+
};
|
|
38911
39045
|
var httpAdapter = isHttpAdapterSupported && function httpAdapter2(config) {
|
|
38912
39046
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
38913
|
-
let { data, lookup, family } = config;
|
|
39047
|
+
let { data, lookup, family, httpVersion = 1, http2Options } = config;
|
|
38914
39048
|
const { responseType, responseEncoding } = config;
|
|
38915
39049
|
const method = config.method.toUpperCase();
|
|
38916
39050
|
let isDone;
|
|
38917
39051
|
let rejected = false;
|
|
38918
39052
|
let req;
|
|
39053
|
+
httpVersion = +httpVersion;
|
|
39054
|
+
if (Number.isNaN(httpVersion)) {
|
|
39055
|
+
throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
|
|
39056
|
+
}
|
|
39057
|
+
if (httpVersion !== 1 && httpVersion !== 2) {
|
|
39058
|
+
throw TypeError(`Unsupported protocol version '${httpVersion}'`);
|
|
39059
|
+
}
|
|
39060
|
+
const isHttp2 = httpVersion === 2;
|
|
38919
39061
|
if (lookup) {
|
|
38920
39062
|
const _lookup = callbackify$1(lookup, (value) => utils$1.isArray(value) ? value : [value]);
|
|
38921
39063
|
lookup = (hostname, opt, cb) => {
|
|
@@ -38928,7 +39070,15 @@ var require_axios = __commonJS({
|
|
|
38928
39070
|
});
|
|
38929
39071
|
};
|
|
38930
39072
|
}
|
|
38931
|
-
const
|
|
39073
|
+
const abortEmitter = new events.EventEmitter();
|
|
39074
|
+
function abort(reason) {
|
|
39075
|
+
try {
|
|
39076
|
+
abortEmitter.emit("abort", !reason || reason.type ? new CanceledError$1(null, config, req) : reason);
|
|
39077
|
+
} catch (err) {
|
|
39078
|
+
console.warn("emit error", err);
|
|
39079
|
+
}
|
|
39080
|
+
}
|
|
39081
|
+
abortEmitter.once("abort", reject);
|
|
38932
39082
|
const onFinished = () => {
|
|
38933
39083
|
if (config.cancelToken) {
|
|
38934
39084
|
config.cancelToken.unsubscribe(abort);
|
|
@@ -38936,25 +39086,31 @@ var require_axios = __commonJS({
|
|
|
38936
39086
|
if (config.signal) {
|
|
38937
39087
|
config.signal.removeEventListener("abort", abort);
|
|
38938
39088
|
}
|
|
38939
|
-
|
|
39089
|
+
abortEmitter.removeAllListeners();
|
|
38940
39090
|
};
|
|
38941
|
-
onDone((value, isRejected) => {
|
|
38942
|
-
isDone = true;
|
|
38943
|
-
if (isRejected) {
|
|
38944
|
-
rejected = true;
|
|
38945
|
-
onFinished();
|
|
38946
|
-
}
|
|
38947
|
-
});
|
|
38948
|
-
function abort(reason) {
|
|
38949
|
-
emitter.emit("abort", !reason || reason.type ? new CanceledError(null, config, req) : reason);
|
|
38950
|
-
}
|
|
38951
|
-
emitter.once("abort", reject);
|
|
38952
39091
|
if (config.cancelToken || config.signal) {
|
|
38953
39092
|
config.cancelToken && config.cancelToken.subscribe(abort);
|
|
38954
39093
|
if (config.signal) {
|
|
38955
39094
|
config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
|
|
38956
39095
|
}
|
|
38957
39096
|
}
|
|
39097
|
+
onDone((response, isRejected) => {
|
|
39098
|
+
isDone = true;
|
|
39099
|
+
if (isRejected) {
|
|
39100
|
+
rejected = true;
|
|
39101
|
+
onFinished();
|
|
39102
|
+
return;
|
|
39103
|
+
}
|
|
39104
|
+
const { data: data2 } = response;
|
|
39105
|
+
if (data2 instanceof stream__default["default"].Readable || data2 instanceof stream__default["default"].Duplex) {
|
|
39106
|
+
const offListeners = stream__default["default"].finished(data2, () => {
|
|
39107
|
+
offListeners();
|
|
39108
|
+
onFinished();
|
|
39109
|
+
});
|
|
39110
|
+
} else {
|
|
39111
|
+
onFinished();
|
|
39112
|
+
}
|
|
39113
|
+
});
|
|
38958
39114
|
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
38959
39115
|
const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : void 0);
|
|
38960
39116
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
@@ -38963,9 +39119,9 @@ var require_axios = __commonJS({
|
|
|
38963
39119
|
const dataUrl = String(config.url || fullPath || "");
|
|
38964
39120
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
38965
39121
|
if (estimated > config.maxContentLength) {
|
|
38966
|
-
return reject(new AxiosError(
|
|
39122
|
+
return reject(new AxiosError$1(
|
|
38967
39123
|
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
38968
|
-
AxiosError.ERR_BAD_RESPONSE,
|
|
39124
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
38969
39125
|
config
|
|
38970
39126
|
));
|
|
38971
39127
|
}
|
|
@@ -38984,7 +39140,7 @@ var require_axios = __commonJS({
|
|
|
38984
39140
|
Blob: config.env && config.env.Blob
|
|
38985
39141
|
});
|
|
38986
39142
|
} catch (err) {
|
|
38987
|
-
throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);
|
|
39143
|
+
throw AxiosError$1.from(err, AxiosError$1.ERR_BAD_REQUEST, config);
|
|
38988
39144
|
}
|
|
38989
39145
|
if (responseType === "text") {
|
|
38990
39146
|
convertedData = convertedData.toString(responseEncoding);
|
|
@@ -39003,9 +39159,9 @@ var require_axios = __commonJS({
|
|
|
39003
39159
|
});
|
|
39004
39160
|
}
|
|
39005
39161
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
39006
|
-
return reject(new AxiosError(
|
|
39162
|
+
return reject(new AxiosError$1(
|
|
39007
39163
|
"Unsupported protocol " + protocol,
|
|
39008
|
-
AxiosError.ERR_BAD_REQUEST,
|
|
39164
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
39009
39165
|
config
|
|
39010
39166
|
));
|
|
39011
39167
|
}
|
|
@@ -39044,17 +39200,17 @@ var require_axios = __commonJS({
|
|
|
39044
39200
|
} else if (utils$1.isString(data)) {
|
|
39045
39201
|
data = Buffer.from(data, "utf-8");
|
|
39046
39202
|
} else {
|
|
39047
|
-
return reject(new AxiosError(
|
|
39203
|
+
return reject(new AxiosError$1(
|
|
39048
39204
|
"Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
39049
|
-
AxiosError.ERR_BAD_REQUEST,
|
|
39205
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
39050
39206
|
config
|
|
39051
39207
|
));
|
|
39052
39208
|
}
|
|
39053
39209
|
headers.setContentLength(data.length, false);
|
|
39054
39210
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
39055
|
-
return reject(new AxiosError(
|
|
39211
|
+
return reject(new AxiosError$1(
|
|
39056
39212
|
"Request body larger than maxBodyLength limit",
|
|
39057
|
-
AxiosError.ERR_BAD_REQUEST,
|
|
39213
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
39058
39214
|
config
|
|
39059
39215
|
));
|
|
39060
39216
|
}
|
|
@@ -39121,7 +39277,8 @@ var require_axios = __commonJS({
|
|
|
39121
39277
|
protocol,
|
|
39122
39278
|
family,
|
|
39123
39279
|
beforeRedirect: dispatchBeforeRedirect,
|
|
39124
|
-
beforeRedirects: {}
|
|
39280
|
+
beforeRedirects: {},
|
|
39281
|
+
http2Options
|
|
39125
39282
|
};
|
|
39126
39283
|
!utils$1.isUndefined(lookup) && (options.lookup = lookup);
|
|
39127
39284
|
if (config.socketPath) {
|
|
@@ -39134,18 +39291,22 @@ var require_axios = __commonJS({
|
|
|
39134
39291
|
let transport;
|
|
39135
39292
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
39136
39293
|
options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
|
39137
|
-
if (
|
|
39138
|
-
transport =
|
|
39139
|
-
} else if (config.maxRedirects === 0) {
|
|
39140
|
-
transport = isHttpsRequest ? https__default["default"] : http__default["default"];
|
|
39294
|
+
if (isHttp2) {
|
|
39295
|
+
transport = http2Transport;
|
|
39141
39296
|
} else {
|
|
39142
|
-
if (config.
|
|
39143
|
-
|
|
39144
|
-
}
|
|
39145
|
-
|
|
39146
|
-
|
|
39297
|
+
if (config.transport) {
|
|
39298
|
+
transport = config.transport;
|
|
39299
|
+
} else if (config.maxRedirects === 0) {
|
|
39300
|
+
transport = isHttpsRequest ? https__default["default"] : http__default["default"];
|
|
39301
|
+
} else {
|
|
39302
|
+
if (config.maxRedirects) {
|
|
39303
|
+
options.maxRedirects = config.maxRedirects;
|
|
39304
|
+
}
|
|
39305
|
+
if (config.beforeRedirect) {
|
|
39306
|
+
options.beforeRedirects.config = config.beforeRedirect;
|
|
39307
|
+
}
|
|
39308
|
+
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
39147
39309
|
}
|
|
39148
|
-
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
39149
39310
|
}
|
|
39150
39311
|
if (config.maxBodyLength > -1) {
|
|
39151
39312
|
options.maxBodyLength = config.maxBodyLength;
|
|
@@ -39159,7 +39320,7 @@ var require_axios = __commonJS({
|
|
|
39159
39320
|
if (req.destroyed)
|
|
39160
39321
|
return;
|
|
39161
39322
|
const streams = [res];
|
|
39162
|
-
const responseLength =
|
|
39323
|
+
const responseLength = utils$1.toFiniteNumber(res.headers["content-length"]);
|
|
39163
39324
|
if (onDownloadProgress || maxDownloadRate) {
|
|
39164
39325
|
const transformStream = new AxiosTransformStream$1({
|
|
39165
39326
|
maxRate: utils$1.toFiniteNumber(maxDownloadRate)
|
|
@@ -39200,10 +39361,6 @@ var require_axios = __commonJS({
|
|
|
39200
39361
|
}
|
|
39201
39362
|
}
|
|
39202
39363
|
responseStream = streams.length > 1 ? stream__default["default"].pipeline(streams, utils$1.noop) : streams[0];
|
|
39203
|
-
const offListeners = stream__default["default"].finished(responseStream, () => {
|
|
39204
|
-
offListeners();
|
|
39205
|
-
onFinished();
|
|
39206
|
-
});
|
|
39207
39364
|
const response = {
|
|
39208
39365
|
status: res.statusCode,
|
|
39209
39366
|
statusText: res.statusMessage,
|
|
@@ -39223,9 +39380,9 @@ var require_axios = __commonJS({
|
|
|
39223
39380
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
39224
39381
|
rejected = true;
|
|
39225
39382
|
responseStream.destroy();
|
|
39226
|
-
|
|
39383
|
+
abort(new AxiosError$1(
|
|
39227
39384
|
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
39228
|
-
AxiosError.ERR_BAD_RESPONSE,
|
|
39385
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
39229
39386
|
config,
|
|
39230
39387
|
lastRequest
|
|
39231
39388
|
));
|
|
@@ -39235,9 +39392,9 @@ var require_axios = __commonJS({
|
|
|
39235
39392
|
if (rejected) {
|
|
39236
39393
|
return;
|
|
39237
39394
|
}
|
|
39238
|
-
const err = new AxiosError(
|
|
39395
|
+
const err = new AxiosError$1(
|
|
39239
39396
|
"stream has been aborted",
|
|
39240
|
-
AxiosError.ERR_BAD_RESPONSE,
|
|
39397
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
39241
39398
|
config,
|
|
39242
39399
|
lastRequest
|
|
39243
39400
|
);
|
|
@@ -39247,7 +39404,7 @@ var require_axios = __commonJS({
|
|
|
39247
39404
|
responseStream.on("error", function handleStreamError(err) {
|
|
39248
39405
|
if (req.destroyed)
|
|
39249
39406
|
return;
|
|
39250
|
-
reject(AxiosError.from(err, null, config, lastRequest));
|
|
39407
|
+
reject(AxiosError$1.from(err, null, config, lastRequest));
|
|
39251
39408
|
});
|
|
39252
39409
|
responseStream.on("end", function handleStreamEnd() {
|
|
39253
39410
|
try {
|
|
@@ -39260,24 +39417,27 @@ var require_axios = __commonJS({
|
|
|
39260
39417
|
}
|
|
39261
39418
|
response.data = responseData;
|
|
39262
39419
|
} catch (err) {
|
|
39263
|
-
return reject(AxiosError.from(err, null, config, response.request, response));
|
|
39420
|
+
return reject(AxiosError$1.from(err, null, config, response.request, response));
|
|
39264
39421
|
}
|
|
39265
39422
|
settle(resolve, reject, response);
|
|
39266
39423
|
});
|
|
39267
39424
|
}
|
|
39268
|
-
|
|
39425
|
+
abortEmitter.once("abort", (err) => {
|
|
39269
39426
|
if (!responseStream.destroyed) {
|
|
39270
39427
|
responseStream.emit("error", err);
|
|
39271
39428
|
responseStream.destroy();
|
|
39272
39429
|
}
|
|
39273
39430
|
});
|
|
39274
39431
|
});
|
|
39275
|
-
|
|
39276
|
-
|
|
39277
|
-
|
|
39432
|
+
abortEmitter.once("abort", (err) => {
|
|
39433
|
+
if (req.close) {
|
|
39434
|
+
req.close();
|
|
39435
|
+
} else {
|
|
39436
|
+
req.destroy(err);
|
|
39437
|
+
}
|
|
39278
39438
|
});
|
|
39279
39439
|
req.on("error", function handleRequestError(err) {
|
|
39280
|
-
reject(AxiosError.from(err, null, config, req));
|
|
39440
|
+
reject(AxiosError$1.from(err, null, config, req));
|
|
39281
39441
|
});
|
|
39282
39442
|
req.on("socket", function handleRequestSocket(socket) {
|
|
39283
39443
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
@@ -39285,9 +39445,9 @@ var require_axios = __commonJS({
|
|
|
39285
39445
|
if (config.timeout) {
|
|
39286
39446
|
const timeout = parseInt(config.timeout, 10);
|
|
39287
39447
|
if (Number.isNaN(timeout)) {
|
|
39288
|
-
|
|
39448
|
+
abort(new AxiosError$1(
|
|
39289
39449
|
"error trying to parse `config.timeout` to int",
|
|
39290
|
-
AxiosError.ERR_BAD_OPTION_VALUE,
|
|
39450
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE,
|
|
39291
39451
|
config,
|
|
39292
39452
|
req
|
|
39293
39453
|
));
|
|
@@ -39301,14 +39461,15 @@ var require_axios = __commonJS({
|
|
|
39301
39461
|
if (config.timeoutErrorMessage) {
|
|
39302
39462
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
39303
39463
|
}
|
|
39304
|
-
|
|
39464
|
+
abort(new AxiosError$1(
|
|
39305
39465
|
timeoutErrorMessage,
|
|
39306
|
-
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
39466
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
39307
39467
|
config,
|
|
39308
39468
|
req
|
|
39309
39469
|
));
|
|
39310
|
-
abort();
|
|
39311
39470
|
});
|
|
39471
|
+
} else {
|
|
39472
|
+
req.setTimeout(0);
|
|
39312
39473
|
}
|
|
39313
39474
|
if (utils$1.isStream(data)) {
|
|
39314
39475
|
let ended = false;
|
|
@@ -39322,12 +39483,13 @@ var require_axios = __commonJS({
|
|
|
39322
39483
|
});
|
|
39323
39484
|
data.on("close", () => {
|
|
39324
39485
|
if (!ended && !errored) {
|
|
39325
|
-
abort(new CanceledError("Request stream has been aborted", config, req));
|
|
39486
|
+
abort(new CanceledError$1("Request stream has been aborted", config, req));
|
|
39326
39487
|
}
|
|
39327
39488
|
});
|
|
39328
39489
|
data.pipe(req);
|
|
39329
39490
|
} else {
|
|
39330
|
-
req.
|
|
39491
|
+
data && req.write(data);
|
|
39492
|
+
req.end();
|
|
39331
39493
|
}
|
|
39332
39494
|
});
|
|
39333
39495
|
};
|
|
@@ -39341,20 +39503,35 @@ var require_axios = __commonJS({
|
|
|
39341
39503
|
var cookies = platform.hasStandardBrowserEnv ? (
|
|
39342
39504
|
// Standard browser envs support document.cookie
|
|
39343
39505
|
{
|
|
39344
|
-
write(name, value, expires, path, domain, secure) {
|
|
39345
|
-
|
|
39346
|
-
|
|
39347
|
-
|
|
39348
|
-
utils$1.
|
|
39349
|
-
|
|
39506
|
+
write(name, value, expires, path, domain, secure, sameSite) {
|
|
39507
|
+
if (typeof document === "undefined")
|
|
39508
|
+
return;
|
|
39509
|
+
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
39510
|
+
if (utils$1.isNumber(expires)) {
|
|
39511
|
+
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
39512
|
+
}
|
|
39513
|
+
if (utils$1.isString(path)) {
|
|
39514
|
+
cookie.push(`path=${path}`);
|
|
39515
|
+
}
|
|
39516
|
+
if (utils$1.isString(domain)) {
|
|
39517
|
+
cookie.push(`domain=${domain}`);
|
|
39518
|
+
}
|
|
39519
|
+
if (secure === true) {
|
|
39520
|
+
cookie.push("secure");
|
|
39521
|
+
}
|
|
39522
|
+
if (utils$1.isString(sameSite)) {
|
|
39523
|
+
cookie.push(`SameSite=${sameSite}`);
|
|
39524
|
+
}
|
|
39350
39525
|
document.cookie = cookie.join("; ");
|
|
39351
39526
|
},
|
|
39352
39527
|
read(name) {
|
|
39353
|
-
|
|
39354
|
-
|
|
39528
|
+
if (typeof document === "undefined")
|
|
39529
|
+
return null;
|
|
39530
|
+
const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
|
|
39531
|
+
return match ? decodeURIComponent(match[1]) : null;
|
|
39355
39532
|
},
|
|
39356
39533
|
remove(name) {
|
|
39357
|
-
this.write(name, "", Date.now() - 864e5);
|
|
39534
|
+
this.write(name, "", Date.now() - 864e5, "/");
|
|
39358
39535
|
}
|
|
39359
39536
|
}
|
|
39360
39537
|
) : (
|
|
@@ -39440,11 +39617,16 @@ var require_axios = __commonJS({
|
|
|
39440
39617
|
validateStatus: mergeDirectKeys,
|
|
39441
39618
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
39442
39619
|
};
|
|
39443
|
-
utils$1.forEach(
|
|
39444
|
-
|
|
39445
|
-
|
|
39446
|
-
|
|
39447
|
-
|
|
39620
|
+
utils$1.forEach(
|
|
39621
|
+
Object.keys({ ...config1, ...config2 }),
|
|
39622
|
+
function computeConfigValue(prop) {
|
|
39623
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
|
|
39624
|
+
return;
|
|
39625
|
+
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
39626
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
39627
|
+
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
39628
|
+
}
|
|
39629
|
+
);
|
|
39448
39630
|
return config;
|
|
39449
39631
|
}
|
|
39450
39632
|
var resolveConfig = (config) => {
|
|
@@ -39543,12 +39725,12 @@ var require_axios = __commonJS({
|
|
|
39543
39725
|
if (!request) {
|
|
39544
39726
|
return;
|
|
39545
39727
|
}
|
|
39546
|
-
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
39728
|
+
reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
|
|
39547
39729
|
request = null;
|
|
39548
39730
|
};
|
|
39549
39731
|
request.onerror = function handleError(event) {
|
|
39550
39732
|
const msg = event && event.message ? event.message : "Network Error";
|
|
39551
|
-
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
39733
|
+
const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
|
|
39552
39734
|
err.event = event || null;
|
|
39553
39735
|
reject(err);
|
|
39554
39736
|
request = null;
|
|
@@ -39559,9 +39741,9 @@ var require_axios = __commonJS({
|
|
|
39559
39741
|
if (_config.timeoutErrorMessage) {
|
|
39560
39742
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
39561
39743
|
}
|
|
39562
|
-
reject(new AxiosError(
|
|
39744
|
+
reject(new AxiosError$1(
|
|
39563
39745
|
timeoutErrorMessage,
|
|
39564
|
-
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
39746
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
39565
39747
|
config,
|
|
39566
39748
|
request
|
|
39567
39749
|
));
|
|
@@ -39593,7 +39775,7 @@ var require_axios = __commonJS({
|
|
|
39593
39775
|
if (!request) {
|
|
39594
39776
|
return;
|
|
39595
39777
|
}
|
|
39596
|
-
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
39778
|
+
reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
|
|
39597
39779
|
request.abort();
|
|
39598
39780
|
request = null;
|
|
39599
39781
|
};
|
|
@@ -39604,7 +39786,7 @@ var require_axios = __commonJS({
|
|
|
39604
39786
|
}
|
|
39605
39787
|
const protocol = parseProtocol(_config.url);
|
|
39606
39788
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
39607
|
-
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
39789
|
+
reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
|
|
39608
39790
|
return;
|
|
39609
39791
|
}
|
|
39610
39792
|
request.send(requestData || null);
|
|
@@ -39620,12 +39802,12 @@ var require_axios = __commonJS({
|
|
|
39620
39802
|
aborted = true;
|
|
39621
39803
|
unsubscribe();
|
|
39622
39804
|
const err = reason instanceof Error ? reason : this.reason;
|
|
39623
|
-
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
39805
|
+
controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
|
|
39624
39806
|
}
|
|
39625
39807
|
};
|
|
39626
39808
|
let timer = timeout && setTimeout(() => {
|
|
39627
39809
|
timer = null;
|
|
39628
|
-
onabort(new AxiosError(`timeout ${timeout}
|
|
39810
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
39629
39811
|
}, timeout);
|
|
39630
39812
|
const unsubscribe = () => {
|
|
39631
39813
|
if (signals) {
|
|
@@ -39772,7 +39954,7 @@ var require_axios = __commonJS({
|
|
|
39772
39954
|
if (method) {
|
|
39773
39955
|
return method.call(res);
|
|
39774
39956
|
}
|
|
39775
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
39957
|
+
throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
|
|
39776
39958
|
});
|
|
39777
39959
|
});
|
|
39778
39960
|
})();
|
|
@@ -39897,19 +40079,19 @@ var require_axios = __commonJS({
|
|
|
39897
40079
|
unsubscribe && unsubscribe();
|
|
39898
40080
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
39899
40081
|
throw Object.assign(
|
|
39900
|
-
new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
|
|
40082
|
+
new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request, err && err.response),
|
|
39901
40083
|
{
|
|
39902
40084
|
cause: err.cause || err
|
|
39903
40085
|
}
|
|
39904
40086
|
);
|
|
39905
40087
|
}
|
|
39906
|
-
throw AxiosError.from(err, err && err.code, config, request);
|
|
40088
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
39907
40089
|
}
|
|
39908
40090
|
};
|
|
39909
40091
|
};
|
|
39910
40092
|
var seedCache = /* @__PURE__ */ new Map();
|
|
39911
40093
|
var getFetch2 = (config) => {
|
|
39912
|
-
let env = config
|
|
40094
|
+
let env = config && config.env || {};
|
|
39913
40095
|
const { fetch: fetch2, Request, Response } = env;
|
|
39914
40096
|
const seeds = [
|
|
39915
40097
|
Request,
|
|
@@ -39944,40 +40126,49 @@ var require_axios = __commonJS({
|
|
|
39944
40126
|
});
|
|
39945
40127
|
var renderReason = (reason) => `- ${reason}`;
|
|
39946
40128
|
var isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
39947
|
-
|
|
39948
|
-
|
|
39949
|
-
|
|
39950
|
-
|
|
39951
|
-
|
|
39952
|
-
|
|
39953
|
-
|
|
39954
|
-
|
|
39955
|
-
|
|
39956
|
-
|
|
39957
|
-
|
|
39958
|
-
|
|
39959
|
-
|
|
39960
|
-
|
|
39961
|
-
|
|
39962
|
-
|
|
39963
|
-
|
|
39964
|
-
|
|
39965
|
-
break;
|
|
39966
|
-
}
|
|
39967
|
-
rejectedReasons[id || "#" + i] = adapter;
|
|
39968
|
-
}
|
|
39969
|
-
if (!adapter) {
|
|
39970
|
-
const reasons = Object.entries(rejectedReasons).map(
|
|
39971
|
-
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
39972
|
-
);
|
|
39973
|
-
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
39974
|
-
throw new AxiosError(
|
|
39975
|
-
`There is no suitable adapter to dispatch the request ` + s,
|
|
39976
|
-
"ERR_NOT_SUPPORT"
|
|
39977
|
-
);
|
|
40129
|
+
function getAdapter(adapters2, config) {
|
|
40130
|
+
adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
|
|
40131
|
+
const { length } = adapters2;
|
|
40132
|
+
let nameOrAdapter;
|
|
40133
|
+
let adapter;
|
|
40134
|
+
const rejectedReasons = {};
|
|
40135
|
+
for (let i = 0; i < length; i++) {
|
|
40136
|
+
nameOrAdapter = adapters2[i];
|
|
40137
|
+
let id;
|
|
40138
|
+
adapter = nameOrAdapter;
|
|
40139
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
40140
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
40141
|
+
if (adapter === void 0) {
|
|
40142
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
40143
|
+
}
|
|
40144
|
+
}
|
|
40145
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
40146
|
+
break;
|
|
39978
40147
|
}
|
|
39979
|
-
|
|
39980
|
-
}
|
|
40148
|
+
rejectedReasons[id || "#" + i] = adapter;
|
|
40149
|
+
}
|
|
40150
|
+
if (!adapter) {
|
|
40151
|
+
const reasons = Object.entries(rejectedReasons).map(
|
|
40152
|
+
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
40153
|
+
);
|
|
40154
|
+
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
40155
|
+
throw new AxiosError$1(
|
|
40156
|
+
`There is no suitable adapter to dispatch the request ` + s,
|
|
40157
|
+
"ERR_NOT_SUPPORT"
|
|
40158
|
+
);
|
|
40159
|
+
}
|
|
40160
|
+
return adapter;
|
|
40161
|
+
}
|
|
40162
|
+
var adapters = {
|
|
40163
|
+
/**
|
|
40164
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
40165
|
+
* @type {Function}
|
|
40166
|
+
*/
|
|
40167
|
+
getAdapter,
|
|
40168
|
+
/**
|
|
40169
|
+
* Exposes all known adapters
|
|
40170
|
+
* @type {Object<string, Function|Object>}
|
|
40171
|
+
*/
|
|
39981
40172
|
adapters: knownAdapters
|
|
39982
40173
|
};
|
|
39983
40174
|
function throwIfCancellationRequested(config) {
|
|
@@ -39985,7 +40176,7 @@ var require_axios = __commonJS({
|
|
|
39985
40176
|
config.cancelToken.throwIfRequested();
|
|
39986
40177
|
}
|
|
39987
40178
|
if (config.signal && config.signal.aborted) {
|
|
39988
|
-
throw new CanceledError(null, config);
|
|
40179
|
+
throw new CanceledError$1(null, config);
|
|
39989
40180
|
}
|
|
39990
40181
|
}
|
|
39991
40182
|
function dispatchRequest(config) {
|
|
@@ -40036,9 +40227,9 @@ var require_axios = __commonJS({
|
|
|
40036
40227
|
}
|
|
40037
40228
|
return (value, opt, opts) => {
|
|
40038
40229
|
if (validator2 === false) {
|
|
40039
|
-
throw new AxiosError(
|
|
40230
|
+
throw new AxiosError$1(
|
|
40040
40231
|
formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")),
|
|
40041
|
-
AxiosError.ERR_DEPRECATED
|
|
40232
|
+
AxiosError$1.ERR_DEPRECATED
|
|
40042
40233
|
);
|
|
40043
40234
|
}
|
|
40044
40235
|
if (version2 && !deprecatedWarnings[opt]) {
|
|
@@ -40061,7 +40252,7 @@ var require_axios = __commonJS({
|
|
|
40061
40252
|
};
|
|
40062
40253
|
function assertOptions(options, schema, allowUnknown) {
|
|
40063
40254
|
if (typeof options !== "object") {
|
|
40064
|
-
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
40255
|
+
throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
40065
40256
|
}
|
|
40066
40257
|
const keys = Object.keys(options);
|
|
40067
40258
|
let i = keys.length;
|
|
@@ -40072,12 +40263,12 @@ var require_axios = __commonJS({
|
|
|
40072
40263
|
const value = options[opt];
|
|
40073
40264
|
const result = value === void 0 || validator2(value, opt, options);
|
|
40074
40265
|
if (result !== true) {
|
|
40075
|
-
throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
40266
|
+
throw new AxiosError$1("option " + opt + " must be " + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
40076
40267
|
}
|
|
40077
40268
|
continue;
|
|
40078
40269
|
}
|
|
40079
40270
|
if (allowUnknown !== true) {
|
|
40080
|
-
throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
40271
|
+
throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
|
|
40081
40272
|
}
|
|
40082
40273
|
}
|
|
40083
40274
|
}
|
|
@@ -40135,7 +40326,8 @@ var require_axios = __commonJS({
|
|
|
40135
40326
|
validator.assertOptions(transitional, {
|
|
40136
40327
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
40137
40328
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
40138
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
40329
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
40330
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
40139
40331
|
}, false);
|
|
40140
40332
|
}
|
|
40141
40333
|
if (paramsSerializer != null) {
|
|
@@ -40180,7 +40372,13 @@ var require_axios = __commonJS({
|
|
|
40180
40372
|
return;
|
|
40181
40373
|
}
|
|
40182
40374
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
40183
|
-
|
|
40375
|
+
const transitional2 = config.transitional || transitionalDefaults;
|
|
40376
|
+
const legacyInterceptorReqResOrdering = transitional2 && transitional2.legacyInterceptorReqResOrdering;
|
|
40377
|
+
if (legacyInterceptorReqResOrdering) {
|
|
40378
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
40379
|
+
} else {
|
|
40380
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
40381
|
+
}
|
|
40184
40382
|
});
|
|
40185
40383
|
const responseInterceptorChain = [];
|
|
40186
40384
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -40290,7 +40488,7 @@ var require_axios = __commonJS({
|
|
|
40290
40488
|
if (token.reason) {
|
|
40291
40489
|
return;
|
|
40292
40490
|
}
|
|
40293
|
-
token.reason = new CanceledError(message, config, request);
|
|
40491
|
+
token.reason = new CanceledError$1(message, config, request);
|
|
40294
40492
|
resolvePromise(token.reason);
|
|
40295
40493
|
});
|
|
40296
40494
|
}
|
|
@@ -40424,7 +40622,13 @@ var require_axios = __commonJS({
|
|
|
40424
40622
|
InsufficientStorage: 507,
|
|
40425
40623
|
LoopDetected: 508,
|
|
40426
40624
|
NotExtended: 510,
|
|
40427
|
-
NetworkAuthenticationRequired: 511
|
|
40625
|
+
NetworkAuthenticationRequired: 511,
|
|
40626
|
+
WebServerIsDown: 521,
|
|
40627
|
+
ConnectionTimedOut: 522,
|
|
40628
|
+
OriginIsUnreachable: 523,
|
|
40629
|
+
TimeoutOccurred: 524,
|
|
40630
|
+
SslHandshakeFailed: 525,
|
|
40631
|
+
InvalidSslCertificate: 526
|
|
40428
40632
|
};
|
|
40429
40633
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
40430
40634
|
HttpStatusCode[value] = key;
|
|
@@ -40442,12 +40646,12 @@ var require_axios = __commonJS({
|
|
|
40442
40646
|
}
|
|
40443
40647
|
var axios = createInstance(defaults$1);
|
|
40444
40648
|
axios.Axios = Axios$1;
|
|
40445
|
-
axios.CanceledError = CanceledError;
|
|
40649
|
+
axios.CanceledError = CanceledError$1;
|
|
40446
40650
|
axios.CancelToken = CancelToken$1;
|
|
40447
40651
|
axios.isCancel = isCancel;
|
|
40448
40652
|
axios.VERSION = VERSION;
|
|
40449
40653
|
axios.toFormData = toFormData;
|
|
40450
|
-
axios.AxiosError = AxiosError;
|
|
40654
|
+
axios.AxiosError = AxiosError$1;
|
|
40451
40655
|
axios.Cancel = axios.CanceledError;
|
|
40452
40656
|
axios.all = function all(promises) {
|
|
40453
40657
|
return Promise.all(promises);
|
|
@@ -47065,7 +47269,7 @@ mime-types/index.js:
|
|
|
47065
47269
|
*)
|
|
47066
47270
|
|
|
47067
47271
|
axios/dist/node/axios.cjs:
|
|
47068
|
-
(*! Axios v1.
|
|
47272
|
+
(*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
47069
47273
|
|
|
47070
47274
|
posthog-node/lib/node/index.mjs:
|
|
47071
47275
|
(**
|