browserstack-workers
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -43,3 +43,3 @@ var Browser = require('./browser'), | ||
Job.prototype.onData = function (uuid, browser, result) { | ||
Job.prototype.onData = function (uuid, browser, req, res) { | ||
var that = this; | ||
@@ -61,3 +61,3 @@ | ||
console.log('INFO: Received results for %s. Shutting down worker %s', worker.browser, worker.identifier); | ||
that.emit('end', worker.browser, result); | ||
that.emit('end', worker.browser, req, res); | ||
this.client.stopWorker(worker.identifier, function () { | ||
@@ -64,0 +64,0 @@ worker.status = 'terminated'; |
@@ -27,12 +27,4 @@ var express = require('express'), | ||
uuid = req.query['uuid']; | ||
if (browser && uuid) { | ||
res.send(200); | ||
} else { | ||
res.send(400, 'ERROR: Job has an invalid uuid or browser'); | ||
} | ||
} else { | ||
res.send(400, 'ERROR: Job does not have a uuid or browser'); | ||
} | ||
that.emit('data', uuid, browser, req); | ||
that.emit('data', uuid, browser, req, res); | ||
}); | ||
@@ -39,0 +31,0 @@ |
{ | ||
"name": "browserstack-workers", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A library for creating workers on BrowserStack and retrieving results", | ||
@@ -5,0 +5,0 @@ "main": "lib/client.js", |
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
13665
321