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

telnet-client

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

telnet-client - npm Package Compare versions

Comparing version 0.16.3 to 0.16.4

10

lib/index.js

@@ -76,6 +76,9 @@ 'use strict'

/* if cannot connect, emit error and destroy */
this.emit('error', 'Cannot connect')
if (this.listeners('error').length > 0)
this.emit('error', 'Cannot connect')
this.socket.destroy()
return reject(new Error('Cannot connect'))
}
else this.emit('timeout')
this.emit('timeout')
return reject(new Error('timeout'))
})

@@ -95,3 +98,4 @@

this.socket.on('error', error => {
this.emit('error', error)
if (this.listeners('error').length > 0)
this.emit('error', error)
})

@@ -98,0 +102,0 @@

@@ -8,3 +8,3 @@ {

},
"version": "0.16.3",
"version": "0.16.4",
"main": "./lib/index.js",

@@ -11,0 +11,0 @@ "engine": "node >= 6.9.1",

@@ -1,2 +0,2 @@

var telnet = process.env.NODETELNETCLIENT_COV
var telnet = process.env.NODETELNETCLIENT_COV
? require('../lib-cov/index')

@@ -27,3 +27,3 @@ : require('../lib/index')

})
srv.listen(2323, function() {

@@ -30,0 +30,0 @@ callback()

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