axios 1.3.2 → 1.3.4
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 +28 -0
- package/README.md +3 -0
- package/dist/axios.js +11 -6
- 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 +12 -6
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +12 -6
- 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 +43 -31
- package/dist/node/axios.cjs.map +1 -1
- package/lib/adapters/http.js +34 -26
- package/lib/core/AxiosHeaders.js +6 -2
- package/lib/env/data.js +1 -1
- package/lib/platform/browser/classes/Blob.js +3 -0
- package/lib/platform/browser/classes/FormData.js +1 -1
- package/lib/platform/browser/index.js +1 -0
- package/package.json +2 -3
package/dist/esm/axios.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.3.
|
1
|
+
// Axios v1.3.4 Copyright (c) 2023 Matt Zabriskie and contributors
|
2
2
|
function bind(fn, thisArg) {
|
3
3
|
return function wrap() {
|
4
4
|
return fn.apply(thisArg, arguments);
|
@@ -1210,7 +1210,9 @@ const transitionalDefaults = {
|
|
1210
1210
|
|
1211
1211
|
const URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
1212
1212
|
|
1213
|
-
const FormData$1 = FormData;
|
1213
|
+
const FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
|
1214
|
+
|
1215
|
+
const Blob$1 = typeof Blob !== 'undefined' ? Blob : null;
|
1214
1216
|
|
1215
1217
|
/**
|
1216
1218
|
* Determine if we're running in a standard browser environment
|
@@ -1266,7 +1268,7 @@ const platform = {
|
|
1266
1268
|
classes: {
|
1267
1269
|
URLSearchParams: URLSearchParams$1,
|
1268
1270
|
FormData: FormData$1,
|
1269
|
-
Blob
|
1271
|
+
Blob: Blob$1
|
1270
1272
|
},
|
1271
1273
|
isStandardBrowserEnv,
|
1272
1274
|
isStandardBrowserWebWorkerEnv,
|
@@ -1612,11 +1614,15 @@ function isValidHeaderName(str) {
|
|
1612
1614
|
return /^[-_a-zA-Z]+$/.test(str.trim());
|
1613
1615
|
}
|
1614
1616
|
|
1615
|
-
function matchHeaderValue(context, value, header, filter) {
|
1617
|
+
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
1616
1618
|
if (utils.isFunction(filter)) {
|
1617
1619
|
return filter.call(this, value, header);
|
1618
1620
|
}
|
1619
1621
|
|
1622
|
+
if (isHeaderNameFilter) {
|
1623
|
+
value = header;
|
1624
|
+
}
|
1625
|
+
|
1620
1626
|
if (!utils.isString(value)) return;
|
1621
1627
|
|
1622
1628
|
if (utils.isString(filter)) {
|
@@ -1760,7 +1766,7 @@ class AxiosHeaders$1 {
|
|
1760
1766
|
|
1761
1767
|
while (i--) {
|
1762
1768
|
const key = keys[i];
|
1763
|
-
if(!matcher || matchHeaderValue(this, this[key], key, matcher)) {
|
1769
|
+
if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
1764
1770
|
delete this[key];
|
1765
1771
|
deleted = true;
|
1766
1772
|
}
|
@@ -2610,7 +2616,7 @@ function mergeConfig$1(config1, config2) {
|
|
2610
2616
|
return config;
|
2611
2617
|
}
|
2612
2618
|
|
2613
|
-
const VERSION$1 = "1.3.
|
2619
|
+
const VERSION$1 = "1.3.4";
|
2614
2620
|
|
2615
2621
|
const validators$1 = {};
|
2616
2622
|
|