We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd4fbc5 commit 17e8ddaCopy full SHA for 17e8dda
1 file changed
src/engines/xs.js
@@ -31,10 +31,9 @@ class XSInstaller extends Installer {
31
32
static async resolveVersion(version) {
33
if (version === 'latest') {
34
- const body = await fetch('https://github.com/Moddable-OpenSource/moddable-xst/releases')
35
- .then((r) => r.text());
36
- const match = /href="\/Moddable-OpenSource\/moddable-xst\/releases\/tag\/v([^"]+)">/.exec(body);
37
- return match[1];
+ const body = await fetch('https://api.github.com/repos/Moddable-OpenSource/moddable-xst/releases')
+ .then((r) => r.json());
+ return body.find((b) => !b.prerelease).tag_name.slice(1);
38
}
39
return version;
40
0 commit comments