axios 1.3.4 → 1.3.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.
- package/CHANGELOG.md +12 -0
- package/dist/axios.js +16 -10
- 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 +14 -10
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +14 -10
- 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 +14 -10
- package/dist/node/axios.cjs.map +1 -1
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/lib/core/Axios.js +11 -5
- package/lib/core/AxiosHeaders.js +1 -3
- package/lib/env/data.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.5 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);
|
@@ -1610,9 +1610,7 @@ function parseTokens(str) {
|
|
1610
1610
|
return tokens;
|
1611
1611
|
}
|
1612
1612
|
|
1613
|
-
|
1614
|
-
return /^[-_a-zA-Z]+$/.test(str.trim());
|
1615
|
-
}
|
1613
|
+
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
1616
1614
|
|
1617
1615
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
1618
1616
|
if (utils.isFunction(filter)) {
|
@@ -2616,7 +2614,7 @@ function mergeConfig$1(config1, config2) {
|
|
2616
2614
|
return config;
|
2617
2615
|
}
|
2618
2616
|
|
2619
|
-
const VERSION$1 = "1.3.
|
2617
|
+
const VERSION$1 = "1.3.5";
|
2620
2618
|
|
2621
2619
|
const validators$1 = {};
|
2622
2620
|
|
@@ -2753,11 +2751,17 @@ class Axios$1 {
|
|
2753
2751
|
}, false);
|
2754
2752
|
}
|
2755
2753
|
|
2756
|
-
if (paramsSerializer
|
2757
|
-
|
2758
|
-
|
2759
|
-
|
2760
|
-
|
2754
|
+
if (paramsSerializer != null) {
|
2755
|
+
if (utils.isFunction(paramsSerializer)) {
|
2756
|
+
config.paramsSerializer = {
|
2757
|
+
serialize: paramsSerializer
|
2758
|
+
};
|
2759
|
+
} else {
|
2760
|
+
validator.assertOptions(paramsSerializer, {
|
2761
|
+
encode: validators.function,
|
2762
|
+
serialize: validators.function
|
2763
|
+
}, true);
|
2764
|
+
}
|
2761
2765
|
}
|
2762
2766
|
|
2763
2767
|
// Set config.method
|