Skip to content

Commit

Permalink
[chore] update deps
Browse files Browse the repository at this point in the history
Zagrios committed Mar 20, 2024
1 parent 64f3fee commit f7b5b23
Showing 6 changed files with 2,514 additions and 3,238 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -195,3 +195,7 @@ Cargo.lock
!.yarn/versions

*.node

#IDEs
.idea
.vscode
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -8,12 +8,12 @@ crate-type = ["cdylib"]

[dependencies]
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.14.1", default-features = false, features = ["napi4", "async"] }
napi-derive = "2.14.2"
napi = { version = "2.16.0", default-features = false, features = ["napi4", "async"] }
napi-derive = "2.16.0"
winreg = "0.52.0"

[build-dependencies]
napi-build = "2.1.0"
napi-build = "2.1.2"

[profile.release]
lto = true
14 changes: 14 additions & 0 deletions js-binding.js
Original file line number Diff line number Diff line change
@@ -266,6 +266,20 @@ switch (platform) {
}
}
break
case 's390x':
localFileExisted = existsSync(
join(__dirname, 'regedit-rs.linux-s390x-gnu.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./regedit-rs.linux-s390x-gnu.node')
} else {
nativeBinding = require('regedit-rs-linux-s390x-gnu')
}
} catch (e) {
loadError = e
}
break
default:
throw new Error(`Unsupported architecture on Linux: ${arch}`)
}
Loading

0 comments on commit f7b5b23

Please sign in to comment.