axios 1.6.2 → 1.6.4

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.

Potentially problematic release.


This version of axios might be problematic. Click here for more details.

package/dist/esm/axios.js CHANGED
@@ -1,4 +1,4 @@
1
- // Axios v1.6.2 Copyright (c) 2023 Matt Zabriskie and contributors
1
+ // Axios v1.6.4 Copyright (c) 2024 Matt Zabriskie and contributors
2
2
  function bind(fn, thisArg) {
3
3
  return function wrap() {
4
4
  return fn.apply(thisArg, arguments);
@@ -1350,6 +1350,9 @@ function arrayToObject(arr) {
1350
1350
  function formDataToJSON(formData) {
1351
1351
  function buildPath(path, value, target, index) {
1352
1352
  let name = path[index++];
1353
+
1354
+ if (name === '__proto__') return true;
1355
+
1353
1356
  const isNumericKey = Number.isFinite(+name);
1354
1357
  const isLast = index >= path.length;
1355
1358
  name = !name && utils$1.isArray(target) ? target.length : name;
@@ -2019,7 +2022,7 @@ function isAbsoluteURL(url) {
2019
2022
  */
2020
2023
  function combineURLs(baseURL, relativeURL) {
2021
2024
  return relativeURL
2022
- ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2025
+ ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2023
2026
  : baseURL;
2024
2027
  }
2025
2028
 
@@ -2653,7 +2656,7 @@ function mergeConfig$1(config1, config2) {
2653
2656
  return config;
2654
2657
  }
2655
2658
 
2656
- const VERSION$1 = "1.6.2";
2659
+ const VERSION$1 = "1.6.4";
2657
2660
 
2658
2661
  const validators$1 = {};
2659
2662