2
0
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:
Xianming Zhong
2021-02-01 02:17:04 +08:00
committed by GitHub
parent 9a4d7ac236
commit 7d3b626a59
7 changed files with 50 additions and 7 deletions
+21 -1
View File
@@ -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);
};
/***/ })
/******/ ])
});
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long