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

node-native-ocr

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-native-ocr - npm Package Compare versions

Comparing version 0.3.1 to 0.3.6

2

package.json
{
"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

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