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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.1](https://github.com/axios/axios/compare/v1.3.0...v1.3.1) (2023-02-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **formdata:** add hotfix to use the asynchronous API to compute the content-length header value; ([#5521](https://github.com/axios/axios/issues/5521)) ([96d336f](https://github.com/axios/axios/commit/96d336f527619f21da012fe1f117eeb53e5a2120))
9
+ * **serializer:** fixed serialization of array-like objects; ([#5518](https://github.com/axios/axios/issues/5518)) ([08104c0](https://github.com/axios/axios/commit/08104c028c0f9353897b1b6691d74c440fd0c32d))
10
+
11
+ ### Contributors to this release
12
+
13
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+27/-8 (#5521 #5518 )")
14
+
3
15
  # [1.3.0](https://github.com/axios/axios/compare/v1.2.6...v1.3.0) (2023-01-31)
4
16
 
5
17
 
package/dist/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 (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -987,7 +987,7 @@
987
987
  key = metaTokens ? key : key.slice(0, -2);
988
988
  // eslint-disable-next-line no-param-reassign
989
989
  value = JSON.stringify(value);
990
- } else if (utils.isArray(value) && isFlatArray(value) || utils.isFileList(value) || utils.endsWith(key, '[]') && (arr = utils.toArray(value))) {
990
+ } else if (utils.isArray(value) && isFlatArray(value) || (utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))) {
991
991
  // eslint-disable-next-line no-param-reassign
992
992
  key = removeBrackets(key);
993
993
  arr.forEach(function each(el, index) {
@@ -1629,7 +1629,7 @@
1629
1629
  header = normalizeHeader(header);
1630
1630
  if (header) {
1631
1631
  var key = utils.findKey(this, header);
1632
- return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
1632
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
1633
1633
  }
1634
1634
  return false;
1635
1635
  }
@@ -2423,7 +2423,7 @@
2423
2423
  return config;
2424
2424
  }
2425
2425
 
2426
- var VERSION = "1.3.0";
2426
+ var VERSION = "1.3.1";
2427
2427
 
2428
2428
  var validators$1 = {};
2429
2429