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/node/axios.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.3.
|
1
|
+
// Axios v1.3.5 Copyright (c) 2023 Matt Zabriskie and contributors
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
const FormData$1 = require('form-data');
|
@@ -1577,9 +1577,7 @@ function parseTokens(str) {
|
|
1577
1577
|
return tokens;
|
1578
1578
|
}
|
1579
1579
|
|
1580
|
-
|
1581
|
-
return /^[-_a-zA-Z]+$/.test(str.trim());
|
1582
|
-
}
|
1580
|
+
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
1583
1581
|
|
1584
1582
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
1585
1583
|
if (utils.isFunction(filter)) {
|
@@ -1952,7 +1950,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
1952
1950
|
return requestedURL;
|
1953
1951
|
}
|
1954
1952
|
|
1955
|
-
const VERSION = "1.3.
|
1953
|
+
const VERSION = "1.3.5";
|
1956
1954
|
|
1957
1955
|
function parseProtocol(url) {
|
1958
1956
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
@@ -3754,11 +3752,17 @@ class Axios {
|
|
3754
3752
|
}, false);
|
3755
3753
|
}
|
3756
3754
|
|
3757
|
-
if (paramsSerializer
|
3758
|
-
|
3759
|
-
|
3760
|
-
|
3761
|
-
|
3755
|
+
if (paramsSerializer != null) {
|
3756
|
+
if (utils.isFunction(paramsSerializer)) {
|
3757
|
+
config.paramsSerializer = {
|
3758
|
+
serialize: paramsSerializer
|
3759
|
+
};
|
3760
|
+
} else {
|
3761
|
+
validator.assertOptions(paramsSerializer, {
|
3762
|
+
encode: validators.function,
|
3763
|
+
serialize: validators.function
|
3764
|
+
}, true);
|
3765
|
+
}
|
3762
3766
|
}
|
3763
3767
|
|
3764
3768
|
// Set config.method
|