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.4 to 1.0.0

1

lib/index.js

@@ -78,2 +78,3 @@ 'use strict'

this.emit('error', 'Cannot connect')
this.socket.destroy()

@@ -80,0 +81,0 @@ return reject(new Error('Cannot connect'))

2

package.json

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

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

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

@@ -39,3 +39,7 @@ [![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/mkozjak/node-telnet-client/blob/master/LICENSE)

await connection.connect(params)
try {
await connection.connect(params)
} catch(error) {
// handle the throw (timeout)
}

@@ -104,2 +108,5 @@ let res = await connection.exec('uptime')

})
.catch(function(error) {
// handle the throw (timeout)
})
```

@@ -125,3 +132,7 @@

co(function*() {
yield connection.connect(params)
try {
yield connection.connect(params)
} catch (error) {
// handle the throw (timeout)
}

@@ -134,3 +145,7 @@ let res = yield connection.exec(cmd)

bluebird.coroutine(function*() {
yield connection.connect(params)
try {
yield connection.connect(params)
} catch (error) {
// handle the throw (timeout)
}

@@ -168,3 +183,7 @@ let res = yield connection.exec(cmd)

await connection.connect(params)
try {
await connection.connect(params)
} catch (error) {
// handle the throw (timeout)
}

@@ -215,2 +234,3 @@ let res = await connection.exec(cmd)

Resolves once the connection is ready (analogous to the ```ready``` event).
Rejects if the timeout is hit.

@@ -217,0 +237,0 @@ ### connection.exec(data, [options], [callback]) -> Promise

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