axios 1.0.0 → 1.1.0

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
@@ -179,3 +179,22 @@
179
179
  - [Luca Pizzini](https://github.com/lpizzinidev)
180
180
  - [Willian Agostini](https://github.com/WillianAgostini)
181
181
  - [Huyen Nguyen](https://github.com/huyenltnguyen)
182
+
183
+ ## [1.1.0] - 2022-10-06
184
+
185
+ ### Fixed
186
+
187
+ - Fixed missing exports in type definition index.d.ts [#5003](https://github.com/axios/axios/pull/5003)
188
+ - Fixed query params composing [#5018](https://github.com/axios/axios/pull/5018)
189
+ - Fixed GenericAbortSignal interface by making it more generic [#5021](https://github.com/axios/axios/pull/5021)
190
+ - Fixed adding "clear" to AxiosInterceptorManager [#5010](https://github.com/axios/axios/pull/5010)
191
+ - Fixed commonjs & umd exports [#5030](https://github.com/axios/axios/pull/5030)
192
+ - Fixed inability to access response headers when using axios 1.x with Jest [#5036](https://github.com/axios/axios/pull/5036)
193
+
194
+ ### Contributors to this release
195
+
196
+ - [Trim21](https://github.com/trim21)
197
+ - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
198
+ - [shingo.sasaki](https://github.com/s-sasaki-0529)
199
+ - [Ivan Pepelko](https://github.com/ivanpepelko)
200
+ - [Richard Kořínek](https://github.com/risa)
package/dist/axios.js CHANGED
@@ -1,9 +1,9 @@
1
- // Axios v1.0.0 Copyright (c) 2022 Matt Zabriskie and contributors
1
+ // Axios v1.1.0 Copyright (c) 2022 Matt Zabriskie and contributors
2
2
  (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
- typeof define === 'function' && define.amd ? define(factory) :
5
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.axios = factory());
6
- })(this, (function () { 'use strict';
3
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
5
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.axios = {}));
6
+ })(this, (function (exports) { 'use strict';
7
7
 
8
8
  function _typeof(obj) {
9
9
  "@babel/helpers - typeof";
@@ -191,7 +191,7 @@
191
191
  }
192
192
 
193
193
  var prototype = getPrototypeOf(val);
194
- return prototype === null || prototype === Object.prototype;
194
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
195
195
  };
196
196
  /**
197
197
  * Determine if a value is a Date
@@ -2442,7 +2442,7 @@
2442
2442
  return config;
2443
2443
  }
2444
2444
 
2445
- var VERSION = "1.0.0";
2445
+ var VERSION = "1.1.0";
2446
2446
 
2447
2447
  var validators$1 = {}; // eslint-disable-next-line func-names
2448
2448
 
@@ -2915,7 +2915,13 @@
2915
2915
  return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
2916
2916
  };
2917
2917
 
2918
- return axios;
2918
+ exports.Axios = Axios;
2919
+ exports.AxiosError = AxiosError;
2920
+ exports.AxiosHeaders = AxiosHeaders;
2921
+ exports.CanceledError = CanceledError;
2922
+ exports["default"] = axios;
2923
+
2924
+ Object.defineProperty(exports, '__esModule', { value: true });
2919
2925
 
2920
2926
  }));
2921
2927
  //# sourceMappingURL=axios.js.map