Spaces:
Sleeping
Sleeping
Download node_modules/axios/lib/helpers/isAxiosError.js from omnitool-ai/omnitool_on_hf: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/omnitool-ai/omnitool_on_hf/resolve/main/node_modules/axios/lib/helpers/isAxiosError.js
- Command line
-
hf download hf://spaces/omnitool-ai/omnitool_on_hf/node_modules/axios/lib/helpers/isAxiosError.js
-
curl -L -o isAxiosError.js https://huggingface.co/spaces/omnitool-ai/omnitool_on_hf/resolve/main/node_modules/axios/lib/helpers/isAxiosError.js
373 Bytes
| ; | |
| import utils from './../utils.js'; | |
| /** | |
| * 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 | |
| */ | |
| export default function isAxiosError(payload) { | |
| return utils.isObject(payload) && (payload.isAxiosError === true); | |
| } | |