refactor: use versions.js from deno.com instead of github (#45)

This commit is contained in:
Leo Kettmeir
2023-05-01 14:14:43 +02:00
committed by GitHub
parent d114c5eb74
commit b41525049b
2 changed files with 2 additions and 4 deletions

View File

@@ -60,9 +60,7 @@ async function resolveVersion({ range, isCanary }) {
return { version: range, isCanary: true };
}
const res = await fetch(
"https://raw.githubusercontent.com/denoland/dotland/main/versions.json",
);
const res = await fetch("https://deno.com/versions.json");
if (res.status !== 200) {
throw new Error(
"Failed to fetch stable version info from raw.githubusercontent.com. Please try again later.",