feat: update for Deno 2 (#2655)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Marvin Hagemeister
2024-09-30 18:30:30 +02:00
committed by GitHub
co-authored by Luca Casonato
parent b5389f69a3
commit de8f1b0c59
32 changed files with 3836 additions and 3194 deletions
+2 -1
View File
@@ -105,10 +105,11 @@ export async function updateCheck(
checkFile.latest_version = await getLatestVersion();
checkFile.last_checked = new Date().toISOString();
} catch (err) {
const message = err instanceof Error ? err.message : String(err);
// Update check is optional and shouldn't abort the program.
// deno-lint-ignore no-console
console.error(
colors.red(` Update check failed: `) + err.message,
colors.red(` Update check failed: `) + message,
);
return;
}