From 16da8f48c7328c334a5c0d863078fd00257ae6b4 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 8 May 2022 13:18:04 +0200 Subject: Initial commit --- fetcher/node_modules/axios/lib/helpers/isAxiosError.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fetcher/node_modules/axios/lib/helpers/isAxiosError.js (limited to 'fetcher/node_modules/axios/lib/helpers/isAxiosError.js') diff --git a/fetcher/node_modules/axios/lib/helpers/isAxiosError.js b/fetcher/node_modules/axios/lib/helpers/isAxiosError.js new file mode 100644 index 0000000..a037bec --- /dev/null +++ b/fetcher/node_modules/axios/lib/helpers/isAxiosError.js @@ -0,0 +1,13 @@ +'use strict'; + +var utils = require('./../utils'); + +/** + * 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 utils.isObject(payload) && (payload.isAxiosError === true); +}; -- cgit