axios 1.3.5 → 1.3.6

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.5 Copyright (c) 2023 Matt Zabriskie and contributors
1
+ // Axios v1.3.6 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);
@@ -191,12 +191,16 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
191
191
  * @returns {boolean} True if value is an FormData, otherwise false
192
192
  */
193
193
  const isFormData = (thing) => {
194
- const pattern = '[object FormData]';
194
+ let kind;
195
195
  return thing && (
196
- (typeof FormData === 'function' && thing instanceof FormData) ||
197
- toString.call(thing) === pattern ||
198
- (isFunction(thing.toString) && thing.toString() === pattern)
199
- );
196
+ (typeof FormData === 'function' && thing instanceof FormData) || (
197
+ isFunction(thing.append) && (
198
+ (kind = kindOf(thing)) === 'formdata' ||
199
+ // detect form-data instance
200
+ (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
201
+ )
202
+ )
203
+ )
200
204
  };
201
205
 
202
206
  /**
@@ -2614,7 +2618,7 @@ function mergeConfig$1(config1, config2) {
2614
2618
  return config;
2615
2619
  }
2616
2620
 
2617
- const VERSION$1 = "1.3.5";
2621
+ const VERSION$1 = "1.3.6";
2618
2622
 
2619
2623
  const validators$1 = {};
2620
2624