mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Merge branch 0.21.1 into master (#3610)
* Updating changelog for 0.21.1 release * Releasing 0.21.1 Co-authored-by: Emily Morehouse <emily@cuttlesoft.com>
This commit is contained in:
Vendored
+21
-1
@@ -1,4 +1,4 @@
|
||||
/* axios v0.21.0 | (c) 2020 by Matt Zabriskie */
|
||||
/* axios v0.21.1 | (c) 2020 by Matt Zabriskie */
|
||||
(function webpackUniversalModuleDefinition(root, factory) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
module.exports = factory();
|
||||
@@ -110,6 +110,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
};
|
||||
axios.spread = __webpack_require__(25);
|
||||
|
||||
// Expose isAxiosError
|
||||
axios.isAxiosError = __webpack_require__(26);
|
||||
|
||||
module.exports = axios;
|
||||
|
||||
// Allow use of default import syntax in TypeScript
|
||||
@@ -1729,6 +1732,23 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 26 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Determines whether the payload is an error thrown by Axios
|
||||
*
|
||||
* @param {*} payload The value to test
|
||||
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
||||
*/
|
||||
module.exports = function isAxiosError(payload) {
|
||||
return (typeof payload === 'object') && (payload.isAxiosError === true);
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
/******/ ])
|
||||
});
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user