Skip to content

Commit 8402bf7

Browse files
committed
Fix Infinity Recursion
1 parent 1f49556 commit 8402bf7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32136,7 +32136,7 @@ __webpack_unused_export__ = setGlobalDispatcher
3213632136
__webpack_unused_export__ = getGlobalDispatcher
3213732137

3213832138
const fetchImpl = (__nccwpck_require__(730).fetch)
32139-
__webpack_unused_export__ = async function fetch (init, options = undefined) {
32139+
module.exports.he = async function fetch (init, options = undefined) {
3214032140
try {
3214132141
return await fetchImpl(init, options)
3214232142
} catch (err) {
@@ -62243,7 +62243,7 @@ function fetchWithRetry(url, options, retries = 3) {
6224362243
let lastError;
6224462244
for (let i = 0; i < retries; i++) {
6224562245
try {
62246-
const res = await fetchWithRetry(url, options);
62246+
const res = await (0,undici/* fetch */.he)(url, options);
6224762247
if (res.ok) return resolve(res);
6224862248
lastError = new Error(`HTTP ${res.status} ${res.statusText}`);
6224962249
} catch (error) {

src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function fetchWithRetry(url, options, retries = 3) {
5757
let lastError;
5858
for (let i = 0; i < retries; i++) {
5959
try {
60-
const res = await fetchWithRetry(url, options);
60+
const res = await fetch(url, options);
6161
if (res.ok) return resolve(res);
6262
lastError = new Error(`HTTP ${res.status} ${res.statusText}`);
6363
} catch (error) {

0 commit comments

Comments
 (0)