GoScrobble/web/node_modules/.cache/babel-loader/614f11e3a7617df3f847d725ac372a6e.json

1 line
3.3 KiB
JSON
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
{"ast":null,"code":"'use strict';\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\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n\n return error;\n};","map":{"version":3,"sources":["/app/node_modules/axios/lib/core/enhanceError.js"],"names":["module","exports","enhanceError","error","config","code","request","response","isAxiosError","toJSON","message","name","description","number","fileName","lineNumber","columnNumber","stack"],"mappings":"AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACAA,MAAM,CAACC,OAAP,GAAiB,SAASC,YAAT,CAAsBC,KAAtB,EAA6BC,MAA7B,EAAqCC,IAArC,EAA2CC,OAA3C,EAAoDC,QAApD,EAA8D;AAC7EJ,EAAAA,KAAK,CAACC,MAAN,GAAeA,MAAf;;AACA,MAAIC,IAAJ,EAAU;AACRF,IAAAA,KAAK,CAACE,IAAN,GAAaA,IAAb;AACD;;AAEDF,EAAAA,KAAK,CAACG,OAAN,GAAgBA,OAAhB;AACAH,EAAAA,KAAK,CAACI,QAAN,GAAiBA,QAAjB;AACAJ,EAAAA,KAAK,CAACK,YAAN,GAAqB,IAArB;;AAEAL,EAAAA,KAAK,CAACM,MAAN,GAAe,SAASA,MAAT,GAAkB;AAC/B,WAAO;AACL;AACAC,MAAAA,OAAO,EAAE,KAAKA,OAFT;AAGLC,MAAAA,IAAI,EAAE,KAAKA,IAHN;AAIL;AACAC,MAAAA,WAAW,EAAE,KAAKA,WALb;AAMLC,MAAAA,MAAM,EAAE,KAAKA,MANR;AAOL;AACAC,MAAAA,QAAQ,EAAE,KAAKA,QARV;AASLC,MAAAA,UAAU,EAAE,KAAKA,UATZ;AAULC,MAAAA,YAAY,EAAE,KAAKA,YAVd;AAWLC,MAAAA,KAAK,EAAE,KAAKA,KAXP;AAYL;AACAb,MAAAA,MAAM,EAAE,KAAKA,MAbR;AAcLC,MAAAA,IAAI,EAAE,KAAKA;AAdN,KAAP;AAgBD,GAjBD;;AAkBA,SAAOF,KAAP;AACD,CA7BD","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\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n"]},"metadata":{},"sourceType":"script"}