UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

1 lines 2.32 kB
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/axios/lib/core/createError.js","dependencies":[{"path":"/data/node_modules/axios/lib/core/createError.js","mtime":1553611387516},{"path":"/data/.babelrc","mtime":1553611371556},{"path":"/data/node_modules/cache-loader/dist/cjs.js","mtime":1553611387012},{"path":"/data/node_modules/babel-loader/lib/index.js","mtime":1553611386992}],"contextDependencies":[],"result":["'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};",{"version":3,"sources":["node_modules/axios/lib/core/createError.js"],"names":["enhanceError","require","module","exports","createError","message","config","code","request","response","error","Error"],"mappings":"AAAA;;AAEA,IAAIA,eAAeC,QAAQ,gBAAR,CAAnB;;AAEA;;;;;;;;;;AAUAC,OAAOC,OAAP,GAAiB,SAASC,WAAT,CAAqBC,OAArB,EAA8BC,MAA9B,EAAsCC,IAAtC,EAA4CC,OAA5C,EAAqDC,QAArD,EAA+D;AAC9E,MAAIC,QAAQ,IAAIC,KAAJ,CAAUN,OAAV,CAAZ;AACA,SAAOL,aAAaU,KAAb,EAAoBJ,MAApB,EAA4BC,IAA5B,EAAkCC,OAAlC,EAA2CC,QAA3C,CAAP;AACD,CAHD","file":"createError.js","sourceRoot":"/data","sourcesContent":["'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n"]}]}