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
+8 -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
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
@@ -1209,7 +1209,7 @@
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
@@ -1538,10 +1538,13 @@
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)) {
return value.indexOf(filter) !== -1;
@@ -1663,7 +1666,7 @@
var deleted = false;
while (i--) {
var 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;
}
@@ -2423,7 +2426,7 @@
return config;
}
var VERSION = "1.3.2";
var VERSION = "1.3.3";
var validators$1 = {};
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+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
+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
function bind(fn, thisArg) {
return function wrap() {
return fn.apply(thisArg, arguments);
@@ -1210,7 +1210,7 @@ const transitionalDefaults = {
const URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
const FormData$1 = FormData;
const FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
/**
* Determine if we're running in a standard browser environment
@@ -1612,11 +1612,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)) {
@@ -1760,7 +1764,7 @@ class AxiosHeaders$1 {
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;
}
@@ -2610,7 +2614,7 @@ function mergeConfig$1(config1, config2) {
return config;
}
const VERSION$1 = "1.3.2";
const VERSION$1 = "1.3.3";
const validators$1 = {};
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+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';
const FormData$1 = require('form-data');
@@ -1581,11 +1581,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)) {
@@ -1729,7 +1733,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;
}
@@ -1948,7 +1952,7 @@ function buildFullPath(baseURL, requestedURL) {
return requestedURL;
}
const VERSION = "1.3.2";
const VERSION = "1.3.3";
function parseProtocol(url) {
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -2658,7 +2662,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
if (!headers.hasContentLength()) {
try {
const knownLength = await util__default["default"].promisify(data.getLength).call(data);
headers.setContentLength(knownLength);
Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
/*eslint no-empty:0*/
} catch (e) {
}
+1 -1
View File
File diff suppressed because one or more lines are too long