New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

libmagic-ffi

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libmagic-ffi - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

9

build/libmagic.js

@@ -30,5 +30,12 @@ "use strict";

let lastError;
const PLATFORM_SPECIFIC_SUFFIX = {
win32: '.dll',
darwin: '.dylib',
linux: '.so',
};
const dynamicLibSuffix = Reflect.get(PLATFORM_SPECIFIC_SUFFIX, process.platform) || '.so';
for (const x of [dlOpenPath, 'libmagic.1', 'libmagic']) {
const fixedName = x.toLowerCase().endsWith(dynamicLibSuffix) ? x : x + dynamicLibSuffix;
try {
sharedLib = koffi_1.default.load(x);
sharedLib = koffi_1.default.load(fixedName);
break;

@@ -35,0 +42,0 @@ }

2

package.json
{
"name": "libmagic-ffi",
"version": "0.1.0",
"version": "0.1.1",
"description": "Node bindings for libmagic using ffi",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Sorry, the diff of this file is not supported yet

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