Skip to content

Commit

Permalink
chore: upgrade rust-toolchain to nightly-2023-02-01
Browse files Browse the repository at this point in the history
  • Loading branch information
yisibl committed Feb 7, 2023
1 parent 894f7df commit b3b30d0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions js-binding.js
Expand Up @@ -11,8 +11,7 @@ function isMusl() {
// For Node 10
if (!process.report || typeof process.report.getReport !== 'function') {
try {
const lddPath = require('child_process').execSync('which ldd').toString().trim();
return readFileSync(lddPath, 'utf8').includes('musl')
return readFileSync('/usr/bin/ldd', 'utf8').includes('musl')
} catch (e) {
return true
}
Expand Down Expand Up @@ -102,15 +101,6 @@ switch (platform) {
}
break
case 'darwin':
localFileExisted = existsSync(join(__dirname, 'resvgjs.darwin-universal.node'))
try {
if (localFileExisted) {
nativeBinding = require('./resvgjs.darwin-universal.node')
} else {
nativeBinding = require('@resvg/resvg-js-darwin-universal')
}
break
} catch {}
switch (arch) {
case 'x64':
localFileExisted = existsSync(join(__dirname, 'resvgjs.darwin-x64.node'))
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
@@ -1 +1 @@
nightly-2022-06-22
nightly-2023-02-01
Binary file modified wasm/index_bg.wasm
Binary file not shown.

1 comment on commit b3b30d0

@vercel
Copy link

@vercel vercel bot commented on b3b30d0 Feb 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

resvg-js – ./

resvg-js-yisibl.vercel.app
resvg-js.vercel.app
resvg-js-git-main-yisibl.vercel.app

Please sign in to comment.