Add support for nightly alias

This commit is contained in:
Shivam Mathur
2021-09-06 11:58:31 +05:30
parent 8eebeae48a
commit d068c17d9e
4 changed files with 4 additions and 2 deletions

2
dist/index.js vendored
View File

@ -965,7 +965,7 @@ exports.getManifestURL = getManifestURL;
async function parseVersion(version) {
const manifest = await getManifestURL();
switch (true) {
case /^(latest|\d+\.x)$/.test(version):
case /^(latest|nightly|\d+\.x)$/.test(version):
return JSON.parse((await fetch(manifest))['data'])[version];
default:
switch (true) {