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.12.2 to 0.12.3

logs.txt

29

lib/index.js

@@ -178,3 +178,20 @@ // Node.js Telnet client

this.on('data', data => {
this.on('data', sendHandler)
if ((opts && opts.waitfor === undefined) || !opts) {
setTimeout(() => {
if (response === '') {
this.removeListener('data', sendHandler)
reject(new Error('response not received'))
return
}
this.removeListener('data', sendHandler)
resolve(response)
}, this.sendTimeout)
}
const self = this
function sendHandler(data) {
response += data.toString()

@@ -185,15 +202,9 @@

self.removeListener('data', sendHandler)
resolve(response)
}
})
if ((opts && opts.waitfor === undefined) || !opts) {
setTimeout(() => {
if (response === '') return reject(new Error('response not received'))
resolve(response)
}, this.sendTimeout)
}
})
}
}).asCallback(callback)

@@ -200,0 +211,0 @@ }

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

},
"version": "0.12.2",
"version": "0.12.3",
"main": "./lib/index.js",

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

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