axios 1.3.2 → 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/dist/esm/axios.js CHANGED
@@ -1,4 +1,4 @@
1
- // Axios v1.3.2 Copyright (c) 2023 Matt Zabriskie and contributors
1
+ // Axios v1.3.3 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,7 @@ 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
1214
 
1215
1215
  /**
1216
1216
  * Determine if we're running in a standard browser environment
@@ -1612,11 +1612,15 @@ function isValidHeaderName(str) {
1612
1612
  return /^[-_a-zA-Z]+$/.test(str.trim());
1613
1613
  }
1614
1614
 
1615
- function matchHeaderValue(context, value, header, filter) {
1615
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1616
1616
  if (utils.isFunction(filter)) {
1617
1617
  return filter.call(this, value, header);
1618
1618
  }
1619
1619
 
1620
+ if (isHeaderNameFilter) {
1621
+ value = header;
1622
+ }
1623
+
1620
1624
  if (!utils.isString(value)) return;
1621
1625
 
1622
1626
  if (utils.isString(filter)) {
@@ -1760,7 +1764,7 @@ class AxiosHeaders$1 {
1760
1764
 
1761
1765
  while (i--) {
1762
1766
  const key = keys[i];
1763
- if(!matcher || matchHeaderValue(this, this[key], key, matcher)) {
1767
+ if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
1764
1768
  delete this[key];
1765
1769
  deleted = true;
1766
1770
  }
@@ -2610,7 +2614,7 @@ function mergeConfig$1(config1, config2) {
2610
2614
  return config;
2611
2615
  }
2612
2616
 
2613
- const VERSION$1 = "1.3.2";
2617
+ const VERSION$1 = "1.3.3";
2614
2618
 
2615
2619
  const validators$1 = {};
2616
2620