@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
  'use strict';
3
3
 
4
4
  /**
@@ -424,9 +424,7 @@ function merge(...objs) {
424
424
  return;
425
425
  }
426
426
 
427
- // findKey lowercases the key, so caseless lookup only applies to strings —
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
- const source = objs[i];
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
- return;
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 new TypeError('Object iterator must return a key-value pair');
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 new Error('Circular reference detected in ' + path.join('.'));
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$1 = (str) =>
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
- function resolveConfig(config) {
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
- own('params'),
2897
- own('paramsSerializer')
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$1(auth.password) : ''))
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
- platform.hasStandardBrowserEnv ||
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.17.0";
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
  );