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

opencv4nodejs

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencv4nodejs - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

20

lib/utils.js

@@ -31,7 +31,8 @@ const fs = require('fs');

const libSuffixOSX = '.dylib';
const libSuffix = process.platform === 'win32' ? '.lib' : '.so';
const defaultDir = '/usr/local';
const opencvDir = resolvePath(process.env.OPENCV_DIR);
let includeDir = resolvePath(process.env.OPENCV_INCLUDE_DIR);
const libSuffix = process.platform === 'win32' ? '.lib' : '.so';
let libDir = resolvePath(process.env.OPENCV_LIB_DIR);

@@ -80,4 +81,13 @@

if (err) throw(err);
const libsInDir = files.filter(f => f.includes(libSuffix));
let libsInDir = files.filter(f => f.includes(libSuffix));
// quickfix for libs on OSX
if (!libsInDir.length) {
libsInDir = files.filter(f => f.includes(libSuffixOSX));
}
if (!libsInDir.length) {
throw new Error(`no valid .so, .lib or .dylib files found in in OPENCV_LIB_DIR ('${libDir}')`);
}
// if modules bundled in single lib file

@@ -92,6 +102,2 @@ const world = libsInDir.find(file => file.includes('world'));

if (!libsInDir.length) {
throw new Error(`no valid '${libSuffix}' files found in in OPENCV_LIB_DIR ('${libDir}')`);
}
const libs = [];

@@ -98,0 +104,0 @@ modules.forEach(m => {

{
"name": "opencv4nodejs",
"version": "1.4.2",
"version": "1.4.3",
"description": "Transparent OpenCV API for nodejs.",

@@ -5,0 +5,0 @@ "keywords": [

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