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

test-agent

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-agent - npm Package Compare versions

Comparing version 0.5.4 to 0.6.0

lib/node/server/event-or-timeout.js

4

HISTORY.md

@@ -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')
};

2

package.json
{
"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",

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