axios 1.3.0 → 1.3.2
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 +24 -0
- package/dist/axios.js +4 -4
- 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 +4 -4
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +4 -4
- 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 +19 -11
- package/dist/node/axios.cjs.map +1 -1
- package/lib/adapters/http.js +13 -6
- package/lib/core/AxiosHeaders.js +1 -1
- package/lib/env/data.js +1 -1
- package/lib/helpers/formDataToStream.js +1 -0
- package/lib/helpers/toFormData.js +1 -1
- package/package.json +1 -1
package/dist/esm/axios.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.3.
|
1
|
+
// Axios v1.3.2 Copyright (c) 2023 Matt Zabriskie and contributors
|
2
2
|
function bind(fn, thisArg) {
|
3
3
|
return function wrap() {
|
4
4
|
return fn.apply(thisArg, arguments);
|
@@ -958,7 +958,7 @@ function toFormData$1(obj, formData, options) {
|
|
958
958
|
value = JSON.stringify(value);
|
959
959
|
} else if (
|
960
960
|
(utils.isArray(value) && isFlatArray(value)) ||
|
961
|
-
(utils.isFileList(value) || utils.endsWith(key, '[]') && (arr = utils.toArray(value))
|
961
|
+
((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
|
962
962
|
)) {
|
963
963
|
// eslint-disable-next-line no-param-reassign
|
964
964
|
key = removeBrackets(key);
|
@@ -1720,7 +1720,7 @@ class AxiosHeaders$1 {
|
|
1720
1720
|
if (header) {
|
1721
1721
|
const key = utils.findKey(this, header);
|
1722
1722
|
|
1723
|
-
return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
1723
|
+
return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
1724
1724
|
}
|
1725
1725
|
|
1726
1726
|
return false;
|
@@ -2610,7 +2610,7 @@ function mergeConfig$1(config1, config2) {
|
|
2610
2610
|
return config;
|
2611
2611
|
}
|
2612
2612
|
|
2613
|
-
const VERSION$1 = "1.3.
|
2613
|
+
const VERSION$1 = "1.3.2";
|
2614
2614
|
|
2615
2615
|
const validators$1 = {};
|
2616
2616
|
|