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

chore(release): v1.3.3 (#5546)

Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-02-13 20:46:08 +02:00
committed by GitHub
parent a43bca033d
commit d9ebf8fb3a
17 changed files with 63 additions and 35 deletions
+9 -5
View File
@@ -1,4 +1,4 @@
// Axios v1.3.2 Copyright (c) 2023 Matt Zabriskie and contributors
// Axios v1.3.3 Copyright (c) 2023 Matt Zabriskie and contributors
'use strict';
function bind(fn, thisArg) {
@@ -1212,7 +1212,7 @@ var transitionalDefaults = {
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
var FormData$1 = FormData;
var FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
/**
* Determine if we're running in a standard browser environment
@@ -1614,11 +1614,15 @@ function isValidHeaderName(str) {
return /^[-_a-zA-Z]+$/.test(str.trim());
}
function matchHeaderValue(context, value, header, filter) {
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
if (utils.isFunction(filter)) {
return filter.call(this, value, header);
}
if (isHeaderNameFilter) {
value = header;
}
if (!utils.isString(value)) return;
if (utils.isString(filter)) {
@@ -1762,7 +1766,7 @@ class AxiosHeaders {
while (i--) {
const key = keys[i];
if(!matcher || matchHeaderValue(this, this[key], key, matcher)) {
if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
delete this[key];
deleted = true;
}
@@ -2612,7 +2616,7 @@ function mergeConfig(config1, config2) {
return config;
}
const VERSION = "1.3.2";
const VERSION = "1.3.3";
const validators$1 = {};
+1 -1
View File
File diff suppressed because one or more lines are too long