✨ 🔧 Update npm + login page
This commit is contained in:
27
node_modules/axios/dist/browser/axios.cjs
generated
vendored
27
node_modules/axios/dist/browser/axios.cjs
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Axios v1.6.5 Copyright (c) 2024 Matt Zabriskie and contributors
|
||||
// Axios v1.6.6 Copyright (c) 2024 Matt Zabriskie and contributors
|
||||
'use strict';
|
||||
|
||||
function bind(fn, thisArg) {
|
||||
@@ -2658,7 +2658,7 @@ function mergeConfig(config1, config2) {
|
||||
return config;
|
||||
}
|
||||
|
||||
const VERSION = "1.6.5";
|
||||
const VERSION = "1.6.6";
|
||||
|
||||
const validators$1 = {};
|
||||
|
||||
@@ -2773,7 +2773,28 @@ class Axios {
|
||||
*
|
||||
* @returns {Promise} The Promise to be fulfilled
|
||||
*/
|
||||
request(configOrUrl, config) {
|
||||
async request(configOrUrl, config) {
|
||||
try {
|
||||
return await this._request(configOrUrl, config);
|
||||
} catch (err) {
|
||||
const dummy = {};
|
||||
if (Error.captureStackTrace) {
|
||||
Error.captureStackTrace(dummy);
|
||||
} else {
|
||||
dummy.stack = new Error().stack;
|
||||
}
|
||||
// slice off the Error: ... line
|
||||
dummy.stack = dummy.stack.replace(/^.+\n/, '');
|
||||
// match without the 2 top stack lines
|
||||
if (!err.stack.endsWith(dummy.stack.replace(/^.+\n.+\n/, ''))) {
|
||||
err.stack += '\n' + dummy.stack;
|
||||
}
|
||||
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
_request(configOrUrl, config) {
|
||||
/*eslint no-param-reassign:0*/
|
||||
// Allow for axios('example/url'[, config]) a la fetch API
|
||||
if (typeof configOrUrl === 'string') {
|
||||
|
||||
2
node_modules/axios/dist/browser/axios.cjs.map
generated
vendored
2
node_modules/axios/dist/browser/axios.cjs.map
generated
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user