Skip to content

Commit f975c10

Browse files
chore(release): 1.3.50 [skip ci]
1 parent 1ddc4ec commit f975c10

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

dist/index.js

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5485,6 +5485,7 @@ var preservedUrlFields = [
54855485
"protocol",
54865486
"query",
54875487
"search",
5488+
"hash",
54885489
];
54895490

54905491
// Create handlers that pass events from native requests
@@ -32172,7 +32173,7 @@ module.exports = parseParams
3217232173
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
3217332174

3217432175
"use strict";
32175-
// Axios v1.6.5 Copyright (c) 2024 Matt Zabriskie and contributors
32176+
// Axios v1.6.6 Copyright (c) 2024 Matt Zabriskie and contributors
3217632177

3217732178

3217832179
const FormData$1 = __nccwpck_require__(2220);
@@ -34196,7 +34197,7 @@ function buildFullPath(baseURL, requestedURL) {
3419634197
return requestedURL;
3419734198
}
3419834199

34199-
const VERSION = "1.6.5";
34200+
const VERSION = "1.6.6";
3420034201

3420134202
function parseProtocol(url) {
3420234203
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -34709,12 +34710,12 @@ const supportedProtocols = platform.protocols.map(protocol => {
3470934710
*
3471034711
* @returns {Object<string, any>}
3471134712
*/
34712-
function dispatchBeforeRedirect(options) {
34713+
function dispatchBeforeRedirect(options, responseDetails) {
3471334714
if (options.beforeRedirects.proxy) {
3471434715
options.beforeRedirects.proxy(options);
3471534716
}
3471634717
if (options.beforeRedirects.config) {
34717-
options.beforeRedirects.config(options);
34718+
options.beforeRedirects.config(options, responseDetails);
3471834719
}
3471934720
}
3472034721

@@ -36044,7 +36045,28 @@ class Axios {
3604436045
*
3604536046
* @returns {Promise} The Promise to be fulfilled
3604636047
*/
36047-
request(configOrUrl, config) {
36048+
async request(configOrUrl, config) {
36049+
try {
36050+
return await this._request(configOrUrl, config);
36051+
} 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;
36063+
}
36064+
36065+
throw err;
36066+
}
36067+
}
36068+
36069+
_request(configOrUrl, config) {
3604836070
/*eslint no-param-reassign:0*/
3604936071
// Allow for axios('example/url'[, config]) a la fetch API
3605036072
if (typeof configOrUrl === 'string') {

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.49",
3+
"version": "1.3.50",
44
"private": true,
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)