axios 1.3.1 → 1.3.3
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 +26 -0
- package/dist/axios.js +8 -5
- 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 +9 -5
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +9 -5
- 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 +11 -7
- package/dist/node/axios.cjs.map +1 -1
- package/lib/adapters/http.js +2 -2
- package/lib/core/AxiosHeaders.js +6 -2
- package/lib/env/data.js +1 -1
- package/lib/helpers/formDataToStream.js +1 -0
- package/lib/platform/browser/classes/FormData.js +1 -1
- package/package.json +2 -3
package/dist/browser/axios.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.3.
|
1
|
+
// Axios v1.3.3 Copyright (c) 2023 Matt Zabriskie and contributors
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
function bind(fn, thisArg) {
|
@@ -1212,7 +1212,7 @@ var transitionalDefaults = {
|
|
1212
1212
|
|
1213
1213
|
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
1214
1214
|
|
1215
|
-
var FormData$1 = FormData;
|
1215
|
+
var FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
|
1216
1216
|
|
1217
1217
|
/**
|
1218
1218
|
* Determine if we're running in a standard browser environment
|
@@ -1614,11 +1614,15 @@ function isValidHeaderName(str) {
|
|
1614
1614
|
return /^[-_a-zA-Z]+$/.test(str.trim());
|
1615
1615
|
}
|
1616
1616
|
|
1617
|
-
function matchHeaderValue(context, value, header, filter) {
|
1617
|
+
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
1618
1618
|
if (utils.isFunction(filter)) {
|
1619
1619
|
return filter.call(this, value, header);
|
1620
1620
|
}
|
1621
1621
|
|
1622
|
+
if (isHeaderNameFilter) {
|
1623
|
+
value = header;
|
1624
|
+
}
|
1625
|
+
|
1622
1626
|
if (!utils.isString(value)) return;
|
1623
1627
|
|
1624
1628
|
if (utils.isString(filter)) {
|
@@ -1762,7 +1766,7 @@ class AxiosHeaders {
|
|
1762
1766
|
|
1763
1767
|
while (i--) {
|
1764
1768
|
const key = keys[i];
|
1765
|
-
if(!matcher || matchHeaderValue(this, this[key], key, matcher)) {
|
1769
|
+
if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
1766
1770
|
delete this[key];
|
1767
1771
|
deleted = true;
|
1768
1772
|
}
|
@@ -2612,7 +2616,7 @@ function mergeConfig(config1, config2) {
|
|
2612
2616
|
return config;
|
2613
2617
|
}
|
2614
2618
|
|
2615
|
-
const VERSION = "1.3.
|
2619
|
+
const VERSION = "1.3.3";
|
2616
2620
|
|
2617
2621
|
const validators$1 = {};
|
2618
2622
|
|