Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koffi

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koffi - npm Package Compare versions

Comparing version 2.3.10-beta.2 to 2.3.10-beta.3

build/2.3.10-beta.3/koffi_darwin_arm64/koffi.node

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc