Skip to content

Commit

Permalink
Discard changes to package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Jul 31, 2023
1 parent 3a4c11a commit 8071482
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 31 deletions.
63 changes: 33 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/engines/quickjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ class QuickJSInstaller extends Installer {

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

0 comments on commit 8071482

Please sign in to comment.