refactor: use versions.js from deno.com instead of github

This commit is contained in:
Leo Kettmeir 2023-05-01 13:38:13 +02:00 committed by GitHub
parent d114c5eb74
commit 570ce83235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.",