@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
|
'use strict';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -424,9 +424,7 @@ function merge(...objs) {
|
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
426
|
|
|
427
|
-
|
|
428
|
-
// symbol keys are identity-matched.
|
|
429
|
-
const targetKey = (caseless && typeof key === 'string' && findKey(result, key)) || key;
|
|
427
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
430
428
|
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
431
429
|
// chain, so a polluted Object.prototype value could surface here and get
|
|
432
430
|
// copied into the merged result.
|
|
@@ -443,24 +441,7 @@ function merge(...objs) {
|
|
|
443
441
|
};
|
|
444
442
|
|
|
445
443
|
for (let i = 0, l = objs.length; i < l; i++) {
|
|
446
|
-
|
|
447
|
-
if (!source || isBuffer(source)) {
|
|
448
|
-
continue;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
forEach(source, assignValue);
|
|
452
|
-
|
|
453
|
-
if (typeof source !== 'object' || isArray(source)) {
|
|
454
|
-
continue;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
const symbols = Object.getOwnPropertySymbols(source);
|
|
458
|
-
for (let j = 0; j < symbols.length; j++) {
|
|
459
|
-
const symbol = symbols[j];
|
|
460
|
-
if (propertyIsEnumerable.call(source, symbol)) {
|
|
461
|
-
assignValue(source[symbol], symbol);
|
|
462
|
-
}
|
|
463
|
-
}
|
|
444
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
464
445
|
}
|
|
465
446
|
return result;
|
|
466
447
|
}
|
|
@@ -689,8 +670,6 @@ const hasOwnProperty = (
|
|
|
689
670
|
hasOwnProperty.call(obj, prop)
|
|
690
671
|
)(Object.prototype);
|
|
691
672
|
|
|
692
|
-
const { propertyIsEnumerable } = Object.prototype;
|
|
693
|
-
|
|
694
673
|
/**
|
|
695
674
|
* Determine if a value is a RegExp object
|
|
696
675
|
*
|
|
@@ -1172,7 +1151,7 @@ class AxiosHeaders {
|
|
|
1172
1151
|
const lHeader = normalizeHeader(_header);
|
|
1173
1152
|
|
|
1174
1153
|
if (!lHeader) {
|
|
1175
|
-
|
|
1154
|
+
throw new Error('header name must be a non-empty string');
|
|
1176
1155
|
}
|
|
1177
1156
|
|
|
1178
1157
|
const key = utils$1.findKey(self, lHeader);
|
|
@@ -1200,7 +1179,7 @@ class AxiosHeaders {
|
|
|
1200
1179
|
key;
|
|
1201
1180
|
for (const entry of header) {
|
|
1202
1181
|
if (!utils$1.isArray(entry)) {
|
|
1203
|
-
throw
|
|
1182
|
+
throw TypeError('Object iterator must return a key-value pair');
|
|
1204
1183
|
}
|
|
1205
1184
|
|
|
1206
1185
|
obj[(key = entry[0])] = (dest = obj[key])
|
|
@@ -1815,7 +1794,7 @@ function toFormData(obj, formData, options) {
|
|
|
1815
1794
|
}
|
|
1816
1795
|
|
|
1817
1796
|
if (stack.indexOf(value) !== -1) {
|
|
1818
|
-
throw
|
|
1797
|
+
throw Error('Circular reference detected in ' + path.join('.'));
|
|
1819
1798
|
}
|
|
1820
1799
|
|
|
1821
1800
|
stack.push(value);
|
|
@@ -2032,7 +2011,6 @@ var transitionalDefaults = {
|
|
|
2032
2011
|
forcedJSONParsing: true,
|
|
2033
2012
|
clarifyTimeoutError: false,
|
|
2034
2013
|
legacyInterceptorReqResOrdering: true,
|
|
2035
|
-
advertiseZstdAcceptEncoding: false,
|
|
2036
2014
|
};
|
|
2037
2015
|
|
|
2038
2016
|
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
@@ -2867,12 +2845,12 @@ function setFormDataHeaders(headers, formHeaders, policy) {
|
|
|
2867
2845
|
*
|
|
2868
2846
|
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
2869
2847
|
*/
|
|
2870
|
-
const encodeUTF8
|
|
2848
|
+
const encodeUTF8 = (str) =>
|
|
2871
2849
|
encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
|
|
2872
2850
|
String.fromCharCode(parseInt(hex, 16))
|
|
2873
2851
|
);
|
|
2874
2852
|
|
|
2875
|
-
|
|
2853
|
+
var resolveConfig = (config) => {
|
|
2876
2854
|
const newConfig = mergeConfig({}, config);
|
|
2877
2855
|
|
|
2878
2856
|
// Read only own properties to prevent prototype pollution gadgets
|
|
@@ -2893,8 +2871,8 @@ function resolveConfig(config) {
|
|
|
2893
2871
|
|
|
2894
2872
|
newConfig.url = buildURL(
|
|
2895
2873
|
buildFullPath(baseURL, url, allowAbsoluteUrls),
|
|
2896
|
-
|
|
2897
|
-
|
|
2874
|
+
config.params,
|
|
2875
|
+
config.paramsSerializer
|
|
2898
2876
|
);
|
|
2899
2877
|
|
|
2900
2878
|
// HTTP basic authentication
|
|
@@ -2902,17 +2880,13 @@ function resolveConfig(config) {
|
|
|
2902
2880
|
headers.set(
|
|
2903
2881
|
'Authorization',
|
|
2904
2882
|
'Basic ' +
|
|
2905
|
-
btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8
|
|
2883
|
+
btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8(auth.password) : ''))
|
|
2906
2884
|
);
|
|
2907
2885
|
}
|
|
2908
2886
|
|
|
2909
2887
|
if (utils$1.isFormData(data)) {
|
|
2910
|
-
if (
|
|
2911
|
-
|
|
2912
|
-
platform.hasStandardBrowserWebWorkerEnv ||
|
|
2913
|
-
utils$1.isReactNative(data)
|
|
2914
|
-
) {
|
|
2915
|
-
headers.setContentType(undefined); // browser/web worker/RN handles it
|
|
2888
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
2889
|
+
headers.setContentType(undefined); // browser handles it
|
|
2916
2890
|
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
2917
2891
|
// Node.js FormData (like form-data package)
|
|
2918
2892
|
setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
|
|
@@ -2944,7 +2918,7 @@ function resolveConfig(config) {
|
|
|
2944
2918
|
}
|
|
2945
2919
|
|
|
2946
2920
|
return newConfig;
|
|
2947
|
-
}
|
|
2921
|
+
};
|
|
2948
2922
|
|
|
2949
2923
|
const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
2950
2924
|
|
|
@@ -3405,41 +3379,12 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
3405
3379
|
return bytes;
|
|
3406
3380
|
}
|
|
3407
3381
|
|
|
3408
|
-
const VERSION = "1.
|
|
3382
|
+
const VERSION = "1.16.1";
|
|
3409
3383
|
|
|
3410
3384
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3411
3385
|
|
|
3412
3386
|
const { isFunction } = utils$1;
|
|
3413
3387
|
|
|
3414
|
-
/**
|
|
3415
|
-
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
3416
|
-
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
3417
|
-
*
|
|
3418
|
-
* @param {string} str The string to encode
|
|
3419
|
-
*
|
|
3420
|
-
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
3421
|
-
*/
|
|
3422
|
-
const encodeUTF8 = (str) =>
|
|
3423
|
-
encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
|
|
3424
|
-
String.fromCharCode(parseInt(hex, 16))
|
|
3425
|
-
);
|
|
3426
|
-
|
|
3427
|
-
// Node's WHATWG URL parser returns `username` and `password` percent-encoded.
|
|
3428
|
-
// Decode before composing the `auth` option so credentials such as
|
|
3429
|
-
// `my%40email.com:pass` are sent as `my@email.com:pass`. Falls back to the
|
|
3430
|
-
// original value for malformed input so a bad encoding never throws.
|
|
3431
|
-
const decodeURIComponentSafe = (value) => {
|
|
3432
|
-
if (!utils$1.isString(value)) {
|
|
3433
|
-
return value;
|
|
3434
|
-
}
|
|
3435
|
-
|
|
3436
|
-
try {
|
|
3437
|
-
return decodeURIComponent(value);
|
|
3438
|
-
} catch (error) {
|
|
3439
|
-
return value;
|
|
3440
|
-
}
|
|
3441
|
-
};
|
|
3442
|
-
|
|
3443
3388
|
const test = (fn, ...args) => {
|
|
3444
3389
|
try {
|
|
3445
3390
|
return !!fn(...args);
|
|
@@ -3448,15 +3393,6 @@ const test = (fn, ...args) => {
|
|
|
3448
3393
|
}
|
|
3449
3394
|
};
|
|
3450
3395
|
|
|
3451
|
-
const maybeWithAuthCredentials = (url) => {
|
|
3452
|
-
const protocolIndex = url.indexOf('://');
|
|
3453
|
-
let urlToCheck = url;
|
|
3454
|
-
if (protocolIndex !== -1) {
|
|
3455
|
-
urlToCheck = urlToCheck.slice(protocolIndex + 3);
|
|
3456
|
-
}
|
|
3457
|
-
return urlToCheck.includes('@') || urlToCheck.includes(':');
|
|
3458
|
-
};
|
|
3459
|
-
|
|
3460
3396
|
const factory = (env) => {
|
|
3461
3397
|
const globalObject =
|
|
3462
3398
|
utils$1.global !== undefined && utils$1.global !== null
|
|
@@ -3604,7 +3540,6 @@ const factory = (env) => {
|
|
|
3604
3540
|
|
|
3605
3541
|
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
3606
3542
|
const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
3607
|
-
const own = (key) => (utils$1.hasOwnProp(config, key) ? config[key] : undefined);
|
|
3608
3543
|
|
|
3609
3544
|
let _fetch = envFetch || fetch;
|
|
3610
3545
|
|
|
@@ -3627,46 +3562,6 @@ const factory = (env) => {
|
|
|
3627
3562
|
let requestContentLength;
|
|
3628
3563
|
|
|
3629
3564
|
try {
|
|
3630
|
-
// HTTP basic authentication
|
|
3631
|
-
let auth = undefined;
|
|
3632
|
-
const configAuth = own('auth');
|
|
3633
|
-
|
|
3634
|
-
if (configAuth) {
|
|
3635
|
-
const username = configAuth.username || '';
|
|
3636
|
-
const password = configAuth.password || '';
|
|
3637
|
-
auth = {
|
|
3638
|
-
username,
|
|
3639
|
-
password
|
|
3640
|
-
};
|
|
3641
|
-
}
|
|
3642
|
-
|
|
3643
|
-
if (maybeWithAuthCredentials(url)) {
|
|
3644
|
-
const parsedURL = new URL(url, platform.origin);
|
|
3645
|
-
|
|
3646
|
-
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
3647
|
-
const urlUsername = decodeURIComponentSafe(parsedURL.username);
|
|
3648
|
-
const urlPassword = decodeURIComponentSafe(parsedURL.password);
|
|
3649
|
-
auth = {
|
|
3650
|
-
username: urlUsername,
|
|
3651
|
-
password: urlPassword
|
|
3652
|
-
};
|
|
3653
|
-
}
|
|
3654
|
-
|
|
3655
|
-
if (parsedURL.username || parsedURL.password) {
|
|
3656
|
-
parsedURL.username = '';
|
|
3657
|
-
parsedURL.password = '';
|
|
3658
|
-
url = parsedURL.href;
|
|
3659
|
-
}
|
|
3660
|
-
}
|
|
3661
|
-
|
|
3662
|
-
if (auth) {
|
|
3663
|
-
headers.delete('authorization');
|
|
3664
|
-
headers.set(
|
|
3665
|
-
'Authorization',
|
|
3666
|
-
'Basic ' + btoa(encodeUTF8((auth.username || '') + ':' + (auth.password || '')))
|
|
3667
|
-
);
|
|
3668
|
-
}
|
|
3669
|
-
|
|
3670
3565
|
// Enforce maxContentLength for data: URLs up-front so we never materialize
|
|
3671
3566
|
// an oversized payload. The HTTP adapter applies the same check (see http.js
|
|
3672
3567
|
// "if (protocol === 'data:')" branch).
|
|
@@ -4348,7 +4243,6 @@ class Axios {
|
|
|
4348
4243
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
4349
4244
|
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
4350
4245
|
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
4351
|
-
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
4352
4246
|
},
|
|
4353
4247
|
false
|
|
4354
4248
|
);
|