Skip to content

Commit

Permalink
revert back to original binding.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Avery committed Aug 2, 2023
1 parent 6e762d1 commit 143cd6e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions crates/bitwarden-napi/binding.js
Original file line number Diff line number Diff line change
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 @@ -96,15 +95,6 @@ switch (platform) {
}
break;
case "darwin":
localFileExisted = existsSync(join(__dirname, "sdk-napi.darwin-universal.node"));
try {
if (localFileExisted) {
nativeBinding = require("./sdk-napi.darwin-universal.node");
} else {
nativeBinding = require("@bitwarden/sdk-napi-darwin-universal");
}
break;
} catch {}
switch (arch) {
case "x64":
localFileExisted = existsSync(join(__dirname, "sdk-napi.darwin-x64.node"));
Expand Down

0 comments on commit 143cd6e

Please sign in to comment.