Comparing version 2.3.10-beta.2 to 2.3.10-beta.3
{ | ||
"name": "koffi", | ||
"version": "2.3.10-beta.2", | ||
"version": "2.3.10-beta.3", | ||
"stable": "2.3.9", | ||
@@ -5,0 +5,0 @@ "description": "Fast and simple C FFI (foreign function interface) for Node.js", |
@@ -303,13 +303,11 @@ // Copyright 2023 Niels Martignène <niels.martignene@protonmail.com> | ||
if (pkg.cnoke.require != null) { | ||
let binary_filename = expand_path(pkg.cnoke.require); | ||
let require_filename = expand_path(pkg.cnoke.require); | ||
if (!tools.path_is_absolute(binary_filename)) | ||
binary_filename = path.join(package_dir, binary_filename); | ||
if (!tools.path_is_absolute(require_filename)) | ||
require_filename = path.join(package_dir, require_filename); | ||
if (fs.existsSync(binary_filename)) { | ||
let proc = spawnSync(process.execPath, ['-e', 'require(process.argv[1])', binary_filename]); | ||
if (fs.existsSync(require_filename)) { | ||
let proc = spawnSync(process.execPath, ['-e', 'require(process.argv[1])', require_filename]); | ||
if (proc.status === 0) | ||
return true; | ||
fs.unlinkSync(binary_filename); | ||
} | ||
@@ -316,0 +314,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 21 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 21 instances in 1 package
17313761
6446