@@ -32173,7 +32173,7 @@ module.exports = parseParams
3217332173/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
3217432174
3217532175"use strict";
32176- // Axios v1.6.6 Copyright (c) 2024 Matt Zabriskie and contributors
32176+ // Axios v1.6.7 Copyright (c) 2024 Matt Zabriskie and contributors
3217732177
3217832178
3217932179const FormData$1 = __nccwpck_require__(2220);
@@ -33629,9 +33629,6 @@ const defaults = {
3362933629 const isFormData = utils$1.isFormData(data);
3363033630
3363133631 if (isFormData) {
33632- if (!hasJSONContentType) {
33633- return data;
33634- }
3363533632 return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
3363633633 }
3363733634
@@ -34197,7 +34194,7 @@ function buildFullPath(baseURL, requestedURL) {
3419734194 return requestedURL;
3419834195}
3419934196
34200- const VERSION = "1.6.6 ";
34197+ const VERSION = "1.6.7 ";
3420134198
3420234199function parseProtocol(url) {
3420334200 const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -36049,17 +36046,20 @@ class Axios {
3604936046 try {
3605036047 return await this._request(configOrUrl, config);
3605136048 } catch (err) {
36052- const dummy = {};
36053- if (Error.captureStackTrace) {
36054- Error.captureStackTrace(dummy);
36055- } else {
36056- dummy.stack = new Error().stack;
36057- }
36058- // slice off the Error: ... line
36059- dummy.stack = dummy.stack.replace(/^.+\n/, '');
36060- // match without the 2 top stack lines
36061- if (!err.stack.endsWith(dummy.stack.replace(/^.+\n.+\n/, ''))) {
36062- err.stack += '\n' + dummy.stack;
36049+ if (err instanceof Error) {
36050+ let dummy;
36051+
36052+ Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());
36053+
36054+ // slice off the Error: ... line
36055+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
36056+
36057+ if (!err.stack) {
36058+ err.stack = stack;
36059+ // match without the 2 top stack lines
36060+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
36061+ err.stack += '\n' + stack;
36062+ }
3606336063 }
3606436064
3606536065 throw err;
0 commit comments