Comparing version 1.4.0 to 1.4.1
@@ -45,2 +45,7 @@ /** | ||
var log = []; | ||
function onOutput(data) { | ||
var message = data.toString(); | ||
log.push(message); | ||
wct.emit('log:debug', message); | ||
} | ||
@@ -57,9 +62,2 @@ var config = { | ||
// If there is an error, we want to be able to give the user all sorts | ||
// of useful output. | ||
function onOutput(data) { | ||
var message = data.toString(); | ||
log.push(message); | ||
wct.emit('log:debug', message); | ||
} | ||
server.stdout.on('data', onOutput); | ||
@@ -70,3 +68,4 @@ server.stderr.on('data', onOutput); | ||
selenium.start(config, function(error) { | ||
// Ensure that we have the latest version downloaded. | ||
selenium.install({logger: onOutput}, function(error) { | ||
if (error) { | ||
@@ -76,4 +75,10 @@ log.forEach(function(line) { wct.emit('log:info', line) }); | ||
} | ||
wct.emit('log:info', 'Selenium server running on port', chalk.yellow(port)); | ||
done(null, port); | ||
selenium.start(config, function(error) { | ||
if (error) { | ||
log.forEach(function(line) { wct.emit('log:info', line) }); | ||
return done(error); | ||
} | ||
wct.emit('log:info', 'Selenium server running on port', chalk.yellow(port)); | ||
done(null, port); | ||
}); | ||
}); | ||
@@ -80,0 +85,0 @@ }); |
{ | ||
"name": "wct-local", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "WCT plugin that enables support for local browsers via Selenium", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
15355
368