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.6.0-rc1 to 1.6.0-rc2

4

lib/ElectronWorker.js

@@ -186,2 +186,6 @@ 'use strict';

if (payload.error) {
return callback(new Error(payload.error.message || 'An error has occurred when trying to process the task'));
}
callback(null, responseData);

@@ -188,0 +192,0 @@ }

2

package.json
{
"name": "electron-workers",
"version": "1.6.0-rc1",
"version": "1.6.0-rc2",
"description": "Run electron scripts in managed workers",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -38,2 +38,3 @@ # electron-workers

var server = http.createServer(function(req, res) {
// You can respond with a status `500` if you want to indicate that something went wrong
res.writeHead(200, {'Content-Type': 'application/json'});

@@ -111,3 +112,4 @@ // data passed to `electronWorkers.execute` will be available in req body

// when the task has been processed,
// respond with a `taskResponse` event, the `taskId` that you have received, and a custom `response`
// respond with a `taskResponse` event, the `taskId` that you have received, and a custom `response`.
// You can specify an `error` field if you want to indicate that something went wrong
process.send({

@@ -114,0 +116,0 @@ workerEvent: 'taskResponse',

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