test-agent
Advanced tools
Comparing version 0.5.4 to 0.6.0
@@ -0,1 +1,5 @@ | ||
# 0.6.0 | ||
- Added new option and enhancement to server that will | ||
timeout if a specific event is not fired within a fixed amount of time. | ||
# 0.5.4 | ||
@@ -2,0 +6,0 @@ - Fixed ws constructor bug introduced by 0.5.3 |
@@ -38,2 +38,10 @@ var server = new (require('../websocket-server')), | ||
option('event-timeout', { | ||
desc: 'Sets the timeout for the wait-for-event must be used with wait-for-event' | ||
}). | ||
option('wait-for-event', { | ||
desc: 'Event to wait for if event is not fied in "event-timeout" server will exit' | ||
}). | ||
option('port', { | ||
@@ -93,2 +101,9 @@ alias: 'p', | ||
if(argv['wait-for-event'] && argv['event-timeout']) { | ||
server.use(Enhancements.EventOrTimeout, { | ||
event: argv['wait-for-event'], | ||
timeout: parseInt(argv['event-timeout']) | ||
}); | ||
} | ||
//so enhancements can add options | ||
@@ -95,0 +110,0 @@ if(argv.help){ |
@@ -9,3 +9,4 @@ module.exports = exports = { | ||
EventMirror: require('./event-mirror'), | ||
EventOrTimeout: require('./event-or-timeout'), | ||
Suite: require('./suite') | ||
}; |
{ | ||
"name": "test-agent", | ||
"version": "0.5.4", | ||
"version": "0.6.0", | ||
"author": "James Lal", | ||
@@ -5,0 +5,0 @@ "description": "execute client side tests from browser report back to cli", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
24
298867
59
10562