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

electron-workers

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-workers - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

@@ -36,3 +36,3 @@

var numCPUs = _os2['default'].cpus().length;
var electronPath = getElectronPath();
var ELECTRON_PATH = undefined;

@@ -42,2 +42,6 @@ function getElectronPath() {

if (ELECTRON_PATH) {
return ELECTRON_PATH;
}
try {

@@ -55,2 +59,4 @@ // first try to find the electron executable if it is installed from electron-prebuilt..

ELECTRON_PATH = electron;
return electron;

@@ -74,3 +80,3 @@ }

this.options.electronArgs = this.options.electronArgs || [];
this.options.pathToElectron = this.options.pathToElectron || electronPath;
this.options.pathToElectron = this.options.pathToElectron || getElectronPath();
this.options.numberOfWorkers = this.options.numberOfWorkers || numCPUs;

@@ -77,0 +83,0 @@ this.options.timeout = this.options.timeout || 180000;

{
"name": "electron-workers",
"version": "1.0.0",
"version": "1.0.1",
"description": "Run electron scripts in managed workers",

@@ -11,3 +11,3 @@ "main": "lib/index.js",

"test": "mocha test/test.js --timeout 4000",
"prepublish": "npm-run-all lint test clean build"
"prepublish": "npm-run-all lint clean build"
},

@@ -14,0 +14,0 @@ "author": {

@@ -62,4 +62,4 @@ # electron-workers

`pathToScript` (required) - path to the electron script<br/>
`pathToElectron` - path to the electron executable, by default we will try to find the path using the value returned from `electron-prebuilt` or the value in your `$PATH`<br />
`electronArgs` Array - pass custom arguments to the electron executable. ej: `electronArgs: ['--some-value=2', '--enable-some-behaviour']`
`pathToElectron` - path to the electron executable, by default we will try to find the path using the value returned from `electron-prebuilt` or the value in your `$PATH`<br/>
`electronArgs` Array - pass custom arguments to the electron executable. ej: `electronArgs: ['--some-value=2', '--enable-some-behaviour']`<br/>
`timeout` - execution timeout in ms<br/>

@@ -66,0 +66,0 @@ `numberOfWorkers` - number of electron instances, by default it will be the number of cores in the machine<br/>

Sorry, the diff of this file is not supported yet