axios 1.6.3 → 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/CHANGELOG.md +14 -0
- package/README.md +32 -4
- package/dist/axios.js +3 -2
- package/dist/axios.js.map +1 -1
- package/dist/axios.min.js +1 -1
- package/dist/axios.min.js.map +1 -1
- package/dist/browser/axios.cjs +5 -2
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +5 -2
- package/dist/esm/axios.js.map +1 -1
- package/dist/esm/axios.min.js +1 -1
- package/dist/esm/axios.min.js.map +1 -1
- package/dist/node/axios.cjs +5 -2
- package/dist/node/axios.cjs.map +1 -1
- package/lib/env/data.js +1 -1
- package/lib/helpers/formDataToJSON.js +3 -0
- package/package.json +2 -2
package/dist/browser/axios.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.6.
|
1
|
+
// Axios v1.6.4 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.
|
2661
|
+
const VERSION = "1.6.4";
|
2659
2662
|
|
2660
2663
|
const validators$1 = {};
|
2661
2664
|
|