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/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.3.5](https://github.com/axios/axios/compare/v1.3.4...v1.3.5) (2023-04-05)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* **headers:** fixed isValidHeaderName to support full list of allowed characters; ([#5584](https://github.com/axios/axios/issues/5584)) ([e7decef](https://github.com/axios/axios/commit/e7decef6a99f4627e27ed9ea5b00ce8e201c3841))
|
9
|
+
* **params:** re-added the ability to set the function as `paramsSerializer` config; ([#5633](https://github.com/axios/axios/issues/5633)) ([a56c866](https://github.com/axios/axios/commit/a56c8661209d5ce5a645a05f294a0e08a6c1f6b3))
|
10
|
+
|
11
|
+
### Contributors to this release
|
12
|
+
|
13
|
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+28/-10 (#5633 #5584 )")
|
14
|
+
|
3
15
|
## [1.3.4](https://github.com/axios/axios/compare/v1.3.3...v1.3.4) (2023-02-22)
|
4
16
|
|
5
17
|
|
package/dist/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 (global, factory) {
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
@@ -1537,9 +1537,9 @@
|
|
1537
1537
|
}
|
1538
1538
|
return tokens;
|
1539
1539
|
}
|
1540
|
-
function isValidHeaderName(str) {
|
1541
|
-
return /^[-_a-zA-
|
1542
|
-
}
|
1540
|
+
var isValidHeaderName = function isValidHeaderName(str) {
|
1541
|
+
return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
1542
|
+
};
|
1543
1543
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
1544
1544
|
if (utils.isFunction(filter)) {
|
1545
1545
|
return filter.call(this, value, header);
|
@@ -2428,7 +2428,7 @@
|
|
2428
2428
|
return config;
|
2429
2429
|
}
|
2430
2430
|
|
2431
|
-
var VERSION = "1.3.
|
2431
|
+
var VERSION = "1.3.5";
|
2432
2432
|
|
2433
2433
|
var validators$1 = {};
|
2434
2434
|
|
@@ -2555,11 +2555,17 @@
|
|
2555
2555
|
clarifyTimeoutError: validators.transitional(validators["boolean"])
|
2556
2556
|
}, false);
|
2557
2557
|
}
|
2558
|
-
if (paramsSerializer
|
2559
|
-
|
2560
|
-
|
2561
|
-
|
2562
|
-
|
2558
|
+
if (paramsSerializer != null) {
|
2559
|
+
if (utils.isFunction(paramsSerializer)) {
|
2560
|
+
config.paramsSerializer = {
|
2561
|
+
serialize: paramsSerializer
|
2562
|
+
};
|
2563
|
+
} else {
|
2564
|
+
validator.assertOptions(paramsSerializer, {
|
2565
|
+
encode: validators["function"],
|
2566
|
+
serialize: validators["function"]
|
2567
|
+
}, true);
|
2568
|
+
}
|
2563
2569
|
}
|
2564
2570
|
|
2565
2571
|
// Set config.method
|