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

jute

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jute - npm Package Compare versions

Comparing version 0.0.57 to 0.0.58

4

jute_backend.js

@@ -38,3 +38,3 @@ #!/usr/bin/env node

// npm npm start jute -g 2&>1 > LOGFILE &
var sys = require('sys'),
var util = require('util'),
fs = require("fs"),

@@ -53,3 +53,3 @@ events = require("events"),

*/
sys.inherits(eventHubF, events.EventEmitter);
util.inherits(eventHubF, events.EventEmitter);
var eventHub = new eventHubF();

@@ -56,0 +56,0 @@

@@ -39,3 +39,2 @@ #!/usr/bin/env node

var fs = require('fs')
,sys = require('sys')
,YUI = require("yui3").YUI

@@ -42,0 +41,0 @@ ,http = require('http')

@@ -107,4 +107,4 @@ /*

function prune_browsers(req) {
var me = req.session.uuid,
sys = require('sys');
var me = req.session.uuid,
util = require('util');

@@ -126,3 +126,3 @@ // only check other browsers

// blow this test out!
hub.emit(hub.LOG, hub.ERROR, "Deleting this test that was part of lost browser: " + sys.inspect(test));
hub.emit(hub.LOG, hub.ERROR, "Deleting this test that was part of lost browser: " + util.inspect(test));
cache.tests_to_run.splice(i, 1);

@@ -129,0 +129,0 @@ i--; // fake a perl 'redo'!! Otherwise we might skip over something!

@@ -51,3 +51,3 @@ /*

obj = req.body,
sys = require('sys'),
util = require('util'),
tests, multipleFromUI = false,

@@ -59,3 +59,3 @@ capture = false,

hub.emit(hub.LOG, hub.INFO, 'OBJ: ' + sys.inspect(obj));
hub.emit(hub.LOG, hub.INFO, 'OBJ: ' + util.inspect(obj));
if (obj.test) {

@@ -162,9 +162,5 @@ multipleFromUI = true;

} else if (obj.phantomjs) {
if (obj.phantomjs == 1) {
obj.phantomjs = hub.config.phantomjs;
if (!obj.screen) {
obj.screen = hub.config.screen;
}
if (!obj.screen) {
obj.screen = hub.config.screen;
}
test_obj.phantomjs = obj.phantomjs;
if (obj.send_output) {

@@ -221,3 +217,3 @@ test_obj.sendOutput = 1;

common.addTestOutput(test_obj, sys.inspect(test_obj));
common.addTestOutput(test_obj, util.inspect(test_obj));
}

@@ -280,3 +276,3 @@

seleniumIDs.forEach(function(selID) {
hub.emit('action:phantomjsStart', selID, obj.phantomjs, obj.screen, req, res);
hub.emit('action:phantomjsStart', selID, obj.screen, req, res);
});

@@ -283,0 +279,0 @@ }else {

@@ -41,3 +41,2 @@ /*

var path = require('path'),
sys = require('sys'),
fs = require('fs'),

@@ -51,4 +50,5 @@ child = require('child_process'),

function startPhantomjs(selID, phantomjs, screen, req, res) {
function startPhantomjs(selID, screen, req, res) {
var cb, phantom, body = req.body,
phantomjs = hub.config.phantomjs,
url = 'http://' + (hub.config.host ? hub.config.host + ':' + hub.config.port : req.headers.host) + '/?selenium=' + selID

@@ -55,0 +55,0 @@ ;

@@ -41,3 +41,2 @@ /*

var path = require('path'),
sys = require('sys'),
fs = require('fs'),

@@ -44,0 +43,0 @@ cache = hub.cache

@@ -58,3 +58,2 @@ /*

fs = require('fs'),
sys = require('sys'),
path = require('path'),

@@ -61,0 +60,0 @@ ret = { current_results: {} };

@@ -5,3 +5,2 @@ #!/usr/bin/env node

fs = require('fs'),
sys = require('sys'),
args = opt

@@ -8,0 +7,0 @@ .usage('Usage: $0 [ --start ] [ --stop ]')

@@ -53,3 +53,2 @@ /*

os = require('os'),
sys = require('sys'),
uuid = require('node-uuid');

@@ -56,0 +55,0 @@

@@ -5,3 +5,3 @@ {

"keywords": ["selenium", "test", "testing", "unit", "tests"],
"version": "0.0.57",
"version": "0.0.58",
"author": "Mark Ethan Trostler <mark@zzo.com>",

@@ -8,0 +8,0 @@ "preferGlobal": true,

@@ -44,3 +44,3 @@ #!/usr/bin/env node

args = opt
.usage('Usage: $0 --test [testfile] [ --test [another testfile] ] [ --host [JUTE host] ] [ --port [JUTE host port] ] [ --sel_host [Selenium host] ] [ --sel_browser [Selenium browser spec] ] [ --seleniums # ] [ --load ] ] [ --send_output ] [ --wait ] [ --clear_results ] [ -v8 ] [ --status ] [ --snapshot ] [ --retry ] [ --phantomjs <path> ] [ --screen # ]')
.usage('Usage: $0 --test [testfile] [ --test [another testfile] ] [ --host [JUTE host] ] [ --port [JUTE host port] ] [ --sel_host [Selenium host] ] [ --sel_browser [Selenium browser spec] ] [ --seleniums # ] [ --load ] ] [ --send_output ] [ --wait ] [ --clear_results ] [ -v8 ] [ --status ] [ --snapshot ] [ --retry ] [ --phantomjs ] [ --screen # ]')
.alias('t', 'test')

@@ -67,2 +67,3 @@ .alias('h', 'host')

.default('load', false)
.default('phantomjs', false)
.default('clear_results', false)

@@ -90,5 +91,5 @@ .default('seleniums', 1)

.argv,
sys = require('sys'),
qs = require('querystring'),
http = require('http'),
util = require('util'),
qs = require('querystring'),
http = require('http'),
juteArgs = {};

@@ -118,3 +119,3 @@

sys.inherits(eventHubF, events.EventEmitter);
util.inherits(eventHubF, events.EventEmitter);
var eventHub = new eventHubF();

@@ -161,3 +162,3 @@

if (args.phantomjs) {
juteArgs.phantomjs = args.phantomjs;
juteArgs.phantomjs = 1;
juteArgs.screen = args.screen;

@@ -186,3 +187,3 @@ }

// See what we got
console.log('Submitting ' + sys.inspect(juteArgs) + ' to ' + args.host);
console.log('Submitting ' + util.inspect(juteArgs) + ' to ' + args.host);

@@ -189,0 +190,0 @@ // POST AWAY!

module.exports = (function() {
var events = require("events"),
sys = require("sys"),
util = require("util"),
eventHubF = function() { events.EventEmitter.call(this); this.LOG = 'log'; this.ERROR = 'error'; this.INFO = 'info'; this.DEBUG = 'debug'; },
hub;
sys.inherits(eventHubF, events.EventEmitter);
util.inherits(eventHubF, events.EventEmitter);
hub = new eventHubF();

@@ -10,0 +10,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