@jerome-benoit/sap-ai-provider 4.7.1 → 4.8.0
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/README.md +5 -0
- package/dist/{chunk-XIWHF23D.js → chunk-3ZSXTKOK.js} +399 -117
- package/dist/{chunk-XIWHF23D.js.map → chunk-3ZSXTKOK.js.map} +1 -1
- package/dist/{chunk-OA6TJHD2.js → chunk-BVDSJ4IZ.js} +10 -4
- package/dist/chunk-BVDSJ4IZ.js.map +1 -0
- package/dist/{chunk-BZWUUBX2.js → chunk-H5KD4EPO.js} +8 -2
- package/dist/chunk-H5KD4EPO.js.map +1 -0
- package/dist/{chunk-HDOSHLV6.js → chunk-KVOLFUQJ.js} +2 -2
- package/dist/{chunk-RUCURXS7.js → chunk-TQXCNZBC.js} +11 -5
- package/dist/chunk-TQXCNZBC.js.map +1 -0
- package/dist/{foundation-models-embedding-model-strategy-TACUPFS2.js → foundation-models-embedding-model-strategy-SWRJNFD4.js} +7 -6
- package/dist/foundation-models-embedding-model-strategy-SWRJNFD4.js.map +1 -0
- package/dist/{foundation-models-language-model-strategy-LLWYUGA3.js → foundation-models-language-model-strategy-LRAC25ZY.js} +14 -9
- package/dist/foundation-models-language-model-strategy-LRAC25ZY.js.map +1 -0
- package/dist/index.cjs +447 -135
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/dist/{orchestration-embedding-model-strategy-RYI3HWRZ.js → orchestration-embedding-model-strategy-C5G735Q2.js} +8 -7
- package/dist/orchestration-embedding-model-strategy-C5G735Q2.js.map +1 -0
- package/dist/{orchestration-language-model-strategy-NIUPRYDW.js → orchestration-language-model-strategy-NUHYRIXH.js} +16 -10
- package/dist/orchestration-language-model-strategy-NUHYRIXH.js.map +1 -0
- package/package.json +18 -18
- package/dist/chunk-BZWUUBX2.js.map +0 -1
- package/dist/chunk-OA6TJHD2.js.map +0 -1
- package/dist/chunk-RUCURXS7.js.map +0 -1
- package/dist/foundation-models-embedding-model-strategy-TACUPFS2.js.map +0 -1
- package/dist/foundation-models-language-model-strategy-LLWYUGA3.js.map +0 -1
- package/dist/orchestration-embedding-model-strategy-RYI3HWRZ.js.map +0 -1
- package/dist/orchestration-language-model-strategy-NIUPRYDW.js.map +0 -1
- /package/dist/{chunk-HDOSHLV6.js.map → chunk-KVOLFUQJ.js.map} +0 -0
|
@@ -23227,6 +23227,9 @@ var require_form_data = __commonJS({
|
|
|
23227
23227
|
var setToStringTag = require_es_set_tostringtag();
|
|
23228
23228
|
var hasOwn = require_hasown();
|
|
23229
23229
|
var populate = require_populate();
|
|
23230
|
+
function escapeHeaderParam(str) {
|
|
23231
|
+
return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
|
|
23232
|
+
}
|
|
23230
23233
|
function FormData2(options) {
|
|
23231
23234
|
if (!(this instanceof FormData2)) {
|
|
23232
23235
|
return new FormData2(options);
|
|
@@ -23316,7 +23319,7 @@ var require_form_data = __commonJS({
|
|
|
23316
23319
|
var contents = "";
|
|
23317
23320
|
var headers = {
|
|
23318
23321
|
// add custom disposition as third element or keep it two elements if not
|
|
23319
|
-
"Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
|
|
23322
|
+
"Content-Disposition": ["form-data", 'name="' + escapeHeaderParam(field) + '"'].concat(contentDisposition || []),
|
|
23320
23323
|
// if no content type. allow it to be empty array
|
|
23321
23324
|
"Content-Type": [].concat(contentType || [])
|
|
23322
23325
|
};
|
|
@@ -23350,7 +23353,7 @@ var require_form_data = __commonJS({
|
|
|
23350
23353
|
filename = path.basename(value.client._httpMessage.path || "");
|
|
23351
23354
|
}
|
|
23352
23355
|
if (filename) {
|
|
23353
|
-
return 'filename="' + filename + '"';
|
|
23356
|
+
return 'filename="' + escapeHeaderParam(filename) + '"';
|
|
23354
23357
|
}
|
|
23355
23358
|
};
|
|
23356
23359
|
FormData2.prototype._getContentType = function(value, options) {
|
|
@@ -25194,6 +25197,25 @@ var require_axios = __commonJS({
|
|
|
25194
25197
|
iterator,
|
|
25195
25198
|
toStringTag
|
|
25196
25199
|
} = Symbol;
|
|
25200
|
+
var hasOwnProperty = (({
|
|
25201
|
+
hasOwnProperty: hasOwnProperty2
|
|
25202
|
+
}) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
25203
|
+
var hasOwnInPrototypeChain = (thing, prop) => {
|
|
25204
|
+
let obj = thing;
|
|
25205
|
+
const seen = [];
|
|
25206
|
+
while (obj != null && obj !== Object.prototype) {
|
|
25207
|
+
if (seen.indexOf(obj) !== -1) {
|
|
25208
|
+
return false;
|
|
25209
|
+
}
|
|
25210
|
+
seen.push(obj);
|
|
25211
|
+
if (hasOwnProperty(obj, prop)) {
|
|
25212
|
+
return true;
|
|
25213
|
+
}
|
|
25214
|
+
obj = getPrototypeOf(obj);
|
|
25215
|
+
}
|
|
25216
|
+
return false;
|
|
25217
|
+
};
|
|
25218
|
+
var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
|
|
25197
25219
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
25198
25220
|
const str = toString2.call(thing);
|
|
25199
25221
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -25226,11 +25248,14 @@ var require_axios = __commonJS({
|
|
|
25226
25248
|
var isObject = (thing) => thing !== null && typeof thing === "object";
|
|
25227
25249
|
var isBoolean = (thing) => thing === true || thing === false;
|
|
25228
25250
|
var isPlainObject2 = (val) => {
|
|
25229
|
-
if (
|
|
25251
|
+
if (!isObject(val)) {
|
|
25230
25252
|
return false;
|
|
25231
25253
|
}
|
|
25232
25254
|
const prototype2 = getPrototypeOf(val);
|
|
25233
|
-
return (prototype2 === null || prototype2 === Object.prototype ||
|
|
25255
|
+
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
|
|
25256
|
+
// Symbol.iterator as evidence the value is a tagged/iterable type rather
|
|
25257
|
+
// than a plain object, while ignoring keys injected onto Object.prototype.
|
|
25258
|
+
!hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
|
|
25234
25259
|
};
|
|
25235
25260
|
var isEmptyObject = (val) => {
|
|
25236
25261
|
if (!isObject(val) || isBuffer(val)) {
|
|
@@ -25483,9 +25508,6 @@ var require_axios = __commonJS({
|
|
|
25483
25508
|
return p1.toUpperCase() + p2;
|
|
25484
25509
|
});
|
|
25485
25510
|
};
|
|
25486
|
-
var hasOwnProperty = (({
|
|
25487
|
-
hasOwnProperty: hasOwnProperty2
|
|
25488
|
-
}) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
25489
25511
|
var {
|
|
25490
25512
|
propertyIsEnumerable
|
|
25491
25513
|
} = Object.prototype;
|
|
@@ -25586,6 +25608,7 @@ var require_axios = __commonJS({
|
|
|
25586
25608
|
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
25587
25609
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
25588
25610
|
var isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
25611
|
+
var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
|
|
25589
25612
|
var utils$1 = {
|
|
25590
25613
|
isArray,
|
|
25591
25614
|
isArrayBuffer,
|
|
@@ -25631,6 +25654,8 @@ var require_axios = __commonJS({
|
|
|
25631
25654
|
hasOwnProperty,
|
|
25632
25655
|
hasOwnProp: hasOwnProperty,
|
|
25633
25656
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
25657
|
+
hasOwnInPrototypeChain,
|
|
25658
|
+
getSafeProp,
|
|
25634
25659
|
reduceDescriptors,
|
|
25635
25660
|
freezeMethods,
|
|
25636
25661
|
toObjectSet,
|
|
@@ -25646,7 +25671,8 @@ var require_axios = __commonJS({
|
|
|
25646
25671
|
isThenable,
|
|
25647
25672
|
setImmediate: _setImmediate,
|
|
25648
25673
|
asap,
|
|
25649
|
-
isIterable
|
|
25674
|
+
isIterable,
|
|
25675
|
+
isSafeIterable
|
|
25650
25676
|
};
|
|
25651
25677
|
var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
|
|
25652
25678
|
var parseHeaders = (rawHeaders) => {
|
|
@@ -25784,13 +25810,19 @@ var require_axios = __commonJS({
|
|
|
25784
25810
|
setHeaders(header, valueOrRewrite);
|
|
25785
25811
|
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
25786
25812
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
25787
|
-
} else if (utils$1.isObject(header) && utils$1.
|
|
25788
|
-
let obj =
|
|
25813
|
+
} else if (utils$1.isObject(header) && utils$1.isSafeIterable(header)) {
|
|
25814
|
+
let obj = /* @__PURE__ */ Object.create(null), dest, key;
|
|
25789
25815
|
for (const entry of header) {
|
|
25790
25816
|
if (!utils$1.isArray(entry)) {
|
|
25791
25817
|
throw new TypeError("Object iterator must return a key-value pair");
|
|
25792
25818
|
}
|
|
25793
|
-
|
|
25819
|
+
key = entry[0];
|
|
25820
|
+
if (utils$1.hasOwnProp(obj, key)) {
|
|
25821
|
+
dest = obj[key];
|
|
25822
|
+
obj[key] = utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
|
|
25823
|
+
} else {
|
|
25824
|
+
obj[key] = entry[1];
|
|
25825
|
+
}
|
|
25794
25826
|
}
|
|
25795
25827
|
setHeaders(obj, valueOrRewrite);
|
|
25796
25828
|
} else {
|
|
@@ -25995,7 +26027,13 @@ var require_axios = __commonJS({
|
|
|
25995
26027
|
var AxiosError = class _AxiosError extends Error {
|
|
25996
26028
|
static from(error, code, config, request, response, customProps) {
|
|
25997
26029
|
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
25998
|
-
axiosError
|
|
26030
|
+
Object.defineProperty(axiosError, "cause", {
|
|
26031
|
+
__proto__: null,
|
|
26032
|
+
value: error,
|
|
26033
|
+
writable: true,
|
|
26034
|
+
enumerable: false,
|
|
26035
|
+
configurable: true
|
|
26036
|
+
});
|
|
25999
26037
|
axiosError.name = error.name;
|
|
26000
26038
|
if (error.status != null && axiosError.status == null) {
|
|
26001
26039
|
axiosError.status = error.status;
|
|
@@ -26072,6 +26110,7 @@ var require_axios = __commonJS({
|
|
|
26072
26110
|
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
26073
26111
|
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
26074
26112
|
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
26113
|
+
var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
|
|
26075
26114
|
function isVisitable(thing) {
|
|
26076
26115
|
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
26077
26116
|
}
|
|
@@ -26108,8 +26147,9 @@ var require_axios = __commonJS({
|
|
|
26108
26147
|
const dots = options.dots;
|
|
26109
26148
|
const indexes = options.indexes;
|
|
26110
26149
|
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
26111
|
-
const maxDepth = options.maxDepth === void 0 ?
|
|
26150
|
+
const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
|
|
26112
26151
|
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
26152
|
+
const stack = [];
|
|
26113
26153
|
if (!utils$1.isFunction(visitor)) {
|
|
26114
26154
|
throw new TypeError("visitor must be a function");
|
|
26115
26155
|
}
|
|
@@ -26125,10 +26165,38 @@ var require_axios = __commonJS({
|
|
|
26125
26165
|
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
26126
26166
|
}
|
|
26127
26167
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
26128
|
-
|
|
26168
|
+
if (useBlob && typeof _Blob === "function") {
|
|
26169
|
+
return new _Blob([value]);
|
|
26170
|
+
}
|
|
26171
|
+
if (typeof Buffer !== "undefined") {
|
|
26172
|
+
return Buffer.from(value);
|
|
26173
|
+
}
|
|
26174
|
+
throw new AxiosError("Blob is not supported. Use a Buffer instead.", AxiosError.ERR_NOT_SUPPORT);
|
|
26129
26175
|
}
|
|
26130
26176
|
return value;
|
|
26131
26177
|
}
|
|
26178
|
+
function throwIfMaxDepthExceeded(depth) {
|
|
26179
|
+
if (depth > maxDepth) {
|
|
26180
|
+
throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
26181
|
+
}
|
|
26182
|
+
}
|
|
26183
|
+
function stringifyWithDepthLimit(value, depth) {
|
|
26184
|
+
if (maxDepth === Infinity) {
|
|
26185
|
+
return JSON.stringify(value);
|
|
26186
|
+
}
|
|
26187
|
+
const ancestors = [];
|
|
26188
|
+
return JSON.stringify(value, function limitDepth(_key, currentValue) {
|
|
26189
|
+
if (!utils$1.isObject(currentValue)) {
|
|
26190
|
+
return currentValue;
|
|
26191
|
+
}
|
|
26192
|
+
while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
|
|
26193
|
+
ancestors.pop();
|
|
26194
|
+
}
|
|
26195
|
+
ancestors.push(currentValue);
|
|
26196
|
+
throwIfMaxDepthExceeded(depth + ancestors.length - 1);
|
|
26197
|
+
return currentValue;
|
|
26198
|
+
});
|
|
26199
|
+
}
|
|
26132
26200
|
function defaultVisitor(value, key, path2) {
|
|
26133
26201
|
let arr = value;
|
|
26134
26202
|
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
@@ -26138,7 +26206,7 @@ var require_axios = __commonJS({
|
|
|
26138
26206
|
if (value && !path2 && typeof value === "object") {
|
|
26139
26207
|
if (utils$1.endsWith(key, "{}")) {
|
|
26140
26208
|
key = metaTokens ? key : key.slice(0, -2);
|
|
26141
|
-
value =
|
|
26209
|
+
value = stringifyWithDepthLimit(value, 1);
|
|
26142
26210
|
} else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) {
|
|
26143
26211
|
key = removeBrackets(key);
|
|
26144
26212
|
arr.forEach(function each(el, index) {
|
|
@@ -26157,7 +26225,6 @@ var require_axios = __commonJS({
|
|
|
26157
26225
|
formData.append(renderKey(path2, key, dots), convertValue(value));
|
|
26158
26226
|
return false;
|
|
26159
26227
|
}
|
|
26160
|
-
const stack = [];
|
|
26161
26228
|
const exposedHelpers = Object.assign(predicates, {
|
|
26162
26229
|
defaultVisitor,
|
|
26163
26230
|
convertValue,
|
|
@@ -26165,9 +26232,7 @@ var require_axios = __commonJS({
|
|
|
26165
26232
|
});
|
|
26166
26233
|
function build(value, path2, depth = 0) {
|
|
26167
26234
|
if (utils$1.isUndefined(value)) return;
|
|
26168
|
-
|
|
26169
|
-
throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
26170
|
-
}
|
|
26235
|
+
throwIfMaxDepthExceeded(depth);
|
|
26171
26236
|
if (stack.indexOf(value) !== -1) {
|
|
26172
26237
|
throw new Error("Circular reference detected in " + path2.join("."));
|
|
26173
26238
|
}
|
|
@@ -26208,9 +26273,7 @@ var require_axios = __commonJS({
|
|
|
26208
26273
|
this._pairs.push([name, value]);
|
|
26209
26274
|
};
|
|
26210
26275
|
prototype.toString = function toString3(encoder) {
|
|
26211
|
-
const _encode = encoder ?
|
|
26212
|
-
return encoder.call(this, value, encode$1);
|
|
26213
|
-
} : encode$1;
|
|
26276
|
+
const _encode = encoder ? (value) => encoder.call(this, value, encode$1) : encode$1;
|
|
26214
26277
|
return this._pairs.map(function each(pair) {
|
|
26215
26278
|
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
26216
26279
|
}, "").join("&");
|
|
@@ -26222,11 +26285,12 @@ var require_axios = __commonJS({
|
|
|
26222
26285
|
if (!params) {
|
|
26223
26286
|
return url2;
|
|
26224
26287
|
}
|
|
26225
|
-
|
|
26288
|
+
url2 = url2 || "";
|
|
26226
26289
|
const _options = utils$1.isFunction(options) ? {
|
|
26227
26290
|
serialize: options
|
|
26228
26291
|
} : options;
|
|
26229
|
-
const
|
|
26292
|
+
const _encode = utils$1.getSafeProp(_options, "encode") || encode;
|
|
26293
|
+
const serializeFn = utils$1.getSafeProp(_options, "serialize");
|
|
26230
26294
|
let serializedParams;
|
|
26231
26295
|
if (serializeFn) {
|
|
26232
26296
|
serializedParams = serializeFn(params, _options);
|
|
@@ -26309,7 +26373,8 @@ var require_axios = __commonJS({
|
|
|
26309
26373
|
forcedJSONParsing: true,
|
|
26310
26374
|
clarifyTimeoutError: false,
|
|
26311
26375
|
legacyInterceptorReqResOrdering: true,
|
|
26312
|
-
advertiseZstdAcceptEncoding: false
|
|
26376
|
+
advertiseZstdAcceptEncoding: false,
|
|
26377
|
+
validateStatusUndefinedResolves: true
|
|
26313
26378
|
};
|
|
26314
26379
|
var URLSearchParams = url.URLSearchParams;
|
|
26315
26380
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
@@ -26374,10 +26439,21 @@ var require_axios = __commonJS({
|
|
|
26374
26439
|
...options
|
|
26375
26440
|
});
|
|
26376
26441
|
}
|
|
26442
|
+
var MAX_DEPTH2 = DEFAULT_FORM_DATA_MAX_DEPTH;
|
|
26443
|
+
function throwIfDepthExceeded(index) {
|
|
26444
|
+
if (index > MAX_DEPTH2) {
|
|
26445
|
+
throw new AxiosError("FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH2, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
26446
|
+
}
|
|
26447
|
+
}
|
|
26377
26448
|
function parsePropPath(name) {
|
|
26378
|
-
|
|
26379
|
-
|
|
26380
|
-
|
|
26449
|
+
const path2 = [];
|
|
26450
|
+
const pattern = /\w+|\[(\w*)]/g;
|
|
26451
|
+
let match2;
|
|
26452
|
+
while ((match2 = pattern.exec(name)) !== null) {
|
|
26453
|
+
throwIfDepthExceeded(path2.length);
|
|
26454
|
+
path2.push(match2[0] === "[]" ? "" : match2[1] || match2[0]);
|
|
26455
|
+
}
|
|
26456
|
+
return path2;
|
|
26381
26457
|
}
|
|
26382
26458
|
function arrayToObject(arr) {
|
|
26383
26459
|
const obj = {};
|
|
@@ -26393,6 +26469,7 @@ var require_axios = __commonJS({
|
|
|
26393
26469
|
}
|
|
26394
26470
|
function formDataToJSON(formData) {
|
|
26395
26471
|
function buildPath(path2, value, target, index) {
|
|
26472
|
+
throwIfDepthExceeded(index);
|
|
26396
26473
|
let name = path2[index++];
|
|
26397
26474
|
if (name === "__proto__") return true;
|
|
26398
26475
|
const isNumericKey = Number.isFinite(+name);
|
|
@@ -26579,9 +26656,28 @@ var require_axios = __commonJS({
|
|
|
26579
26656
|
function combineURLs(baseURL, relativeURL) {
|
|
26580
26657
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
26581
26658
|
}
|
|
26582
|
-
|
|
26659
|
+
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
26660
|
+
var httpProtocolControlCharacters = /[\t\n\r]/g;
|
|
26661
|
+
function stripLeadingC0ControlOrSpace(url2) {
|
|
26662
|
+
let i = 0;
|
|
26663
|
+
while (i < url2.length && url2.charCodeAt(i) <= 32) {
|
|
26664
|
+
i++;
|
|
26665
|
+
}
|
|
26666
|
+
return url2.slice(i);
|
|
26667
|
+
}
|
|
26668
|
+
function normalizeURLForProtocolCheck(url2) {
|
|
26669
|
+
return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
|
|
26670
|
+
}
|
|
26671
|
+
function assertValidHttpProtocolURL(url2, config) {
|
|
26672
|
+
if (typeof url2 === "string" && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url2))) {
|
|
26673
|
+
throw new AxiosError('Invalid URL: missing "//" after protocol', AxiosError.ERR_INVALID_URL, config);
|
|
26674
|
+
}
|
|
26675
|
+
}
|
|
26676
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
26677
|
+
assertValidHttpProtocolURL(requestedURL, config);
|
|
26583
26678
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
26584
26679
|
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
26680
|
+
assertValidHttpProtocolURL(baseURL, config);
|
|
26585
26681
|
return combineURLs(baseURL, requestedURL);
|
|
26586
26682
|
}
|
|
26587
26683
|
return requestedURL;
|
|
@@ -26651,7 +26747,7 @@ var require_axios = __commonJS({
|
|
|
26651
26747
|
function getEnv(key) {
|
|
26652
26748
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
26653
26749
|
}
|
|
26654
|
-
var VERSION2 = "1.
|
|
26750
|
+
var VERSION2 = "1.18.1";
|
|
26655
26751
|
function parseProtocol(url2) {
|
|
26656
26752
|
const match2 = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
26657
26753
|
return match2 && match2[1] || "";
|
|
@@ -26673,13 +26769,13 @@ var require_axios = __commonJS({
|
|
|
26673
26769
|
const params = match2[2];
|
|
26674
26770
|
const encoding = match2[3] ? "base64" : "utf8";
|
|
26675
26771
|
const body = match2[4];
|
|
26676
|
-
let mime;
|
|
26772
|
+
let mime = "";
|
|
26677
26773
|
if (type) {
|
|
26678
26774
|
mime = params ? type + params : type;
|
|
26679
26775
|
} else if (params) {
|
|
26680
26776
|
mime = "text/plain" + params;
|
|
26681
26777
|
}
|
|
26682
|
-
const buffer = Buffer.from(decodeURIComponent(body), encoding);
|
|
26778
|
+
const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
|
|
26683
26779
|
if (asBlob) {
|
|
26684
26780
|
if (!_Blob) {
|
|
26685
26781
|
throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
@@ -27003,13 +27099,29 @@ var require_axios = __commonJS({
|
|
|
27003
27099
|
}, cb);
|
|
27004
27100
|
} : fn;
|
|
27005
27101
|
};
|
|
27006
|
-
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
|
|
27102
|
+
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
|
|
27007
27103
|
var isIPv4Loopback = (host) => {
|
|
27008
27104
|
const parts = host.split(".");
|
|
27009
27105
|
if (parts.length !== 4) return false;
|
|
27010
27106
|
if (parts[0] !== "127") return false;
|
|
27011
27107
|
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
27012
27108
|
};
|
|
27109
|
+
var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
|
|
27110
|
+
var isIPv6Unspecified = (host) => {
|
|
27111
|
+
if (host === "::") return true;
|
|
27112
|
+
const compressionIndex = host.indexOf("::");
|
|
27113
|
+
if (compressionIndex !== -1) {
|
|
27114
|
+
if (compressionIndex !== host.lastIndexOf("::")) return false;
|
|
27115
|
+
const left = host.slice(0, compressionIndex);
|
|
27116
|
+
const right = host.slice(compressionIndex + 2);
|
|
27117
|
+
const leftGroups = left ? left.split(":") : [];
|
|
27118
|
+
const rightGroups = right ? right.split(":") : [];
|
|
27119
|
+
const explicitGroups = leftGroups.length + rightGroups.length;
|
|
27120
|
+
return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
|
|
27121
|
+
}
|
|
27122
|
+
const groups = host.split(":");
|
|
27123
|
+
return groups.length === 8 && groups.every(isIPv6ZeroGroup);
|
|
27124
|
+
};
|
|
27013
27125
|
var isIPv6Loopback = (host) => {
|
|
27014
27126
|
if (host === "::1") return true;
|
|
27015
27127
|
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
@@ -27032,6 +27144,7 @@ var require_axios = __commonJS({
|
|
|
27032
27144
|
if (!host) return false;
|
|
27033
27145
|
if (LOOPBACK_HOSTNAMES.has(host)) return true;
|
|
27034
27146
|
if (isIPv4Loopback(host)) return true;
|
|
27147
|
+
if (isIPv6Unspecified(host)) return true;
|
|
27035
27148
|
return isIPv6Loopback(host);
|
|
27036
27149
|
};
|
|
27037
27150
|
var DEFAULT_PORTS = {
|
|
@@ -27224,6 +27337,8 @@ var require_axios = __commonJS({
|
|
|
27224
27337
|
}), throttled[1]];
|
|
27225
27338
|
};
|
|
27226
27339
|
var asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
27340
|
+
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
27341
|
+
var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
27227
27342
|
function estimateDataURLDecodedBytes(url2) {
|
|
27228
27343
|
if (!url2 || typeof url2 !== "string") return 0;
|
|
27229
27344
|
if (!url2.startsWith("data:")) return 0;
|
|
@@ -27239,7 +27354,7 @@ var require_axios = __commonJS({
|
|
|
27239
27354
|
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
27240
27355
|
const a = body.charCodeAt(i + 1);
|
|
27241
27356
|
const b = body.charCodeAt(i + 2);
|
|
27242
|
-
const isHex = (a
|
|
27357
|
+
const isHex = isHexDigit(a) && isHexDigit(b);
|
|
27243
27358
|
if (isHex) {
|
|
27244
27359
|
effectiveLen -= 2;
|
|
27245
27360
|
i += 2;
|
|
@@ -27271,13 +27386,13 @@ var require_axios = __commonJS({
|
|
|
27271
27386
|
const bytes2 = groups * 3 - (pad3 || 0);
|
|
27272
27387
|
return bytes2 > 0 ? bytes2 : 0;
|
|
27273
27388
|
}
|
|
27274
|
-
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
27275
|
-
return Buffer.byteLength(body, "utf8");
|
|
27276
|
-
}
|
|
27277
27389
|
let bytes = 0;
|
|
27278
27390
|
for (let i = 0, len = body.length; i < len; i++) {
|
|
27279
27391
|
const c = body.charCodeAt(i);
|
|
27280
|
-
if (c
|
|
27392
|
+
if (c === 37 && isPercentEncodedByte(body, i, len)) {
|
|
27393
|
+
bytes += 1;
|
|
27394
|
+
i += 2;
|
|
27395
|
+
} else if (c < 128) {
|
|
27281
27396
|
bytes += 1;
|
|
27282
27397
|
} else if (c < 2048) {
|
|
27283
27398
|
bytes += 2;
|
|
@@ -27333,6 +27448,33 @@ var require_axios = __commonJS({
|
|
|
27333
27448
|
var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
|
|
27334
27449
|
var tunnelingAgentCache = /* @__PURE__ */ new Map();
|
|
27335
27450
|
var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
|
|
27451
|
+
var NODE_NATIVE_ENV_PROXY_SUPPORT = {
|
|
27452
|
+
22: 21,
|
|
27453
|
+
24: 5
|
|
27454
|
+
};
|
|
27455
|
+
function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
|
|
27456
|
+
if (!nodeVersion) {
|
|
27457
|
+
return false;
|
|
27458
|
+
}
|
|
27459
|
+
const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
|
|
27460
|
+
if (!Number.isInteger(major) || !Number.isInteger(minor)) {
|
|
27461
|
+
return false;
|
|
27462
|
+
}
|
|
27463
|
+
if (major > 24) {
|
|
27464
|
+
return true;
|
|
27465
|
+
}
|
|
27466
|
+
return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
|
|
27467
|
+
}
|
|
27468
|
+
function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
|
|
27469
|
+
if (!isNodeNativeEnvProxySupported(nodeVersion)) {
|
|
27470
|
+
return false;
|
|
27471
|
+
}
|
|
27472
|
+
const agentOptions = agent && agent.options;
|
|
27473
|
+
return Boolean(agentOptions && utils$1.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null);
|
|
27474
|
+
}
|
|
27475
|
+
function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
|
|
27476
|
+
return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
|
|
27477
|
+
}
|
|
27336
27478
|
function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
27337
27479
|
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
|
|
27338
27480
|
const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
|
|
@@ -27384,13 +27526,37 @@ var require_axios = __commonJS({
|
|
|
27384
27526
|
if (options.beforeRedirects.auth) {
|
|
27385
27527
|
options.beforeRedirects.auth(options);
|
|
27386
27528
|
}
|
|
27529
|
+
if (options.beforeRedirects.sensitiveHeaders) {
|
|
27530
|
+
options.beforeRedirects.sensitiveHeaders(options, requestDetails);
|
|
27531
|
+
}
|
|
27387
27532
|
if (options.beforeRedirects.config) {
|
|
27388
27533
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
27389
27534
|
}
|
|
27390
27535
|
}
|
|
27391
|
-
function
|
|
27536
|
+
function stripMatchingHeaders(headers, sensitiveSet) {
|
|
27537
|
+
if (!headers) {
|
|
27538
|
+
return;
|
|
27539
|
+
}
|
|
27540
|
+
Object.keys(headers).forEach((header) => {
|
|
27541
|
+
if (sensitiveSet.has(header.toLowerCase())) {
|
|
27542
|
+
delete headers[header];
|
|
27543
|
+
}
|
|
27544
|
+
});
|
|
27545
|
+
}
|
|
27546
|
+
function isSameOriginRedirect(redirectOptions, requestDetails) {
|
|
27547
|
+
if (!requestDetails) {
|
|
27548
|
+
return false;
|
|
27549
|
+
}
|
|
27550
|
+
try {
|
|
27551
|
+
return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
|
|
27552
|
+
} catch (e) {
|
|
27553
|
+
return false;
|
|
27554
|
+
}
|
|
27555
|
+
}
|
|
27556
|
+
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
|
|
27392
27557
|
let proxy = configProxy;
|
|
27393
|
-
|
|
27558
|
+
const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
|
|
27559
|
+
if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
27394
27560
|
const proxyUrl = getProxyForUrl(location);
|
|
27395
27561
|
if (proxyUrl) {
|
|
27396
27562
|
if (!shouldBypassProxy(location)) {
|
|
@@ -27481,7 +27647,7 @@ var require_axios = __commonJS({
|
|
|
27481
27647
|
}
|
|
27482
27648
|
}
|
|
27483
27649
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
27484
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
|
|
27650
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent, configHttpAgent);
|
|
27485
27651
|
};
|
|
27486
27652
|
}
|
|
27487
27653
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils$1.kindOf(process) === "process";
|
|
@@ -27558,7 +27724,7 @@ var require_axios = __commonJS({
|
|
|
27558
27724
|
};
|
|
27559
27725
|
var httpAdapter = isHttpAdapterSupported && function httpAdapter2(config) {
|
|
27560
27726
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
27561
|
-
const own2 = (key) => utils$1.
|
|
27727
|
+
const own2 = (key) => utils$1.getSafeProp(config, key);
|
|
27562
27728
|
const transitional = own2("transitional") || transitionalDefaults;
|
|
27563
27729
|
let data = own2("data");
|
|
27564
27730
|
let lookup = own2("lookup");
|
|
@@ -27566,9 +27732,17 @@ var require_axios = __commonJS({
|
|
|
27566
27732
|
let httpVersion = own2("httpVersion");
|
|
27567
27733
|
if (httpVersion === void 0) httpVersion = 1;
|
|
27568
27734
|
let http2Options = own2("http2Options");
|
|
27735
|
+
const httpAgent = own2("httpAgent");
|
|
27736
|
+
const httpsAgent = own2("httpsAgent");
|
|
27737
|
+
const configProxy = own2("proxy");
|
|
27569
27738
|
const responseType = own2("responseType");
|
|
27570
27739
|
const responseEncoding = own2("responseEncoding");
|
|
27571
|
-
const
|
|
27740
|
+
const socketPath = own2("socketPath");
|
|
27741
|
+
const method = own2("method").toUpperCase();
|
|
27742
|
+
const maxRedirects = own2("maxRedirects");
|
|
27743
|
+
const maxBodyLength = own2("maxBodyLength");
|
|
27744
|
+
const maxContentLength = own2("maxContentLength");
|
|
27745
|
+
const decompress = own2("decompress");
|
|
27572
27746
|
let isDone;
|
|
27573
27747
|
let rejected = false;
|
|
27574
27748
|
let req;
|
|
@@ -27607,9 +27781,11 @@ var require_axios = __commonJS({
|
|
|
27607
27781
|
}
|
|
27608
27782
|
}
|
|
27609
27783
|
function createTimeoutError() {
|
|
27610
|
-
|
|
27611
|
-
|
|
27612
|
-
|
|
27784
|
+
const configTimeout = own2("timeout");
|
|
27785
|
+
let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
|
|
27786
|
+
const configTimeoutErrorMessage = own2("timeoutErrorMessage");
|
|
27787
|
+
if (configTimeoutErrorMessage) {
|
|
27788
|
+
timeoutErrorMessage = configTimeoutErrorMessage;
|
|
27613
27789
|
}
|
|
27614
27790
|
return new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, req);
|
|
27615
27791
|
}
|
|
@@ -27650,15 +27826,16 @@ var require_axios = __commonJS({
|
|
|
27650
27826
|
onFinished();
|
|
27651
27827
|
}
|
|
27652
27828
|
});
|
|
27653
|
-
const fullPath = buildFullPath(
|
|
27654
|
-
const
|
|
27829
|
+
const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
|
|
27830
|
+
const urlBase = socketPath ? "http://localhost" : platform.hasBrowserEnv ? platform.origin : void 0;
|
|
27831
|
+
const parsed = new URL(fullPath, urlBase);
|
|
27655
27832
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
27656
27833
|
if (protocol === "data:") {
|
|
27657
|
-
if (
|
|
27658
|
-
const dataUrl = String(
|
|
27834
|
+
if (maxContentLength > -1) {
|
|
27835
|
+
const dataUrl = String(own2("url") || fullPath || "");
|
|
27659
27836
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
27660
|
-
if (estimated >
|
|
27661
|
-
return reject(new AxiosError("maxContentLength size of " +
|
|
27837
|
+
if (estimated > maxContentLength) {
|
|
27838
|
+
return reject(new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config));
|
|
27662
27839
|
}
|
|
27663
27840
|
}
|
|
27664
27841
|
let convertedData;
|
|
@@ -27671,7 +27848,7 @@ var require_axios = __commonJS({
|
|
|
27671
27848
|
});
|
|
27672
27849
|
}
|
|
27673
27850
|
try {
|
|
27674
|
-
convertedData = fromDataURI(
|
|
27851
|
+
convertedData = fromDataURI(own2("url"), responseType === "blob", {
|
|
27675
27852
|
Blob: config.env && config.env.Blob
|
|
27676
27853
|
});
|
|
27677
27854
|
} catch (err) {
|
|
@@ -27736,7 +27913,7 @@ var require_axios = __commonJS({
|
|
|
27736
27913
|
return reject(new AxiosError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", AxiosError.ERR_BAD_REQUEST, config));
|
|
27737
27914
|
}
|
|
27738
27915
|
headers.setContentLength(data.length, false);
|
|
27739
|
-
if (
|
|
27916
|
+
if (maxBodyLength > -1 && data.length > maxBodyLength) {
|
|
27740
27917
|
return reject(new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config));
|
|
27741
27918
|
}
|
|
27742
27919
|
}
|
|
@@ -27761,8 +27938,8 @@ var require_axios = __commonJS({
|
|
|
27761
27938
|
let auth = void 0;
|
|
27762
27939
|
const configAuth = own2("auth");
|
|
27763
27940
|
if (configAuth) {
|
|
27764
|
-
const username = configAuth
|
|
27765
|
-
const password = configAuth
|
|
27941
|
+
const username = utils$1.getSafeProp(configAuth, "username") || "";
|
|
27942
|
+
const password = utils$1.getSafeProp(configAuth, "password") || "";
|
|
27766
27943
|
auth = username + ":" + password;
|
|
27767
27944
|
}
|
|
27768
27945
|
if (!auth && (parsed.username || parsed.password)) {
|
|
@@ -27773,13 +27950,12 @@ var require_axios = __commonJS({
|
|
|
27773
27950
|
auth && headers.delete("authorization");
|
|
27774
27951
|
let path$1;
|
|
27775
27952
|
try {
|
|
27776
|
-
path$1 = buildURL(parsed.pathname + parsed.search,
|
|
27953
|
+
path$1 = buildURL(parsed.pathname + parsed.search, own2("params"), own2("paramsSerializer")).replace(/^\?/, "");
|
|
27777
27954
|
} catch (err) {
|
|
27778
|
-
|
|
27779
|
-
|
|
27780
|
-
|
|
27781
|
-
|
|
27782
|
-
return reject(customErr);
|
|
27955
|
+
return reject(AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config, null, null, {
|
|
27956
|
+
url: own2("url"),
|
|
27957
|
+
exists: true
|
|
27958
|
+
}));
|
|
27783
27959
|
}
|
|
27784
27960
|
headers.set("Accept-Encoding", utils$1.hasOwnProp(transitional, "advertiseZstdAcceptEncoding") && transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING, false);
|
|
27785
27961
|
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
@@ -27787,8 +27963,8 @@ var require_axios = __commonJS({
|
|
|
27787
27963
|
method,
|
|
27788
27964
|
headers: toByteStringHeaderObject(headers),
|
|
27789
27965
|
agents: {
|
|
27790
|
-
http:
|
|
27791
|
-
https:
|
|
27966
|
+
http: httpAgent,
|
|
27967
|
+
https: httpsAgent
|
|
27792
27968
|
},
|
|
27793
27969
|
auth,
|
|
27794
27970
|
protocol,
|
|
@@ -27798,7 +27974,6 @@ var require_axios = __commonJS({
|
|
|
27798
27974
|
http2Options
|
|
27799
27975
|
});
|
|
27800
27976
|
!utils$1.isUndefined(lookup) && (options.lookup = lookup);
|
|
27801
|
-
const socketPath = own2("socketPath");
|
|
27802
27977
|
if (socketPath) {
|
|
27803
27978
|
if (typeof socketPath !== "string") {
|
|
27804
27979
|
return reject(new AxiosError("socketPath must be a string", AxiosError.ERR_BAD_OPTION_VALUE, config));
|
|
@@ -27816,13 +27991,14 @@ var require_axios = __commonJS({
|
|
|
27816
27991
|
} else {
|
|
27817
27992
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
27818
27993
|
options.port = parsed.port;
|
|
27819
|
-
setProxy(options,
|
|
27994
|
+
setProxy(options, configProxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path, false, httpsAgent, httpAgent);
|
|
27820
27995
|
}
|
|
27821
27996
|
let transport;
|
|
27822
27997
|
let isNativeTransport = false;
|
|
27998
|
+
let transportEnforcesMaxBodyLength = false;
|
|
27823
27999
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
27824
28000
|
if (options.agent == null) {
|
|
27825
|
-
options.agent = isHttpsRequest ?
|
|
28001
|
+
options.agent = isHttpsRequest ? httpsAgent : httpAgent;
|
|
27826
28002
|
}
|
|
27827
28003
|
if (isHttp2) {
|
|
27828
28004
|
transport = http2Transport;
|
|
@@ -27830,12 +28006,14 @@ var require_axios = __commonJS({
|
|
|
27830
28006
|
const configTransport = own2("transport");
|
|
27831
28007
|
if (configTransport) {
|
|
27832
28008
|
transport = configTransport;
|
|
27833
|
-
} else if (
|
|
28009
|
+
} else if (maxRedirects === 0) {
|
|
27834
28010
|
transport = isHttpsRequest ? https : http;
|
|
27835
28011
|
isNativeTransport = true;
|
|
27836
28012
|
} else {
|
|
27837
|
-
|
|
27838
|
-
|
|
28013
|
+
transportEnforcesMaxBodyLength = true;
|
|
28014
|
+
options.sensitiveHeaders = [];
|
|
28015
|
+
if (maxRedirects) {
|
|
28016
|
+
options.maxRedirects = maxRedirects;
|
|
27839
28017
|
}
|
|
27840
28018
|
const configBeforeRedirect = own2("beforeRedirect");
|
|
27841
28019
|
if (configBeforeRedirect) {
|
|
@@ -27853,11 +28031,32 @@ var require_axios = __commonJS({
|
|
|
27853
28031
|
}
|
|
27854
28032
|
};
|
|
27855
28033
|
}
|
|
28034
|
+
const sensitiveHeaders = own2("sensitiveHeaders");
|
|
28035
|
+
if (sensitiveHeaders != null) {
|
|
28036
|
+
if (!utils$1.isArray(sensitiveHeaders)) {
|
|
28037
|
+
return reject(new AxiosError("sensitiveHeaders must be an array of strings", AxiosError.ERR_BAD_OPTION_VALUE, config));
|
|
28038
|
+
}
|
|
28039
|
+
const sensitiveSet = /* @__PURE__ */ new Set();
|
|
28040
|
+
for (const header of sensitiveHeaders) {
|
|
28041
|
+
if (!utils$1.isString(header)) {
|
|
28042
|
+
return reject(new AxiosError("sensitiveHeaders must be an array of strings", AxiosError.ERR_BAD_OPTION_VALUE, config));
|
|
28043
|
+
}
|
|
28044
|
+
sensitiveSet.add(header.toLowerCase());
|
|
28045
|
+
}
|
|
28046
|
+
if (sensitiveSet.size) {
|
|
28047
|
+
options.sensitiveHeaders = Array.from(sensitiveSet);
|
|
28048
|
+
options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
|
|
28049
|
+
if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
|
|
28050
|
+
stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
|
|
28051
|
+
}
|
|
28052
|
+
};
|
|
28053
|
+
}
|
|
28054
|
+
}
|
|
27856
28055
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
27857
28056
|
}
|
|
27858
28057
|
}
|
|
27859
|
-
if (
|
|
27860
|
-
options.maxBodyLength =
|
|
28058
|
+
if (maxBodyLength > -1) {
|
|
28059
|
+
options.maxBodyLength = maxBodyLength;
|
|
27861
28060
|
} else {
|
|
27862
28061
|
options.maxBodyLength = Infinity;
|
|
27863
28062
|
}
|
|
@@ -27876,7 +28075,7 @@ var require_axios = __commonJS({
|
|
|
27876
28075
|
}
|
|
27877
28076
|
let responseStream = res;
|
|
27878
28077
|
const lastRequest = res.req || req;
|
|
27879
|
-
if (
|
|
28078
|
+
if (decompress !== false && res.headers["content-encoding"]) {
|
|
27880
28079
|
if (method === "HEAD" || res.statusCode === 204) {
|
|
27881
28080
|
delete res.headers["content-encoding"];
|
|
27882
28081
|
}
|
|
@@ -27917,8 +28116,8 @@ var require_axios = __commonJS({
|
|
|
27917
28116
|
request: lastRequest
|
|
27918
28117
|
};
|
|
27919
28118
|
if (responseType === "stream") {
|
|
27920
|
-
if (
|
|
27921
|
-
const limit =
|
|
28119
|
+
if (maxContentLength > -1) {
|
|
28120
|
+
const limit = maxContentLength;
|
|
27922
28121
|
const source = responseStream;
|
|
27923
28122
|
async function* enforceMaxContentLength() {
|
|
27924
28123
|
let totalResponseBytes = 0;
|
|
@@ -27942,10 +28141,10 @@ var require_axios = __commonJS({
|
|
|
27942
28141
|
responseStream.on("data", function handleStreamData(chunk) {
|
|
27943
28142
|
responseBuffer.push(chunk);
|
|
27944
28143
|
totalResponseBytes += chunk.length;
|
|
27945
|
-
if (
|
|
28144
|
+
if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
|
|
27946
28145
|
rejected = true;
|
|
27947
28146
|
responseStream.destroy();
|
|
27948
|
-
abort(new AxiosError("maxContentLength size of " +
|
|
28147
|
+
abort(new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, lastRequest));
|
|
27949
28148
|
}
|
|
27950
28149
|
});
|
|
27951
28150
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
@@ -27995,7 +28194,9 @@ var require_axios = __commonJS({
|
|
|
27995
28194
|
});
|
|
27996
28195
|
const boundSockets = /* @__PURE__ */ new Set();
|
|
27997
28196
|
req.on("socket", function handleRequestSocket(socket) {
|
|
27998
|
-
socket.setKeepAlive
|
|
28197
|
+
if (typeof socket.setKeepAlive === "function") {
|
|
28198
|
+
socket.setKeepAlive(true, 1e3 * 60);
|
|
28199
|
+
}
|
|
27999
28200
|
if (!socket[kAxiosSocketListener]) {
|
|
28000
28201
|
socket.on("error", function handleSocketError(err) {
|
|
28001
28202
|
const current = socket[kAxiosCurrentReq];
|
|
@@ -28017,8 +28218,8 @@ var require_axios = __commonJS({
|
|
|
28017
28218
|
}
|
|
28018
28219
|
boundSockets.clear();
|
|
28019
28220
|
});
|
|
28020
|
-
if (
|
|
28021
|
-
const timeout = parseInt(
|
|
28221
|
+
if (own2("timeout")) {
|
|
28222
|
+
const timeout = parseInt(own2("timeout"), 10);
|
|
28022
28223
|
if (Number.isNaN(timeout)) {
|
|
28023
28224
|
abort(new AxiosError("error trying to parse `config.timeout` to int", AxiosError.ERR_BAD_OPTION_VALUE, config, req));
|
|
28024
28225
|
return;
|
|
@@ -28050,8 +28251,8 @@ var require_axios = __commonJS({
|
|
|
28050
28251
|
}
|
|
28051
28252
|
});
|
|
28052
28253
|
let uploadStream = data;
|
|
28053
|
-
if (
|
|
28054
|
-
const limit =
|
|
28254
|
+
if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
|
|
28255
|
+
const limit = maxBodyLength;
|
|
28055
28256
|
let bytesSent = 0;
|
|
28056
28257
|
uploadStream = stream.pipeline([data, new stream.Transform({
|
|
28057
28258
|
transform(chunk, _enc, cb) {
|
|
@@ -28107,7 +28308,11 @@ var require_axios = __commonJS({
|
|
|
28107
28308
|
const cookie = cookies2[i].replace(/^\s+/, "");
|
|
28108
28309
|
const eq = cookie.indexOf("=");
|
|
28109
28310
|
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
28110
|
-
|
|
28311
|
+
try {
|
|
28312
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
28313
|
+
} catch (e) {
|
|
28314
|
+
return cookie.slice(eq + 1);
|
|
28315
|
+
}
|
|
28111
28316
|
}
|
|
28112
28317
|
}
|
|
28113
28318
|
return null;
|
|
@@ -28132,6 +28337,7 @@ var require_axios = __commonJS({
|
|
|
28132
28337
|
...thing
|
|
28133
28338
|
} : thing;
|
|
28134
28339
|
function mergeConfig(config1, config2) {
|
|
28340
|
+
config1 = config1 || {};
|
|
28135
28341
|
config2 = config2 || {};
|
|
28136
28342
|
const config = /* @__PURE__ */ Object.create(null);
|
|
28137
28343
|
Object.defineProperty(config, "hasOwnProperty", {
|
|
@@ -28174,6 +28380,23 @@ var require_axios = __commonJS({
|
|
|
28174
28380
|
return getMergedValue(void 0, a);
|
|
28175
28381
|
}
|
|
28176
28382
|
}
|
|
28383
|
+
function getMergedTransitionalOption(prop) {
|
|
28384
|
+
const transitional2 = utils$1.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
|
|
28385
|
+
if (!utils$1.isUndefined(transitional2)) {
|
|
28386
|
+
if (utils$1.isPlainObject(transitional2)) {
|
|
28387
|
+
if (utils$1.hasOwnProp(transitional2, prop)) {
|
|
28388
|
+
return transitional2[prop];
|
|
28389
|
+
}
|
|
28390
|
+
} else {
|
|
28391
|
+
return void 0;
|
|
28392
|
+
}
|
|
28393
|
+
}
|
|
28394
|
+
const transitional1 = utils$1.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
28395
|
+
if (utils$1.isPlainObject(transitional1) && utils$1.hasOwnProp(transitional1, prop)) {
|
|
28396
|
+
return transitional1[prop];
|
|
28397
|
+
}
|
|
28398
|
+
return void 0;
|
|
28399
|
+
}
|
|
28177
28400
|
function mergeDirectKeys(a, b, prop) {
|
|
28178
28401
|
if (utils$1.hasOwnProp(config2, prop)) {
|
|
28179
28402
|
return getMergedValue(a, b);
|
|
@@ -28224,6 +28447,13 @@ var require_axios = __commonJS({
|
|
|
28224
28447
|
const configValue = merge2(a, b, prop);
|
|
28225
28448
|
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
28226
28449
|
});
|
|
28450
|
+
if (utils$1.hasOwnProp(config2, "validateStatus") && utils$1.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
|
|
28451
|
+
if (utils$1.hasOwnProp(config1, "validateStatus")) {
|
|
28452
|
+
config.validateStatus = getMergedValue(void 0, config1.validateStatus);
|
|
28453
|
+
} else {
|
|
28454
|
+
delete config.validateStatus;
|
|
28455
|
+
}
|
|
28456
|
+
}
|
|
28227
28457
|
return config;
|
|
28228
28458
|
}
|
|
28229
28459
|
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
@@ -28232,7 +28462,7 @@ var require_axios = __commonJS({
|
|
|
28232
28462
|
headers.set(formHeaders);
|
|
28233
28463
|
return;
|
|
28234
28464
|
}
|
|
28235
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
28465
|
+
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
28236
28466
|
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
28237
28467
|
headers.set(key, val);
|
|
28238
28468
|
}
|
|
@@ -28252,9 +28482,15 @@ var require_axios = __commonJS({
|
|
|
28252
28482
|
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
28253
28483
|
const url2 = own2("url");
|
|
28254
28484
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
28255
|
-
newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls), own2("params"), own2("paramsSerializer"));
|
|
28485
|
+
newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig), own2("params"), own2("paramsSerializer"));
|
|
28256
28486
|
if (auth) {
|
|
28257
|
-
|
|
28487
|
+
const username = utils$1.getSafeProp(auth, "username") || "";
|
|
28488
|
+
const password = utils$1.getSafeProp(auth, "password") || "";
|
|
28489
|
+
try {
|
|
28490
|
+
headers.set("Authorization", "Basic " + btoa(username + ":" + (password ? encodeUTF8$1(password) : "")));
|
|
28491
|
+
} catch (e) {
|
|
28492
|
+
throw AxiosError.from(e, AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
28493
|
+
}
|
|
28258
28494
|
}
|
|
28259
28495
|
if (utils$1.isFormData(data)) {
|
|
28260
28496
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv || utils$1.isReactNative(data)) {
|
|
@@ -28401,6 +28637,7 @@ var require_axios = __commonJS({
|
|
|
28401
28637
|
const protocol = parseProtocol(_config.url);
|
|
28402
28638
|
if (protocol && !platform.protocols.includes(protocol)) {
|
|
28403
28639
|
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
28640
|
+
done();
|
|
28404
28641
|
return;
|
|
28405
28642
|
}
|
|
28406
28643
|
request.send(requestData || null);
|
|
@@ -28436,7 +28673,9 @@ var require_axios = __commonJS({
|
|
|
28436
28673
|
});
|
|
28437
28674
|
signals = null;
|
|
28438
28675
|
};
|
|
28439
|
-
signals.forEach((signal2) => signal2.addEventListener("abort", onabort
|
|
28676
|
+
signals.forEach((signal2) => signal2.addEventListener("abort", onabort, {
|
|
28677
|
+
once: true
|
|
28678
|
+
}));
|
|
28440
28679
|
const {
|
|
28441
28680
|
signal
|
|
28442
28681
|
} = controller;
|
|
@@ -28666,12 +28905,14 @@ var require_axios = __commonJS({
|
|
|
28666
28905
|
composedSignal.unsubscribe();
|
|
28667
28906
|
});
|
|
28668
28907
|
let requestContentLength;
|
|
28908
|
+
let pendingBodyError = null;
|
|
28909
|
+
const maxBodyLengthError = () => new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, request);
|
|
28669
28910
|
try {
|
|
28670
28911
|
let auth = void 0;
|
|
28671
28912
|
const configAuth = own2("auth");
|
|
28672
28913
|
if (configAuth) {
|
|
28673
|
-
const username = configAuth
|
|
28674
|
-
const password = configAuth
|
|
28914
|
+
const username = utils$1.getSafeProp(configAuth, "username") || "";
|
|
28915
|
+
const password = utils$1.getSafeProp(configAuth, "password") || "";
|
|
28675
28916
|
auth = {
|
|
28676
28917
|
username,
|
|
28677
28918
|
password
|
|
@@ -28704,25 +28945,42 @@ var require_axios = __commonJS({
|
|
|
28704
28945
|
}
|
|
28705
28946
|
}
|
|
28706
28947
|
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
28707
|
-
const outboundLength = await
|
|
28708
|
-
if (typeof outboundLength === "number" && isFinite(outboundLength)
|
|
28709
|
-
|
|
28948
|
+
const outboundLength = await getBodyLength(data);
|
|
28949
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength)) {
|
|
28950
|
+
requestContentLength = outboundLength;
|
|
28951
|
+
if (outboundLength > maxBodyLength) {
|
|
28952
|
+
throw maxBodyLengthError();
|
|
28953
|
+
}
|
|
28710
28954
|
}
|
|
28711
28955
|
}
|
|
28712
|
-
|
|
28713
|
-
|
|
28714
|
-
|
|
28715
|
-
|
|
28716
|
-
duplex: "half"
|
|
28717
|
-
});
|
|
28718
|
-
let contentTypeHeader;
|
|
28719
|
-
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
28720
|
-
headers.setContentType(contentTypeHeader);
|
|
28956
|
+
const mustEnforceStreamBody = hasMaxBodyLength && (utils$1.isReadableStream(data) || utils$1.isStream(data));
|
|
28957
|
+
const trackRequestStream = (stream2, onProgress, flush) => trackStream(stream2, DEFAULT_CHUNK_SIZE, (loadedBytes) => {
|
|
28958
|
+
if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
|
|
28959
|
+
throw pendingBodyError = maxBodyLengthError();
|
|
28721
28960
|
}
|
|
28722
|
-
|
|
28723
|
-
|
|
28724
|
-
|
|
28961
|
+
onProgress && onProgress(loadedBytes);
|
|
28962
|
+
}, flush);
|
|
28963
|
+
if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
|
|
28964
|
+
requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
|
|
28965
|
+
if (requestContentLength !== 0 || mustEnforceStreamBody) {
|
|
28966
|
+
let _request = new Request(url2, {
|
|
28967
|
+
method: "POST",
|
|
28968
|
+
body: data,
|
|
28969
|
+
duplex: "half"
|
|
28970
|
+
});
|
|
28971
|
+
let contentTypeHeader;
|
|
28972
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
28973
|
+
headers.setContentType(contentTypeHeader);
|
|
28974
|
+
}
|
|
28975
|
+
if (_request.body) {
|
|
28976
|
+
const [onProgress, flush] = onUploadProgress && progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))) || [];
|
|
28977
|
+
data = trackRequestStream(_request.body, onProgress, flush);
|
|
28978
|
+
}
|
|
28725
28979
|
}
|
|
28980
|
+
} else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
|
|
28981
|
+
data = trackRequestStream(data);
|
|
28982
|
+
} else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
|
|
28983
|
+
throw new AxiosError("Stream request bodies are not supported by the current fetch implementation", AxiosError.ERR_NOT_SUPPORT, config, request);
|
|
28726
28984
|
}
|
|
28727
28985
|
if (!utils$1.isString(withCredentials)) {
|
|
28728
28986
|
withCredentials = withCredentials ? "include" : "omit";
|
|
@@ -28746,8 +29004,9 @@ var require_axios = __commonJS({
|
|
|
28746
29004
|
};
|
|
28747
29005
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
28748
29006
|
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
|
|
29007
|
+
const responseHeaders = AxiosHeaders.from(response.headers);
|
|
28749
29008
|
if (hasMaxContentLength) {
|
|
28750
|
-
const declaredLength = utils$1.toFiniteNumber(
|
|
29009
|
+
const declaredLength = utils$1.toFiniteNumber(responseHeaders.getContentLength());
|
|
28751
29010
|
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
28752
29011
|
throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
28753
29012
|
}
|
|
@@ -28758,7 +29017,7 @@ var require_axios = __commonJS({
|
|
|
28758
29017
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
28759
29018
|
options[prop] = response[prop];
|
|
28760
29019
|
});
|
|
28761
|
-
const responseContentLength = utils$1.toFiniteNumber(
|
|
29020
|
+
const responseContentLength = utils$1.toFiniteNumber(responseHeaders.getContentLength());
|
|
28762
29021
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
28763
29022
|
let bytesRead = 0;
|
|
28764
29023
|
const onChunkProgress = (loadedBytes) => {
|
|
@@ -28809,13 +29068,35 @@ var require_axios = __commonJS({
|
|
|
28809
29068
|
const canceledError = composedSignal.reason;
|
|
28810
29069
|
canceledError.config = config;
|
|
28811
29070
|
request && (canceledError.request = request);
|
|
28812
|
-
err !== canceledError
|
|
29071
|
+
if (err !== canceledError) {
|
|
29072
|
+
Object.defineProperty(canceledError, "cause", {
|
|
29073
|
+
__proto__: null,
|
|
29074
|
+
value: err,
|
|
29075
|
+
writable: true,
|
|
29076
|
+
enumerable: false,
|
|
29077
|
+
configurable: true
|
|
29078
|
+
});
|
|
29079
|
+
}
|
|
28813
29080
|
throw canceledError;
|
|
28814
29081
|
}
|
|
29082
|
+
if (pendingBodyError) {
|
|
29083
|
+
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
29084
|
+
throw pendingBodyError;
|
|
29085
|
+
}
|
|
29086
|
+
if (err instanceof AxiosError) {
|
|
29087
|
+
request && !err.request && (err.request = request);
|
|
29088
|
+
throw err;
|
|
29089
|
+
}
|
|
28815
29090
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
28816
|
-
|
|
28817
|
-
|
|
29091
|
+
const networkError = new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response);
|
|
29092
|
+
Object.defineProperty(networkError, "cause", {
|
|
29093
|
+
__proto__: null,
|
|
29094
|
+
value: err.cause || err,
|
|
29095
|
+
writable: true,
|
|
29096
|
+
enumerable: false,
|
|
29097
|
+
configurable: true
|
|
28818
29098
|
});
|
|
29099
|
+
throw networkError;
|
|
28819
29100
|
}
|
|
28820
29101
|
throw AxiosError.from(err, err && err.code, config, request, err && err.response);
|
|
28821
29102
|
}
|
|
@@ -28890,7 +29171,7 @@ var require_axios = __commonJS({
|
|
|
28890
29171
|
if (!adapter) {
|
|
28891
29172
|
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
|
|
28892
29173
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
28893
|
-
throw new AxiosError(`There is no suitable adapter to dispatch the request ` + s,
|
|
29174
|
+
throw new AxiosError(`There is no suitable adapter to dispatch the request ` + s, AxiosError.ERR_NOT_SUPPORT);
|
|
28894
29175
|
}
|
|
28895
29176
|
return adapter;
|
|
28896
29177
|
}
|
|
@@ -28977,7 +29258,7 @@ var require_axios = __commonJS({
|
|
|
28977
29258
|
};
|
|
28978
29259
|
};
|
|
28979
29260
|
function assertOptions(options, schema, allowUnknown) {
|
|
28980
|
-
if (typeof options !== "object") {
|
|
29261
|
+
if (typeof options !== "object" || options === null) {
|
|
28981
29262
|
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
28982
29263
|
}
|
|
28983
29264
|
const keys = Object.keys(options);
|
|
@@ -29069,7 +29350,8 @@ var require_axios = __commonJS({
|
|
|
29069
29350
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
29070
29351
|
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
29071
29352
|
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
29072
|
-
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean)
|
|
29353
|
+
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
29354
|
+
validateStatusUndefinedResolves: validators.transitional(validators.boolean)
|
|
29073
29355
|
}, false);
|
|
29074
29356
|
}
|
|
29075
29357
|
if (paramsSerializer != null) {
|
|
@@ -29159,7 +29441,7 @@ var require_axios = __commonJS({
|
|
|
29159
29441
|
}
|
|
29160
29442
|
getUri(config) {
|
|
29161
29443
|
config = mergeConfig(this.defaults, config);
|
|
29162
|
-
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
29444
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
|
|
29163
29445
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
29164
29446
|
}
|
|
29165
29447
|
};
|
|
@@ -29168,7 +29450,7 @@ var require_axios = __commonJS({
|
|
|
29168
29450
|
return this.request(mergeConfig(config || {}, {
|
|
29169
29451
|
method,
|
|
29170
29452
|
url: url2,
|
|
29171
|
-
data: (config
|
|
29453
|
+
data: config && utils$1.hasOwnProp(config, "data") ? config.data : void 0
|
|
29172
29454
|
}));
|
|
29173
29455
|
};
|
|
29174
29456
|
});
|
|
@@ -30184,7 +30466,7 @@ function tryExtractSAPErrorFromMessage(message) {
|
|
|
30184
30466
|
}
|
|
30185
30467
|
|
|
30186
30468
|
// src/version.ts
|
|
30187
|
-
var VERSION = true ? "4.
|
|
30469
|
+
var VERSION = true ? "4.8.0" : "0.0.0-test";
|
|
30188
30470
|
|
|
30189
30471
|
export {
|
|
30190
30472
|
__toESM,
|
|
@@ -30236,6 +30518,6 @@ mime-types/index.js:
|
|
|
30236
30518
|
*)
|
|
30237
30519
|
|
|
30238
30520
|
axios/dist/node/axios.cjs:
|
|
30239
|
-
(*! Axios v1.
|
|
30521
|
+
(*! Axios v1.18.1 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
30240
30522
|
*/
|
|
30241
|
-
//# sourceMappingURL=chunk-
|
|
30523
|
+
//# sourceMappingURL=chunk-3ZSXTKOK.js.map
|