2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

chore(release): v1.3.5 (#5634)

Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-04-05 21:01:58 +03:00
committed by GitHub
parent a56c866120
commit 4af78a72ee
17 changed files with 83 additions and 53 deletions
+14 -10
View File
@@ -1,4 +1,4 @@
// Axios v1.3.4 Copyright (c) 2023 Matt Zabriskie and contributors
// Axios v1.3.5 Copyright (c) 2023 Matt Zabriskie and contributors
'use strict';
function bind(fn, thisArg) {
@@ -1612,9 +1612,7 @@ function parseTokens(str) {
return tokens;
}
function isValidHeaderName(str) {
return /^[-_a-zA-Z]+$/.test(str.trim());
}
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
if (utils.isFunction(filter)) {
@@ -2618,7 +2616,7 @@ function mergeConfig(config1, config2) {
return config;
}
const VERSION = "1.3.4";
const VERSION = "1.3.5";
const validators$1 = {};
@@ -2755,11 +2753,17 @@ class Axios {
}, false);
}
if (paramsSerializer !== undefined) {
validator.assertOptions(paramsSerializer, {
encode: validators.function,
serialize: validators.function
}, true);
if (paramsSerializer != null) {
if (utils.isFunction(paramsSerializer)) {
config.paramsSerializer = {
serialize: paramsSerializer
};
} else {
validator.assertOptions(paramsSerializer, {
encode: validators.function,
serialize: validators.function
}, true);
}
}
// Set config.method
+1 -1
View File
File diff suppressed because one or more lines are too long