axios 1.6.3 → 1.6.5

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.

@@ -1,4 +1,4 @@
1
- // Axios v1.6.3 Copyright (c) 2023 Matt Zabriskie and contributors
1
+ // Axios v1.6.5 Copyright (c) 2024 Matt Zabriskie and contributors
2
2
  'use strict';
3
3
 
4
4
  function bind(fn, thisArg) {
@@ -1352,6 +1352,9 @@ function arrayToObject(arr) {
1352
1352
  function formDataToJSON(formData) {
1353
1353
  function buildPath(path, value, target, index) {
1354
1354
  let name = path[index++];
1355
+
1356
+ if (name === '__proto__') return true;
1357
+
1355
1358
  const isNumericKey = Number.isFinite(+name);
1356
1359
  const isLast = index >= path.length;
1357
1360
  name = !name && utils$1.isArray(target) ? target.length : name;
@@ -2655,7 +2658,7 @@ function mergeConfig(config1, config2) {
2655
2658
  return config;
2656
2659
  }
2657
2660
 
2658
- const VERSION = "1.6.3";
2661
+ const VERSION = "1.6.5";
2659
2662
 
2660
2663
  const validators$1 = {};
2661
2664