Skip to content

Commit 45831b2

Browse files
chore(release): 1.3.51 [skip ci]
1 parent 3175723 commit 45831b2

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

dist/index.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3217932179
const 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

3420234199
function 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;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wayback",
3-
"version": "1.3.50",
3+
"version": "1.3.51",
44
"private": true,
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)