katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/792cdc3788ad1db962475c0a2e8...

1 line
3.3 KiB
JSON
Raw Normal View History

2022-07-06 04:15:11 +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 () {\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,"names":["module","exports","enhanceError","error","config","code","request","response","isAxiosError","toJSON","message","name","description","number","fileName","lineNumber","columnNumber","stack"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/axios/lib/core/enhanceError.js"],"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() {\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"],"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;EAC7EJ,KAAK,CAACC,MAAN,GAAeA,MAAf;;EACA,IAAIC,IAAJ,EAAU;IACRF,KAAK,CAACE,IAAN,GAAaA,IAAb;EACD;;EAEDF,KAAK,CAACG,OAAN,GAAgBA,OAAhB;EACAH,KAAK,CAACI,QAAN,GAAiBA,QAAjB;EACAJ,KAAK,CAACK,YAAN,GAAqB,IAArB;;EAEAL,KAAK,CAACM,MAAN,GAAe,YAAW;IACxB,OAAO;MACL;MACAC,OAAO,EAAE,KAAKA,OAFT;MAGLC,IAAI,EAAE,KAAKA,IAHN;MAIL;MACAC,WAAW,EAAE,KAAKA,WALb;MAMLC,MAAM,EAAE,KAAKA,MANR;MAOL;MACAC,QAAQ,EAAE,KAAKA,QARV;MASLC,UAAU,EAAE,KAAKA,UATZ;MAULC,YAAY,EAAE,KAAKA,YAVd;MAWLC,KAAK,EAAE,KAAKA,KAXP;MAYL;MACAb,MAAM,EAAE,KAAKA,MAbR;MAcLC,IAAI,EAAE,KAAKA;IAdN,CAAP;EAgBD,CAjBD;;EAkBA,OAAOF,KAAP;AACD,CA7BD"},"metadata":{},"sourceType":"script"}