Comparing version 0.3.2 to 0.3.3
{ | ||
"name": "nnocr", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"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"); | ||
@@ -21,3 +21,7 @@ const requiredCMakeVersion = '3.15'; | ||
if (process.arch === 'arm64') { | ||
const buildForArch = process.env["BUILD_FOR_ARCH"]; | ||
shell.echo('buildForArch', buildForArch); | ||
if (buildForArch === 'arm64') { | ||
shell.echo('arm64 build'); | ||
commonEnvVariables = { | ||
@@ -27,3 +31,4 @@ ...commonEnvVariables, | ||
} | ||
} else { | ||
} else if (buildForArch === 'x64') { | ||
shell.echo('x64 build'); | ||
commonEnvVariables = { | ||
@@ -30,0 +35,0 @@ ...commonEnvVariables, |
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
81914604
346
2