@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.
Files changed (213) hide show
  1. package/bundled/gateway/node_modules/.package-lock.json +132 -83
  2. package/bundled/gateway/node_modules/axios/CHANGELOG.md +0 -42
  3. package/bundled/gateway/node_modules/axios/README.md +237 -237
  4. package/bundled/gateway/node_modules/axios/dist/axios.js +21 -113
  5. package/bundled/gateway/node_modules/axios/dist/axios.js.map +1 -0
  6. package/bundled/gateway/node_modules/axios/dist/axios.min.js +2 -2
  7. package/bundled/gateway/node_modules/axios/dist/axios.min.js.map +1 -1
  8. package/bundled/gateway/node_modules/axios/dist/browser/axios.cjs +15 -121
  9. package/bundled/gateway/node_modules/axios/dist/browser/axios.cjs.map +1 -0
  10. package/bundled/gateway/node_modules/axios/dist/esm/axios.js +15 -121
  11. package/bundled/gateway/node_modules/axios/dist/esm/axios.js.map +1 -0
  12. package/bundled/gateway/node_modules/axios/dist/esm/axios.min.js +2 -2
  13. package/bundled/gateway/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  14. package/bundled/gateway/node_modules/axios/dist/node/axios.cjs +107 -249
  15. package/bundled/gateway/node_modules/axios/dist/node/axios.cjs.map +1 -0
  16. package/bundled/gateway/node_modules/axios/index.d.cts +3 -8
  17. package/bundled/gateway/node_modules/axios/index.d.ts +1 -4
  18. package/bundled/gateway/node_modules/axios/lib/adapters/fetch.js +0 -79
  19. package/bundled/gateway/node_modules/axios/lib/adapters/http.js +118 -62
  20. package/bundled/gateway/node_modules/axios/lib/core/Axios.js +0 -1
  21. package/bundled/gateway/node_modules/axios/lib/core/AxiosHeaders.js +2 -2
  22. package/bundled/gateway/node_modules/axios/lib/defaults/transitional.js +0 -1
  23. package/bundled/gateway/node_modules/axios/lib/env/data.js +1 -1
  24. package/bundled/gateway/node_modules/axios/lib/helpers/buildURL.js +1 -1
  25. package/bundled/gateway/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
  26. package/bundled/gateway/node_modules/axios/lib/helpers/resolveConfig.js +6 -12
  27. package/bundled/gateway/node_modules/axios/lib/helpers/toFormData.js +1 -1
  28. package/bundled/gateway/node_modules/axios/lib/utils.js +2 -23
  29. package/bundled/gateway/node_modules/axios/package.json +13 -29
  30. package/bundled/gateway/node_modules/body-parser/HISTORY.md +0 -14
  31. package/bundled/gateway/node_modules/body-parser/SECURITY.md +25 -0
  32. package/bundled/gateway/node_modules/body-parser/lib/types/json.js +5 -1
  33. package/bundled/gateway/node_modules/body-parser/lib/types/urlencoded.js +15 -7
  34. package/bundled/gateway/node_modules/body-parser/node_modules/qs/.editorconfig +46 -0
  35. package/bundled/gateway/node_modules/body-parser/node_modules/qs/.eslintrc +38 -0
  36. package/bundled/gateway/node_modules/body-parser/node_modules/qs/.github/FUNDING.yml +12 -0
  37. package/bundled/gateway/node_modules/body-parser/node_modules/qs/.nycrc +13 -0
  38. package/bundled/gateway/node_modules/body-parser/node_modules/qs/CHANGELOG.md +600 -0
  39. package/bundled/gateway/node_modules/body-parser/node_modules/qs/LICENSE.md +29 -0
  40. package/bundled/gateway/node_modules/body-parser/node_modules/qs/README.md +709 -0
  41. package/bundled/gateway/node_modules/body-parser/node_modules/qs/dist/qs.js +90 -0
  42. package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/formats.js +23 -0
  43. package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/index.js +11 -0
  44. package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/parse.js +296 -0
  45. package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/stringify.js +351 -0
  46. package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/utils.js +265 -0
  47. package/bundled/gateway/node_modules/body-parser/node_modules/qs/package.json +91 -0
  48. package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/empty-keys-cases.js +267 -0
  49. package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/parse.js +1170 -0
  50. package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/stringify.js +1298 -0
  51. package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/utils.js +136 -0
  52. package/bundled/gateway/node_modules/body-parser/package.json +10 -9
  53. package/bundled/gateway/node_modules/cookie/index.js +35 -24
  54. package/bundled/gateway/node_modules/cookie/package.json +1 -1
  55. package/bundled/gateway/node_modules/cookie-signature/History.md +1 -5
  56. package/bundled/gateway/node_modules/cookie-signature/index.js +6 -6
  57. package/bundled/gateway/node_modules/cookie-signature/package.json +2 -2
  58. package/bundled/gateway/node_modules/express/History.md +0 -43
  59. package/bundled/gateway/node_modules/express/lib/response.js +0 -1
  60. package/bundled/gateway/node_modules/express/lib/utils.js +1 -2
  61. package/bundled/gateway/node_modules/express/node_modules/qs/.editorconfig +43 -0
  62. package/bundled/gateway/node_modules/express/node_modules/qs/.eslintrc +38 -0
  63. package/bundled/gateway/node_modules/express/node_modules/qs/.github/FUNDING.yml +12 -0
  64. package/bundled/gateway/node_modules/express/node_modules/qs/.nycrc +13 -0
  65. package/bundled/gateway/node_modules/express/node_modules/qs/CHANGELOG.md +546 -0
  66. package/bundled/gateway/node_modules/express/node_modules/qs/LICENSE.md +29 -0
  67. package/bundled/gateway/node_modules/express/node_modules/qs/README.md +625 -0
  68. package/bundled/gateway/node_modules/express/node_modules/qs/dist/qs.js +2054 -0
  69. package/bundled/gateway/node_modules/express/node_modules/qs/lib/formats.js +23 -0
  70. package/bundled/gateway/node_modules/express/node_modules/qs/lib/index.js +11 -0
  71. package/bundled/gateway/node_modules/express/node_modules/qs/lib/parse.js +263 -0
  72. package/bundled/gateway/node_modules/express/node_modules/qs/lib/stringify.js +326 -0
  73. package/bundled/gateway/node_modules/express/node_modules/qs/lib/utils.js +252 -0
  74. package/bundled/gateway/node_modules/express/node_modules/qs/package.json +77 -0
  75. package/bundled/gateway/node_modules/express/node_modules/qs/test/parse.js +855 -0
  76. package/bundled/gateway/node_modules/express/node_modules/qs/test/stringify.js +909 -0
  77. package/bundled/gateway/node_modules/express/node_modules/qs/test/utils.js +136 -0
  78. package/bundled/gateway/node_modules/express/package.json +17 -21
  79. package/bundled/gateway/node_modules/finalhandler/HISTORY.md +0 -21
  80. package/bundled/gateway/node_modules/finalhandler/README.md +2 -2
  81. package/bundled/gateway/node_modules/finalhandler/index.js +2 -7
  82. package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/HISTORY.md +14 -0
  83. package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/LICENSE +22 -0
  84. package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/README.md +128 -0
  85. package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/index.js +60 -0
  86. package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/package.json +40 -0
  87. package/bundled/gateway/node_modules/finalhandler/package.json +9 -10
  88. package/bundled/gateway/node_modules/http-errors/HISTORY.md +0 -6
  89. package/bundled/gateway/node_modules/http-errors/index.js +3 -4
  90. package/bundled/gateway/node_modules/http-errors/package.json +8 -12
  91. package/bundled/gateway/node_modules/qs/CHANGELOG.md +0 -16
  92. package/bundled/gateway/node_modules/qs/README.md +1 -1
  93. package/bundled/gateway/node_modules/qs/dist/qs.js +15 -15
  94. package/bundled/gateway/node_modules/qs/eslint.config.mjs +0 -1
  95. package/bundled/gateway/node_modules/qs/lib/parse.js +24 -54
  96. package/bundled/gateway/node_modules/qs/lib/stringify.js +4 -11
  97. package/bundled/gateway/node_modules/qs/package.json +3 -3
  98. package/bundled/gateway/node_modules/qs/test/parse.js +0 -135
  99. package/bundled/gateway/node_modules/qs/test/stringify.js +0 -138
  100. package/bundled/gateway/node_modules/qs/test/utils.js +3 -31
  101. package/bundled/gateway/node_modules/raw-body/HISTORY.md +308 -0
  102. package/bundled/gateway/node_modules/raw-body/SECURITY.md +24 -0
  103. package/bundled/gateway/node_modules/raw-body/package.json +7 -5
  104. package/bundled/gateway/node_modules/send/HISTORY.md +7 -19
  105. package/bundled/gateway/node_modules/send/node_modules/encodeurl/HISTORY.md +14 -0
  106. package/bundled/gateway/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
  107. package/bundled/gateway/node_modules/send/node_modules/encodeurl/README.md +128 -0
  108. package/bundled/gateway/node_modules/send/node_modules/encodeurl/index.js +60 -0
  109. package/bundled/gateway/node_modules/send/node_modules/encodeurl/package.json +40 -0
  110. package/bundled/gateway/node_modules/send/package.json +6 -6
  111. package/bundled/gateway/node_modules/serve-static/HISTORY.md +0 -16
  112. package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/HISTORY.md +14 -0
  113. package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/LICENSE +22 -0
  114. package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/README.md +128 -0
  115. package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/index.js +60 -0
  116. package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/package.json +40 -0
  117. package/bundled/gateway/node_modules/serve-static/package.json +3 -3
  118. package/bundled/gateway/node_modules/statuses/HISTORY.md +0 -5
  119. package/bundled/gateway/node_modules/statuses/README.md +0 -3
  120. package/bundled/gateway/node_modules/statuses/package.json +7 -7
  121. package/bundled/gateway/package-lock.json +137 -88
  122. package/bundled/gateway/package.json +23 -5
  123. package/bundled/ollama/node_modules/.package-lock.json +104 -85
  124. package/bundled/ollama/node_modules/axios/CHANGELOG.md +0 -42
  125. package/bundled/ollama/node_modules/axios/README.md +237 -237
  126. package/bundled/ollama/node_modules/axios/dist/axios.js +21 -113
  127. package/bundled/ollama/node_modules/axios/dist/axios.js.map +1 -0
  128. package/bundled/ollama/node_modules/axios/dist/axios.min.js +2 -2
  129. package/bundled/ollama/node_modules/axios/dist/axios.min.js.map +1 -1
  130. package/bundled/ollama/node_modules/axios/dist/browser/axios.cjs +15 -121
  131. package/bundled/ollama/node_modules/axios/dist/browser/axios.cjs.map +1 -0
  132. package/bundled/ollama/node_modules/axios/dist/esm/axios.js +15 -121
  133. package/bundled/ollama/node_modules/axios/dist/esm/axios.js.map +1 -0
  134. package/bundled/ollama/node_modules/axios/dist/esm/axios.min.js +2 -2
  135. package/bundled/ollama/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  136. package/bundled/ollama/node_modules/axios/dist/node/axios.cjs +107 -249
  137. package/bundled/ollama/node_modules/axios/dist/node/axios.cjs.map +1 -0
  138. package/bundled/ollama/node_modules/axios/index.d.cts +3 -8
  139. package/bundled/ollama/node_modules/axios/index.d.ts +1 -4
  140. package/bundled/ollama/node_modules/axios/lib/adapters/fetch.js +0 -79
  141. package/bundled/ollama/node_modules/axios/lib/adapters/http.js +118 -62
  142. package/bundled/ollama/node_modules/axios/lib/core/Axios.js +0 -1
  143. package/bundled/ollama/node_modules/axios/lib/core/AxiosHeaders.js +2 -2
  144. package/bundled/ollama/node_modules/axios/lib/defaults/transitional.js +0 -1
  145. package/bundled/ollama/node_modules/axios/lib/env/data.js +1 -1
  146. package/bundled/ollama/node_modules/axios/lib/helpers/buildURL.js +1 -1
  147. package/bundled/ollama/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
  148. package/bundled/ollama/node_modules/axios/lib/helpers/resolveConfig.js +6 -12
  149. package/bundled/ollama/node_modules/axios/lib/helpers/toFormData.js +1 -1
  150. package/bundled/ollama/node_modules/axios/lib/utils.js +2 -23
  151. package/bundled/ollama/node_modules/axios/package.json +13 -29
  152. package/bundled/ollama/node_modules/body-parser/HISTORY.md +0 -14
  153. package/bundled/ollama/node_modules/body-parser/SECURITY.md +25 -0
  154. package/bundled/ollama/node_modules/body-parser/lib/types/json.js +5 -1
  155. package/bundled/ollama/node_modules/body-parser/lib/types/urlencoded.js +15 -7
  156. package/bundled/ollama/node_modules/body-parser/package.json +10 -9
  157. package/bundled/ollama/node_modules/cookie/index.js +35 -24
  158. package/bundled/ollama/node_modules/cookie/package.json +1 -1
  159. package/bundled/ollama/node_modules/cookie-signature/History.md +1 -5
  160. package/bundled/ollama/node_modules/cookie-signature/index.js +6 -6
  161. package/bundled/ollama/node_modules/cookie-signature/package.json +2 -2
  162. package/bundled/ollama/node_modules/express/History.md +0 -43
  163. package/bundled/ollama/node_modules/express/lib/response.js +0 -1
  164. package/bundled/ollama/node_modules/express/lib/utils.js +1 -2
  165. package/bundled/ollama/node_modules/express/package.json +17 -21
  166. package/bundled/ollama/node_modules/finalhandler/HISTORY.md +0 -21
  167. package/bundled/ollama/node_modules/finalhandler/README.md +2 -2
  168. package/bundled/ollama/node_modules/finalhandler/index.js +2 -7
  169. package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/HISTORY.md +14 -0
  170. package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/LICENSE +22 -0
  171. package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/README.md +128 -0
  172. package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/index.js +60 -0
  173. package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/package.json +40 -0
  174. package/bundled/ollama/node_modules/finalhandler/package.json +9 -10
  175. package/bundled/ollama/node_modules/http-errors/HISTORY.md +0 -6
  176. package/bundled/ollama/node_modules/http-errors/index.js +3 -4
  177. package/bundled/ollama/node_modules/http-errors/package.json +8 -12
  178. package/bundled/ollama/node_modules/qs/CHANGELOG.md +0 -16
  179. package/bundled/ollama/node_modules/qs/README.md +1 -1
  180. package/bundled/ollama/node_modules/qs/dist/qs.js +15 -15
  181. package/bundled/ollama/node_modules/qs/eslint.config.mjs +0 -1
  182. package/bundled/ollama/node_modules/qs/lib/parse.js +24 -54
  183. package/bundled/ollama/node_modules/qs/lib/stringify.js +4 -11
  184. package/bundled/ollama/node_modules/qs/package.json +3 -3
  185. package/bundled/ollama/node_modules/qs/test/parse.js +0 -135
  186. package/bundled/ollama/node_modules/qs/test/stringify.js +0 -138
  187. package/bundled/ollama/node_modules/qs/test/utils.js +3 -31
  188. package/bundled/ollama/node_modules/raw-body/HISTORY.md +308 -0
  189. package/bundled/ollama/node_modules/raw-body/SECURITY.md +24 -0
  190. package/bundled/ollama/node_modules/raw-body/package.json +7 -5
  191. package/bundled/ollama/node_modules/send/HISTORY.md +7 -19
  192. package/bundled/ollama/node_modules/send/node_modules/encodeurl/HISTORY.md +14 -0
  193. package/bundled/ollama/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
  194. package/bundled/ollama/node_modules/send/node_modules/encodeurl/README.md +128 -0
  195. package/bundled/ollama/node_modules/send/node_modules/encodeurl/index.js +60 -0
  196. package/bundled/ollama/node_modules/send/node_modules/encodeurl/package.json +40 -0
  197. package/bundled/ollama/node_modules/send/package.json +6 -6
  198. package/bundled/ollama/node_modules/serve-static/HISTORY.md +0 -16
  199. package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/HISTORY.md +14 -0
  200. package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/LICENSE +22 -0
  201. package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/README.md +128 -0
  202. package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/index.js +60 -0
  203. package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/package.json +40 -0
  204. package/bundled/ollama/node_modules/serve-static/package.json +3 -3
  205. package/bundled/ollama/node_modules/statuses/HISTORY.md +0 -5
  206. package/bundled/ollama/node_modules/statuses/README.md +0 -3
  207. package/bundled/ollama/node_modules/statuses/package.json +7 -7
  208. package/bundled/ollama/package-lock.json +107 -88
  209. package/bundled/ollama/package.json +24 -4
  210. package/node_modules/@sap-llm-gateway/service-key-parser/package.json +1 -1
  211. package/package.json +2 -2
  212. package/bundled/gateway/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
  213. package/bundled/ollama/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
@@ -1,4 +1,4 @@
1
- /*! Axios v1.17.0 Copyright (c) 2026 Matt Zabriskie and contributors */
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
- // findKey lowercases the key, so caseless lookup only applies to strings —
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
- const source = objs[i];
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
- return;
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 new TypeError('Object iterator must return a key-value pair');
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 new Error('Circular reference detected in ' + path.join('.'));
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$1 = (str) =>
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
- function resolveConfig(config) {
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
- own('params'),
2895
- own('paramsSerializer')
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$1(auth.password) : ''))
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
- platform.hasStandardBrowserEnv ||
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.17.0";
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
  );