node-native-ocr
Advanced tools
Comparing version 0.3.1 to 0.3.6
{ | ||
"name": "node-native-ocr", | ||
"version": "0.3.1", | ||
"version": "0.3.6", | ||
"description": "Native Node.js bindings for the Tesseract OCR project.", | ||
@@ -5,0 +5,0 @@ "gypfile": true, |
@@ -1,5 +0,5 @@ | ||
var fs = require('fs'); | ||
const { join } = require('path'); | ||
var path = require('path'); | ||
var shell = require('shelljs'); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const shell = require('shelljs'); | ||
const process = require("process"); | ||
@@ -11,3 +11,3 @@ const requiredCMakeVersion = '3.15'; | ||
const commonEnvVariables = { | ||
let commonEnvVariables = { | ||
CMAKE_BUILD_TYPE: cmakeBuildType, | ||
@@ -22,2 +22,19 @@ CMAKE_INSTALL_PREFIX: '${PWD}/bin', | ||
const buildForArch = process.env["BUILD_FOR_ARCH"] || process.arch; | ||
shell.echo('buildForArch', buildForArch); | ||
if (buildForArch === 'arm64') { | ||
shell.echo('arm64 build'); | ||
commonEnvVariables = { | ||
...commonEnvVariables, | ||
CMAKE_OSX_ARCHITECTURES: '\"arm64\"' | ||
} | ||
} else if (buildForArch === 'x64') { | ||
shell.echo('x64 build'); | ||
commonEnvVariables = { | ||
...commonEnvVariables, | ||
CMAKE_OSX_ARCHITECTURES: '\"x86_64\"' | ||
} | ||
} | ||
// ------ startup ------ | ||
@@ -24,0 +41,0 @@ shell.echo('build-tesseract script start.'); |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
81914636
346
6
2