Download node_modules/axios/lib/core/createError.js from khoadang31/uptimerobot: direct link, hf CLI and curl.
- Browser
- Download file 625 Bytes
-
https://huggingface.co/khoadang31/uptimerobot/resolve/main/node_modules/axios/lib/core/createError.js
- Command line
-
hf download hf://khoadang31/uptimerobot/node_modules/axios/lib/core/createError.js
-
curl -L -o createError.js https://huggingface.co/khoadang31/uptimerobot/resolve/main/node_modules/axios/lib/core/createError.js
625 Bytes
| ; | |
| var enhanceError = require('./enhanceError'); | |
| /** | |
| * Create an Error with the specified message, config, error code, request and response. | |
| * | |
| * @param {string} message The error message. | |
| * @param {Object} config The config. | |
| * @param {string} [code] The error code (for example, 'ECONNABORTED'). | |
| * @param {Object} [request] The request. | |
| * @param {Object} [response] The response. | |
| * @returns {Error} The created error. | |
| */ | |
| module.exports = function createError(message, config, code, request, response) { | |
| var error = new Error(message); | |
| return enhanceError(error, config, code, request, response); | |
| }; | |