axios 1.3.0 → 1.3.1

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.0 Copyright (c) 2023 Matt Zabriskie and contributors
1
+ // Axios v1.3.1 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);
@@ -958,7 +958,7 @@ function toFormData$1(obj, formData, options) {
958
958
  value = JSON.stringify(value);
959
959
  } else if (
960
960
  (utils.isArray(value) && isFlatArray(value)) ||
961
- (utils.isFileList(value) || utils.endsWith(key, '[]') && (arr = utils.toArray(value))
961
+ ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
962
962
  )) {
963
963
  // eslint-disable-next-line no-param-reassign
964
964
  key = removeBrackets(key);
@@ -1720,7 +1720,7 @@ class AxiosHeaders$1 {
1720
1720
  if (header) {
1721
1721
  const key = utils.findKey(this, header);
1722
1722
 
1723
- return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
1723
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
1724
1724
  }
1725
1725
 
1726
1726
  return false;
@@ -2610,7 +2610,7 @@ function mergeConfig$1(config1, config2) {
2610
2610
  return config;
2611
2611
  }
2612
2612
 
2613
- const VERSION$1 = "1.3.0";
2613
+ const VERSION$1 = "1.3.1";
2614
2614
 
2615
2615
  const validators$1 = {};
2616
2616