UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

1 lines 2.22 kB
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/axios/lib/core/enhanceError.js","dependencies":[{"path":"/data/node_modules/axios/lib/core/enhanceError.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\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\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 error.\n */\n\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n error.request = request;\n error.response = response;\n return error;\n};",{"version":3,"sources":["node_modules/axios/lib/core/enhanceError.js"],"names":["module","exports","enhanceError","error","config","code","request","response"],"mappings":"AAAA;;AAEA;;;;;;;;;;;AAUAA,OAAOC,OAAP,GAAiB,SAASC,YAAT,CAAsBC,KAAtB,EAA6BC,MAA7B,EAAqCC,IAArC,EAA2CC,OAA3C,EAAoDC,QAApD,EAA8D;AAC7EJ,QAAMC,MAAN,GAAeA,MAAf;AACA,MAAIC,IAAJ,EAAU;AACRF,UAAME,IAAN,GAAaA,IAAb;AACD;AACDF,QAAMG,OAAN,GAAgBA,OAAhB;AACAH,QAAMI,QAAN,GAAiBA,QAAjB;AACA,SAAOJ,KAAP;AACD,CARD","file":"enhanceError.js","sourceRoot":"/data","sourcesContent":["'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\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 error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n error.request = request;\n error.response = response;\n return error;\n};\n"]}]}