@st-gr/sail-proxy 0.9.2 → 0.9.3
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/bundled/gateway/node_modules/.package-lock.json +132 -83
- package/bundled/gateway/node_modules/axios/CHANGELOG.md +0 -42
- package/bundled/gateway/node_modules/axios/README.md +237 -237
- package/bundled/gateway/node_modules/axios/dist/axios.js +21 -113
- package/bundled/gateway/node_modules/axios/dist/axios.js.map +1 -0
- package/bundled/gateway/node_modules/axios/dist/axios.min.js +2 -2
- package/bundled/gateway/node_modules/axios/dist/axios.min.js.map +1 -1
- package/bundled/gateway/node_modules/axios/dist/browser/axios.cjs +15 -121
- package/bundled/gateway/node_modules/axios/dist/browser/axios.cjs.map +1 -0
- package/bundled/gateway/node_modules/axios/dist/esm/axios.js +15 -121
- package/bundled/gateway/node_modules/axios/dist/esm/axios.js.map +1 -0
- package/bundled/gateway/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/bundled/gateway/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/bundled/gateway/node_modules/axios/dist/node/axios.cjs +107 -249
- package/bundled/gateway/node_modules/axios/dist/node/axios.cjs.map +1 -0
- package/bundled/gateway/node_modules/axios/index.d.cts +3 -8
- package/bundled/gateway/node_modules/axios/index.d.ts +1 -4
- package/bundled/gateway/node_modules/axios/lib/adapters/fetch.js +0 -79
- package/bundled/gateway/node_modules/axios/lib/adapters/http.js +118 -62
- package/bundled/gateway/node_modules/axios/lib/core/Axios.js +0 -1
- package/bundled/gateway/node_modules/axios/lib/core/AxiosHeaders.js +2 -2
- package/bundled/gateway/node_modules/axios/lib/defaults/transitional.js +0 -1
- package/bundled/gateway/node_modules/axios/lib/env/data.js +1 -1
- package/bundled/gateway/node_modules/axios/lib/helpers/buildURL.js +1 -1
- package/bundled/gateway/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
- package/bundled/gateway/node_modules/axios/lib/helpers/resolveConfig.js +6 -12
- package/bundled/gateway/node_modules/axios/lib/helpers/toFormData.js +1 -1
- package/bundled/gateway/node_modules/axios/lib/utils.js +2 -23
- package/bundled/gateway/node_modules/axios/package.json +13 -29
- package/bundled/gateway/node_modules/body-parser/HISTORY.md +0 -14
- package/bundled/gateway/node_modules/body-parser/SECURITY.md +25 -0
- package/bundled/gateway/node_modules/body-parser/lib/types/json.js +5 -1
- package/bundled/gateway/node_modules/body-parser/lib/types/urlencoded.js +15 -7
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/.editorconfig +46 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/.eslintrc +38 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/.github/FUNDING.yml +12 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/.nycrc +13 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/CHANGELOG.md +600 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/LICENSE.md +29 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/README.md +709 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/dist/qs.js +90 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/formats.js +23 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/index.js +11 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/parse.js +296 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/stringify.js +351 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/utils.js +265 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/package.json +91 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/parse.js +1170 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/stringify.js +1298 -0
- package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/utils.js +136 -0
- package/bundled/gateway/node_modules/body-parser/package.json +10 -9
- package/bundled/gateway/node_modules/cookie/index.js +35 -24
- package/bundled/gateway/node_modules/cookie/package.json +1 -1
- package/bundled/gateway/node_modules/cookie-signature/History.md +1 -5
- package/bundled/gateway/node_modules/cookie-signature/index.js +6 -6
- package/bundled/gateway/node_modules/cookie-signature/package.json +2 -2
- package/bundled/gateway/node_modules/express/History.md +0 -43
- package/bundled/gateway/node_modules/express/lib/response.js +0 -1
- package/bundled/gateway/node_modules/express/lib/utils.js +1 -2
- package/bundled/gateway/node_modules/express/node_modules/qs/.editorconfig +43 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/.eslintrc +38 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/.github/FUNDING.yml +12 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/.nycrc +13 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/CHANGELOG.md +546 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/LICENSE.md +29 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/README.md +625 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/dist/qs.js +2054 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/lib/formats.js +23 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/lib/index.js +11 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/lib/parse.js +263 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/lib/stringify.js +326 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/lib/utils.js +252 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/package.json +77 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/test/parse.js +855 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/test/stringify.js +909 -0
- package/bundled/gateway/node_modules/express/node_modules/qs/test/utils.js +136 -0
- package/bundled/gateway/node_modules/express/package.json +17 -21
- package/bundled/gateway/node_modules/finalhandler/HISTORY.md +0 -21
- package/bundled/gateway/node_modules/finalhandler/README.md +2 -2
- package/bundled/gateway/node_modules/finalhandler/index.js +2 -7
- package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/README.md +128 -0
- package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/index.js +60 -0
- package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/package.json +40 -0
- package/bundled/gateway/node_modules/finalhandler/package.json +9 -10
- package/bundled/gateway/node_modules/http-errors/HISTORY.md +0 -6
- package/bundled/gateway/node_modules/http-errors/index.js +3 -4
- package/bundled/gateway/node_modules/http-errors/package.json +8 -12
- package/bundled/gateway/node_modules/qs/CHANGELOG.md +0 -16
- package/bundled/gateway/node_modules/qs/README.md +1 -1
- package/bundled/gateway/node_modules/qs/dist/qs.js +15 -15
- package/bundled/gateway/node_modules/qs/eslint.config.mjs +0 -1
- package/bundled/gateway/node_modules/qs/lib/parse.js +24 -54
- package/bundled/gateway/node_modules/qs/lib/stringify.js +4 -11
- package/bundled/gateway/node_modules/qs/package.json +3 -3
- package/bundled/gateway/node_modules/qs/test/parse.js +0 -135
- package/bundled/gateway/node_modules/qs/test/stringify.js +0 -138
- package/bundled/gateway/node_modules/qs/test/utils.js +3 -31
- package/bundled/gateway/node_modules/raw-body/HISTORY.md +308 -0
- package/bundled/gateway/node_modules/raw-body/SECURITY.md +24 -0
- package/bundled/gateway/node_modules/raw-body/package.json +7 -5
- package/bundled/gateway/node_modules/send/HISTORY.md +7 -19
- package/bundled/gateway/node_modules/send/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/gateway/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/gateway/node_modules/send/node_modules/encodeurl/README.md +128 -0
- package/bundled/gateway/node_modules/send/node_modules/encodeurl/index.js +60 -0
- package/bundled/gateway/node_modules/send/node_modules/encodeurl/package.json +40 -0
- package/bundled/gateway/node_modules/send/package.json +6 -6
- package/bundled/gateway/node_modules/serve-static/HISTORY.md +0 -16
- package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/README.md +128 -0
- package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/index.js +60 -0
- package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/package.json +40 -0
- package/bundled/gateway/node_modules/serve-static/package.json +3 -3
- package/bundled/gateway/node_modules/statuses/HISTORY.md +0 -5
- package/bundled/gateway/node_modules/statuses/README.md +0 -3
- package/bundled/gateway/node_modules/statuses/package.json +7 -7
- package/bundled/gateway/package-lock.json +137 -88
- package/bundled/gateway/package.json +23 -5
- package/bundled/ollama/node_modules/.package-lock.json +104 -85
- package/bundled/ollama/node_modules/axios/CHANGELOG.md +0 -42
- package/bundled/ollama/node_modules/axios/README.md +237 -237
- package/bundled/ollama/node_modules/axios/dist/axios.js +21 -113
- package/bundled/ollama/node_modules/axios/dist/axios.js.map +1 -0
- package/bundled/ollama/node_modules/axios/dist/axios.min.js +2 -2
- package/bundled/ollama/node_modules/axios/dist/axios.min.js.map +1 -1
- package/bundled/ollama/node_modules/axios/dist/browser/axios.cjs +15 -121
- package/bundled/ollama/node_modules/axios/dist/browser/axios.cjs.map +1 -0
- package/bundled/ollama/node_modules/axios/dist/esm/axios.js +15 -121
- package/bundled/ollama/node_modules/axios/dist/esm/axios.js.map +1 -0
- package/bundled/ollama/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/bundled/ollama/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/bundled/ollama/node_modules/axios/dist/node/axios.cjs +107 -249
- package/bundled/ollama/node_modules/axios/dist/node/axios.cjs.map +1 -0
- package/bundled/ollama/node_modules/axios/index.d.cts +3 -8
- package/bundled/ollama/node_modules/axios/index.d.ts +1 -4
- package/bundled/ollama/node_modules/axios/lib/adapters/fetch.js +0 -79
- package/bundled/ollama/node_modules/axios/lib/adapters/http.js +118 -62
- package/bundled/ollama/node_modules/axios/lib/core/Axios.js +0 -1
- package/bundled/ollama/node_modules/axios/lib/core/AxiosHeaders.js +2 -2
- package/bundled/ollama/node_modules/axios/lib/defaults/transitional.js +0 -1
- package/bundled/ollama/node_modules/axios/lib/env/data.js +1 -1
- package/bundled/ollama/node_modules/axios/lib/helpers/buildURL.js +1 -1
- package/bundled/ollama/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
- package/bundled/ollama/node_modules/axios/lib/helpers/resolveConfig.js +6 -12
- package/bundled/ollama/node_modules/axios/lib/helpers/toFormData.js +1 -1
- package/bundled/ollama/node_modules/axios/lib/utils.js +2 -23
- package/bundled/ollama/node_modules/axios/package.json +13 -29
- package/bundled/ollama/node_modules/body-parser/HISTORY.md +0 -14
- package/bundled/ollama/node_modules/body-parser/SECURITY.md +25 -0
- package/bundled/ollama/node_modules/body-parser/lib/types/json.js +5 -1
- package/bundled/ollama/node_modules/body-parser/lib/types/urlencoded.js +15 -7
- package/bundled/ollama/node_modules/body-parser/package.json +10 -9
- package/bundled/ollama/node_modules/cookie/index.js +35 -24
- package/bundled/ollama/node_modules/cookie/package.json +1 -1
- package/bundled/ollama/node_modules/cookie-signature/History.md +1 -5
- package/bundled/ollama/node_modules/cookie-signature/index.js +6 -6
- package/bundled/ollama/node_modules/cookie-signature/package.json +2 -2
- package/bundled/ollama/node_modules/express/History.md +0 -43
- package/bundled/ollama/node_modules/express/lib/response.js +0 -1
- package/bundled/ollama/node_modules/express/lib/utils.js +1 -2
- package/bundled/ollama/node_modules/express/package.json +17 -21
- package/bundled/ollama/node_modules/finalhandler/HISTORY.md +0 -21
- package/bundled/ollama/node_modules/finalhandler/README.md +2 -2
- package/bundled/ollama/node_modules/finalhandler/index.js +2 -7
- package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/README.md +128 -0
- package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/index.js +60 -0
- package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/package.json +40 -0
- package/bundled/ollama/node_modules/finalhandler/package.json +9 -10
- package/bundled/ollama/node_modules/http-errors/HISTORY.md +0 -6
- package/bundled/ollama/node_modules/http-errors/index.js +3 -4
- package/bundled/ollama/node_modules/http-errors/package.json +8 -12
- package/bundled/ollama/node_modules/qs/CHANGELOG.md +0 -16
- package/bundled/ollama/node_modules/qs/README.md +1 -1
- package/bundled/ollama/node_modules/qs/dist/qs.js +15 -15
- package/bundled/ollama/node_modules/qs/eslint.config.mjs +0 -1
- package/bundled/ollama/node_modules/qs/lib/parse.js +24 -54
- package/bundled/ollama/node_modules/qs/lib/stringify.js +4 -11
- package/bundled/ollama/node_modules/qs/package.json +3 -3
- package/bundled/ollama/node_modules/qs/test/parse.js +0 -135
- package/bundled/ollama/node_modules/qs/test/stringify.js +0 -138
- package/bundled/ollama/node_modules/qs/test/utils.js +3 -31
- package/bundled/ollama/node_modules/raw-body/HISTORY.md +308 -0
- package/bundled/ollama/node_modules/raw-body/SECURITY.md +24 -0
- package/bundled/ollama/node_modules/raw-body/package.json +7 -5
- package/bundled/ollama/node_modules/send/HISTORY.md +7 -19
- package/bundled/ollama/node_modules/send/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/ollama/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/ollama/node_modules/send/node_modules/encodeurl/README.md +128 -0
- package/bundled/ollama/node_modules/send/node_modules/encodeurl/index.js +60 -0
- package/bundled/ollama/node_modules/send/node_modules/encodeurl/package.json +40 -0
- package/bundled/ollama/node_modules/send/package.json +6 -6
- package/bundled/ollama/node_modules/serve-static/HISTORY.md +0 -16
- package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/HISTORY.md +14 -0
- package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/LICENSE +22 -0
- package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/README.md +128 -0
- package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/index.js +60 -0
- package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/package.json +40 -0
- package/bundled/ollama/node_modules/serve-static/package.json +3 -3
- package/bundled/ollama/node_modules/statuses/HISTORY.md +0 -5
- package/bundled/ollama/node_modules/statuses/README.md +0 -3
- package/bundled/ollama/node_modules/statuses/package.json +7 -7
- package/bundled/ollama/package-lock.json +107 -88
- package/bundled/ollama/package.json +24 -4
- package/node_modules/@sap-llm-gateway/service-key-parser/package.json +1 -1
- package/package.json +2 -2
- package/bundled/gateway/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
- package/bundled/ollama/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Axios v1.
|
|
1
|
+
/*! Axios v1.16.1 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
2
2
|
/**
|
|
3
3
|
* Create a bound version of a function with a specified `this` context
|
|
4
4
|
*
|
|
@@ -422,9 +422,7 @@ function merge(...objs) {
|
|
|
422
422
|
return;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
|
|
426
|
-
// symbol keys are identity-matched.
|
|
427
|
-
const targetKey = (caseless && typeof key === 'string' && findKey(result, key)) || key;
|
|
425
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
428
426
|
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
429
427
|
// chain, so a polluted Object.prototype value could surface here and get
|
|
430
428
|
// copied into the merged result.
|
|
@@ -441,24 +439,7 @@ function merge(...objs) {
|
|
|
441
439
|
};
|
|
442
440
|
|
|
443
441
|
for (let i = 0, l = objs.length; i < l; i++) {
|
|
444
|
-
|
|
445
|
-
if (!source || isBuffer(source)) {
|
|
446
|
-
continue;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
forEach(source, assignValue);
|
|
450
|
-
|
|
451
|
-
if (typeof source !== 'object' || isArray(source)) {
|
|
452
|
-
continue;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
const symbols = Object.getOwnPropertySymbols(source);
|
|
456
|
-
for (let j = 0; j < symbols.length; j++) {
|
|
457
|
-
const symbol = symbols[j];
|
|
458
|
-
if (propertyIsEnumerable.call(source, symbol)) {
|
|
459
|
-
assignValue(source[symbol], symbol);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
442
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
462
443
|
}
|
|
463
444
|
return result;
|
|
464
445
|
}
|
|
@@ -687,8 +668,6 @@ const hasOwnProperty = (
|
|
|
687
668
|
hasOwnProperty.call(obj, prop)
|
|
688
669
|
)(Object.prototype);
|
|
689
670
|
|
|
690
|
-
const { propertyIsEnumerable } = Object.prototype;
|
|
691
|
-
|
|
692
671
|
/**
|
|
693
672
|
* Determine if a value is a RegExp object
|
|
694
673
|
*
|
|
@@ -1170,7 +1149,7 @@ let AxiosHeaders$1 = class AxiosHeaders {
|
|
|
1170
1149
|
const lHeader = normalizeHeader(_header);
|
|
1171
1150
|
|
|
1172
1151
|
if (!lHeader) {
|
|
1173
|
-
|
|
1152
|
+
throw new Error('header name must be a non-empty string');
|
|
1174
1153
|
}
|
|
1175
1154
|
|
|
1176
1155
|
const key = utils$1.findKey(self, lHeader);
|
|
@@ -1198,7 +1177,7 @@ let AxiosHeaders$1 = class AxiosHeaders {
|
|
|
1198
1177
|
key;
|
|
1199
1178
|
for (const entry of header) {
|
|
1200
1179
|
if (!utils$1.isArray(entry)) {
|
|
1201
|
-
throw
|
|
1180
|
+
throw TypeError('Object iterator must return a key-value pair');
|
|
1202
1181
|
}
|
|
1203
1182
|
|
|
1204
1183
|
obj[(key = entry[0])] = (dest = obj[key])
|
|
@@ -1813,7 +1792,7 @@ function toFormData$1(obj, formData, options) {
|
|
|
1813
1792
|
}
|
|
1814
1793
|
|
|
1815
1794
|
if (stack.indexOf(value) !== -1) {
|
|
1816
|
-
throw
|
|
1795
|
+
throw Error('Circular reference detected in ' + path.join('.'));
|
|
1817
1796
|
}
|
|
1818
1797
|
|
|
1819
1798
|
stack.push(value);
|
|
@@ -2030,7 +2009,6 @@ var transitionalDefaults = {
|
|
|
2030
2009
|
forcedJSONParsing: true,
|
|
2031
2010
|
clarifyTimeoutError: false,
|
|
2032
2011
|
legacyInterceptorReqResOrdering: true,
|
|
2033
|
-
advertiseZstdAcceptEncoding: false,
|
|
2034
2012
|
};
|
|
2035
2013
|
|
|
2036
2014
|
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
@@ -2865,12 +2843,12 @@ function setFormDataHeaders(headers, formHeaders, policy) {
|
|
|
2865
2843
|
*
|
|
2866
2844
|
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
2867
2845
|
*/
|
|
2868
|
-
const encodeUTF8
|
|
2846
|
+
const encodeUTF8 = (str) =>
|
|
2869
2847
|
encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
|
|
2870
2848
|
String.fromCharCode(parseInt(hex, 16))
|
|
2871
2849
|
);
|
|
2872
2850
|
|
|
2873
|
-
|
|
2851
|
+
var resolveConfig = (config) => {
|
|
2874
2852
|
const newConfig = mergeConfig$1({}, config);
|
|
2875
2853
|
|
|
2876
2854
|
// Read only own properties to prevent prototype pollution gadgets
|
|
@@ -2891,8 +2869,8 @@ function resolveConfig(config) {
|
|
|
2891
2869
|
|
|
2892
2870
|
newConfig.url = buildURL(
|
|
2893
2871
|
buildFullPath(baseURL, url, allowAbsoluteUrls),
|
|
2894
|
-
|
|
2895
|
-
|
|
2872
|
+
config.params,
|
|
2873
|
+
config.paramsSerializer
|
|
2896
2874
|
);
|
|
2897
2875
|
|
|
2898
2876
|
// HTTP basic authentication
|
|
@@ -2900,17 +2878,13 @@ function resolveConfig(config) {
|
|
|
2900
2878
|
headers.set(
|
|
2901
2879
|
'Authorization',
|
|
2902
2880
|
'Basic ' +
|
|
2903
|
-
btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8
|
|
2881
|
+
btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8(auth.password) : ''))
|
|
2904
2882
|
);
|
|
2905
2883
|
}
|
|
2906
2884
|
|
|
2907
2885
|
if (utils$1.isFormData(data)) {
|
|
2908
|
-
if (
|
|
2909
|
-
|
|
2910
|
-
platform.hasStandardBrowserWebWorkerEnv ||
|
|
2911
|
-
utils$1.isReactNative(data)
|
|
2912
|
-
) {
|
|
2913
|
-
headers.setContentType(undefined); // browser/web worker/RN handles it
|
|
2886
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
2887
|
+
headers.setContentType(undefined); // browser handles it
|
|
2914
2888
|
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
2915
2889
|
// Node.js FormData (like form-data package)
|
|
2916
2890
|
setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
|
|
@@ -2942,7 +2916,7 @@ function resolveConfig(config) {
|
|
|
2942
2916
|
}
|
|
2943
2917
|
|
|
2944
2918
|
return newConfig;
|
|
2945
|
-
}
|
|
2919
|
+
};
|
|
2946
2920
|
|
|
2947
2921
|
const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
2948
2922
|
|
|
@@ -3403,41 +3377,12 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
3403
3377
|
return bytes;
|
|
3404
3378
|
}
|
|
3405
3379
|
|
|
3406
|
-
const VERSION$1 = "1.
|
|
3380
|
+
const VERSION$1 = "1.16.1";
|
|
3407
3381
|
|
|
3408
3382
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3409
3383
|
|
|
3410
3384
|
const { isFunction } = utils$1;
|
|
3411
3385
|
|
|
3412
|
-
/**
|
|
3413
|
-
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
3414
|
-
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
3415
|
-
*
|
|
3416
|
-
* @param {string} str The string to encode
|
|
3417
|
-
*
|
|
3418
|
-
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
3419
|
-
*/
|
|
3420
|
-
const encodeUTF8 = (str) =>
|
|
3421
|
-
encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
|
|
3422
|
-
String.fromCharCode(parseInt(hex, 16))
|
|
3423
|
-
);
|
|
3424
|
-
|
|
3425
|
-
// Node's WHATWG URL parser returns `username` and `password` percent-encoded.
|
|
3426
|
-
// Decode before composing the `auth` option so credentials such as
|
|
3427
|
-
// `my%40email.com:pass` are sent as `my@email.com:pass`. Falls back to the
|
|
3428
|
-
// original value for malformed input so a bad encoding never throws.
|
|
3429
|
-
const decodeURIComponentSafe = (value) => {
|
|
3430
|
-
if (!utils$1.isString(value)) {
|
|
3431
|
-
return value;
|
|
3432
|
-
}
|
|
3433
|
-
|
|
3434
|
-
try {
|
|
3435
|
-
return decodeURIComponent(value);
|
|
3436
|
-
} catch (error) {
|
|
3437
|
-
return value;
|
|
3438
|
-
}
|
|
3439
|
-
};
|
|
3440
|
-
|
|
3441
3386
|
const test = (fn, ...args) => {
|
|
3442
3387
|
try {
|
|
3443
3388
|
return !!fn(...args);
|
|
@@ -3446,15 +3391,6 @@ const test = (fn, ...args) => {
|
|
|
3446
3391
|
}
|
|
3447
3392
|
};
|
|
3448
3393
|
|
|
3449
|
-
const maybeWithAuthCredentials = (url) => {
|
|
3450
|
-
const protocolIndex = url.indexOf('://');
|
|
3451
|
-
let urlToCheck = url;
|
|
3452
|
-
if (protocolIndex !== -1) {
|
|
3453
|
-
urlToCheck = urlToCheck.slice(protocolIndex + 3);
|
|
3454
|
-
}
|
|
3455
|
-
return urlToCheck.includes('@') || urlToCheck.includes(':');
|
|
3456
|
-
};
|
|
3457
|
-
|
|
3458
3394
|
const factory = (env) => {
|
|
3459
3395
|
const globalObject =
|
|
3460
3396
|
utils$1.global !== undefined && utils$1.global !== null
|
|
@@ -3602,7 +3538,6 @@ const factory = (env) => {
|
|
|
3602
3538
|
|
|
3603
3539
|
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
3604
3540
|
const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
3605
|
-
const own = (key) => (utils$1.hasOwnProp(config, key) ? config[key] : undefined);
|
|
3606
3541
|
|
|
3607
3542
|
let _fetch = envFetch || fetch;
|
|
3608
3543
|
|
|
@@ -3625,46 +3560,6 @@ const factory = (env) => {
|
|
|
3625
3560
|
let requestContentLength;
|
|
3626
3561
|
|
|
3627
3562
|
try {
|
|
3628
|
-
// HTTP basic authentication
|
|
3629
|
-
let auth = undefined;
|
|
3630
|
-
const configAuth = own('auth');
|
|
3631
|
-
|
|
3632
|
-
if (configAuth) {
|
|
3633
|
-
const username = configAuth.username || '';
|
|
3634
|
-
const password = configAuth.password || '';
|
|
3635
|
-
auth = {
|
|
3636
|
-
username,
|
|
3637
|
-
password
|
|
3638
|
-
};
|
|
3639
|
-
}
|
|
3640
|
-
|
|
3641
|
-
if (maybeWithAuthCredentials(url)) {
|
|
3642
|
-
const parsedURL = new URL(url, platform.origin);
|
|
3643
|
-
|
|
3644
|
-
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
3645
|
-
const urlUsername = decodeURIComponentSafe(parsedURL.username);
|
|
3646
|
-
const urlPassword = decodeURIComponentSafe(parsedURL.password);
|
|
3647
|
-
auth = {
|
|
3648
|
-
username: urlUsername,
|
|
3649
|
-
password: urlPassword
|
|
3650
|
-
};
|
|
3651
|
-
}
|
|
3652
|
-
|
|
3653
|
-
if (parsedURL.username || parsedURL.password) {
|
|
3654
|
-
parsedURL.username = '';
|
|
3655
|
-
parsedURL.password = '';
|
|
3656
|
-
url = parsedURL.href;
|
|
3657
|
-
}
|
|
3658
|
-
}
|
|
3659
|
-
|
|
3660
|
-
if (auth) {
|
|
3661
|
-
headers.delete('authorization');
|
|
3662
|
-
headers.set(
|
|
3663
|
-
'Authorization',
|
|
3664
|
-
'Basic ' + btoa(encodeUTF8((auth.username || '') + ':' + (auth.password || '')))
|
|
3665
|
-
);
|
|
3666
|
-
}
|
|
3667
|
-
|
|
3668
3563
|
// Enforce maxContentLength for data: URLs up-front so we never materialize
|
|
3669
3564
|
// an oversized payload. The HTTP adapter applies the same check (see http.js
|
|
3670
3565
|
// "if (protocol === 'data:')" branch).
|
|
@@ -4346,7 +4241,6 @@ let Axios$1 = class Axios {
|
|
|
4346
4241
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
4347
4242
|
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
4348
4243
|
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
4349
|
-
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
4350
4244
|
},
|
|
4351
4245
|
false
|
|
4352
4246
|
);
|