Skip to content

Commit ab24a41

Browse files
committed
Discard changes to package-lock.json
1 parent 3a4c11a commit ab24a41

File tree

2 files changed

+36
-31
lines changed

2 files changed

+36
-31
lines changed

package-lock.json

Lines changed: 33 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/engines/quickjs.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ class QuickJSInstaller extends Installer {
3232

3333
static resolveVersion(version) {
3434
if (['darwin-arm64', 'darwin-x64', 'linux-arm64'].includes(platform)) {
35-
return '6.0.0';
35+
return fetch('https://api.github.com/repos/napi-bindings/quickjs-build/releases')
36+
.then((r) => r.json())
37+
.then((b) => b[0].tag_name);
3638
}
3739
if (version === 'latest') {
3840
return fetch('https://bellard.org/quickjs/binary_releases/LATEST.json')

0 commit comments

Comments
 (0)