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

opencv4nodejs-prebuilt-install

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencv4nodejs-prebuilt-install - npm Package Compare versions

Comparing version 4.1.145 to 4.1.146

31

lib/opencv4nodejs.js

@@ -1,17 +0,28 @@

const promisify = require('./promisify');
const extendWithJsSources = require('./src');
const promisify = require("./promisify");
const extendWithJsSources = require("./src");
const isElectronWebpack =
// assume module required by webpack if no system path inv envs
!process.env.path
!process.env.path &&
// detect if electron https://github.com/electron/electron/issues/2288
&& global.window && global.window.process && global.window.process.type
&& global.navigator && ((global.navigator.userAgent || '').toLowerCase().indexOf(' electron/') > -1)
global.window &&
global.window.process &&
global.window.process.type &&
global.navigator &&
(global.navigator.userAgent || "").toLowerCase().indexOf(" electron/") > -1;
let cv = isElectronWebpack ? require('../build/Release/opencv4nodejs.node') : require('./cv')
let cv;
// promisify async methods
cv = promisify(cv);
cv = extendWithJsSources(cv);
try {
cv = isElectronWebpack
? require("../build/Release/opencv4nodejs.node")
: require("./cv");
module.exports = cv;
// promisify async methods
cv = promisify(cv);
cv = extendWithJsSources(cv);
} catch (err) {
console.log(err.message);
}
module.exports = cv;
{
"name": "opencv4nodejs-prebuilt-install",
"version": "4.1.145",
"version": "4.1.146",
"description": "Asynchronous OpenCV 4.x nodejs bindings with JavaScript and TypeScript API.",

@@ -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