electron-workers
Advanced tools
Comparing version 1.6.0-rc1 to 1.6.0-rc2
@@ -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 @@ } |
{ | ||
"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', |
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
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
47365
796
187