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

browserstack-workers

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserstack-workers - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

lib/job.js

@@ -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",

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