refactor: use versions.js from deno.com instead of github
This commit is contained in:
parent
d114c5eb74
commit
570ce83235
@ -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.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user