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

@u4/opencv-build

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@u4/opencv-build - npm Package Compare versions

Comparing version 0.5.1 to 0.5.3

4

lib/misc.d.ts

@@ -79,6 +79,2 @@ /**

/**
* list of variables needed to link and use openCV
*/
export declare const OPENCV_PATHS_ENV_args: readonly ["binDir", "incDir", "libDir"];
/**
* arguments data

@@ -85,0 +81,0 @@ * key must be === arg

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultEnabledModules = exports.ALL_OPENCV_MODULES = exports.args2Option = exports.genHelp = exports.ALLARGS = exports.OPENCV_PATHS_ENV_args = exports.OPENCV_PATHS_ENV = void 0;
exports.defaultEnabledModules = exports.ALL_OPENCV_MODULES = exports.args2Option = exports.genHelp = exports.ALLARGS = exports.OPENCV_PATHS_ENV = void 0;
/**

@@ -9,6 +9,2 @@ * list of variables needed to link and use openCV

/**
* list of variables needed to link and use openCV
*/
exports.OPENCV_PATHS_ENV_args = ['binDir', 'incDir', 'libDir'];
/**
* arguments data

@@ -15,0 +11,0 @@ * key must be === arg

7

lib/OpenCVBuildEnv.js

@@ -199,6 +199,7 @@ "use strict";

__classPrivateFieldSet(this, _OpenCVBuildEnv_ready, true, "f");
for (const varname of misc_1.OPENCV_PATHS_ENV_args) {
const value = this.resolveValue(misc_1.ALLARGS[varname]);
for (const varname of ['binDir', 'incDir', 'libDir']) {
const varname2 = varname;
const value = this.resolveValue(misc_1.ALLARGS[varname2]);
if (value && process.env[varname] !== value) {
process.env[varname] = value;
process.env[misc_1.ALLARGS[varname2].env] = value;
}

@@ -205,0 +206,0 @@ }

@@ -84,2 +84,3 @@ "use strict";

npmlog_1.default.info('install', `${utils.highlight('OPENCV4NODEJS_DISABLE_AUTOBUILD')} is set skipping auto build...`);
new setupOpencv_js_1.SetupOpencv(this).writeAutoBuildFile(true);
return;

@@ -86,0 +87,0 @@ }

import { OpenCVBuilder } from './OpenCVBuilder.js';
import type { AutoBuildFile } from './types.js';
export declare class SetupOpencv {

@@ -14,3 +15,3 @@ private readonly builder;

*/
private writeAutoBuildFile;
writeAutoBuildFile(overwrite: boolean): AutoBuildFile;
private execLog;

@@ -17,0 +18,0 @@ /**

@@ -97,3 +97,3 @@ "use strict";

*/
writeAutoBuildFile() {
writeAutoBuildFile(overwrite) {
const env = this.builder.env;

@@ -108,2 +108,8 @@ const autoBuildFile = {

// log.info('install', JSON.stringify(autoBuildFile))
fs_1.default.mkdirSync(env.opencvRoot, { recursive: true });
if (!overwrite) {
const old = env.readAutoBuildFile();
if (old)
return old;
}
fs_1.default.writeFileSync(env.autoBuildFile, JSON.stringify(autoBuildFile, null, 4));

@@ -216,3 +222,3 @@ return autoBuildFile;

if (!env.dryRun) {
this.writeAutoBuildFile();
this.writeAutoBuildFile(true);
}

@@ -219,0 +225,0 @@ else {

{
"name": "@u4/opencv-build",
"version": "0.5.1",
"version": "0.5.3",
"description": "A simple script to auto build recent OpenCV + contrib version via npm 2022 Edition",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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