@u4/opencv-build
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -338,3 +338,3 @@ "use strict"; | ||
if (!this.no_autobuild && opts.prebuild) { | ||
let builds = OpenCVBuildEnv.listBuild(this.rootDir); | ||
const builds = OpenCVBuildEnv.listBuild(this.rootDir); | ||
if (!builds.length) { | ||
@@ -351,8 +351,8 @@ throw Error(`No build found in ${this.rootDir} you should launch opencv-build-npm once`); | ||
*/ | ||
if (buildV.length) | ||
builds = buildV; | ||
if (!builds.length) { | ||
throw Error(`No build of version ${expVer} found in ${this.rootDir} you should launch opencv-build-npm`); | ||
// if (buildV.length) | ||
// builds = buildV; | ||
if (!buildV.length) { | ||
throw Error(`No build of version ${expVer} found in ${this.rootDir} you should launch opencv-build-npm Available versions are: ${builds.map(b => b.buildInfo.opencvVersion).join(', ')}`); | ||
} | ||
if (builds.length > 1) { | ||
if (buildV.length > 1) { | ||
switch (opts.prebuild) { | ||
@@ -359,0 +359,0 @@ case 'latestBuild': |
@@ -333,3 +333,3 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
if (!this.no_autobuild && opts.prebuild) { | ||
let builds = OpenCVBuildEnv.listBuild(this.rootDir); | ||
const builds = OpenCVBuildEnv.listBuild(this.rootDir); | ||
if (!builds.length) { | ||
@@ -346,8 +346,8 @@ throw Error(`No build found in ${this.rootDir} you should launch opencv-build-npm once`); | ||
*/ | ||
if (buildV.length) | ||
builds = buildV; | ||
if (!builds.length) { | ||
throw Error(`No build of version ${expVer} found in ${this.rootDir} you should launch opencv-build-npm`); | ||
// if (buildV.length) | ||
// builds = buildV; | ||
if (!buildV.length) { | ||
throw Error(`No build of version ${expVer} found in ${this.rootDir} you should launch opencv-build-npm Available versions are: ${builds.map(b => b.buildInfo.opencvVersion).join(', ')}`); | ||
} | ||
if (builds.length > 1) { | ||
if (buildV.length > 1) { | ||
switch (opts.prebuild) { | ||
@@ -354,0 +354,0 @@ case 'latestBuild': |
{ | ||
"name": "@u4/opencv-build", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "A simple script to auto build recent OpenCV + contrib version via npm 2022 Edition", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
359181
65