axios 1.3.0 → 1.3.1
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 +12 -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 +17 -9
- package/dist/node/axios.cjs.map +1 -1
- package/lib/adapters/http.js +12 -5
- package/lib/core/AxiosHeaders.js +1 -1
- package/lib/env/data.js +1 -1
- package/lib/helpers/toFormData.js +1 -1
- package/package.json +1 -1
package/dist/browser/axios.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.3.
|
1
|
+
// Axios v1.3.1 Copyright (c) 2023 Matt Zabriskie and contributors
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
function bind(fn, thisArg) {
|
@@ -960,7 +960,7 @@ function toFormData(obj, formData, options) {
|
|
960
960
|
value = JSON.stringify(value);
|
961
961
|
} else if (
|
962
962
|
(utils.isArray(value) && isFlatArray(value)) ||
|
963
|
-
(utils.isFileList(value) || utils.endsWith(key, '[]') && (arr = utils.toArray(value))
|
963
|
+
((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
|
964
964
|
)) {
|
965
965
|
// eslint-disable-next-line no-param-reassign
|
966
966
|
key = removeBrackets(key);
|
@@ -1722,7 +1722,7 @@ class AxiosHeaders {
|
|
1722
1722
|
if (header) {
|
1723
1723
|
const key = utils.findKey(this, header);
|
1724
1724
|
|
1725
|
-
return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
1725
|
+
return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
1726
1726
|
}
|
1727
1727
|
|
1728
1728
|
return false;
|
@@ -2612,7 +2612,7 @@ function mergeConfig(config1, config2) {
|
|
2612
2612
|
return config;
|
2613
2613
|
}
|
2614
2614
|
|
2615
|
-
const VERSION = "1.3.
|
2615
|
+
const VERSION = "1.3.1";
|
2616
2616
|
|
2617
2617
|
const validators$1 = {};
|
2618
2618
|
|