Skip to content

Commit

Permalink
Update checkForUpdates.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanKolnik committed Oct 27, 2023
1 parent ea85a13 commit 0de4e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-src/lib/checkForUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default async function checkForUpdates(ctx: InitialContext) {
}

const pkgUrl = new URL(ctx.pkg.name, registryUrl).href;
const res = await withTimeout(ctx.http.fetch(pkgUrl), 5000); // If not fetched within 5 seconds, nevermind.
const res = await withTimeout(ctx.http.fetch(pkgUrl), 30000); // If not fetched within 30 seconds, nevermind.
const { 'dist-tags': distTags = {} } = (await res.json()) as any;
if (!semver.valid(distTags.latest)) {
ctx.log.warn(`Invalid dist-tag 'latest' returned from registry; skipping update check`);
Expand Down

0 comments on commit 0de4e4f

Please sign in to comment.