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

electron-workers

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-workers - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

9

lib/ElectronManager.js

@@ -198,2 +198,7 @@

var error = new Error();
error.workerTimeout = true;
error.message = 'Worker Timeout, the worker process does not respond after ' + workerTimeout + 'ms';
cb(error);
// mark worker as busy before recycling

@@ -205,6 +210,2 @@ worker.isBusy = true;

worker.recycle(function () {
var error = new Error();
error.message = 'Worker Timeout, the worker process does not respond after ' + workerTimeout + 'ms';
cb(error);
// mark worker as free after recycling

@@ -211,0 +212,0 @@ worker.isBusy = false;

@@ -220,5 +220,4 @@ 'use strict';

this._childProcess = undefined;
this.start(cb);
}
this.start(cb);
};

@@ -225,0 +224,0 @@

{
"name": "electron-workers",
"version": "1.1.0",
"version": "1.2.0",
"description": "Run electron scripts in managed workers",

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

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

@@ -13,0 +13,0 @@ },

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