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.

@@ -1,4 +1,4 @@
1
- // Axios v1.3.2 Copyright (c) 2023 Matt Zabriskie and contributors
1
+ // Axios v1.3.4 Copyright (c) 2023 Matt Zabriskie and contributors
2
2
  'use strict';
3
3
 
4
4
  function bind(fn, thisArg) {
@@ -1212,7 +1212,9 @@ 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
+
1217
+ var Blob$1 = typeof Blob !== 'undefined' ? Blob : null;
1216
1218
 
1217
1219
  /**
1218
1220
  * Determine if we're running in a standard browser environment
@@ -1268,7 +1270,7 @@ var platform = {
1268
1270
  classes: {
1269
1271
  URLSearchParams: URLSearchParams$1,
1270
1272
  FormData: FormData$1,
1271
- Blob
1273
+ Blob: Blob$1
1272
1274
  },
1273
1275
  isStandardBrowserEnv,
1274
1276
  isStandardBrowserWebWorkerEnv,
@@ -1614,11 +1616,15 @@ function isValidHeaderName(str) {
1614
1616
  return /^[-_a-zA-Z]+$/.test(str.trim());
1615
1617
  }
1616
1618
 
1617
- function matchHeaderValue(context, value, header, filter) {
1619
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1618
1620
  if (utils.isFunction(filter)) {
1619
1621
  return filter.call(this, value, header);
1620
1622
  }
1621
1623
 
1624
+ if (isHeaderNameFilter) {
1625
+ value = header;
1626
+ }
1627
+
1622
1628
  if (!utils.isString(value)) return;
1623
1629
 
1624
1630
  if (utils.isString(filter)) {
@@ -1762,7 +1768,7 @@ class AxiosHeaders {
1762
1768
 
1763
1769
  while (i--) {
1764
1770
  const key = keys[i];
1765
- if(!matcher || matchHeaderValue(this, this[key], key, matcher)) {
1771
+ if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
1766
1772
  delete this[key];
1767
1773
  deleted = true;
1768
1774
  }
@@ -2612,7 +2618,7 @@ function mergeConfig(config1, config2) {
2612
2618
  return config;
2613
2619
  }
2614
2620
 
2615
- const VERSION = "1.3.2";
2621
+ const VERSION = "1.3.4";
2616
2622
 
2617
2623
  const validators$1 = {};
2618
2624