New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

telnet-client

Package Overview
Dependencies
Maintainers
1
Versions
112
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 1.1.1 to 1.1.2

1

lib/index.d.ts

@@ -8,2 +8,3 @@ import { EventEmitter } from 'events';

port?: number;
localAddress?: string;
timeout?: number;

@@ -10,0 +11,0 @@ shellPrompt?: string;

4

lib/index.js

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

const port = (typeof opts.port !== 'undefined' ? opts.port : 23)
const localAddress = (typeof opts.localAddress !== 'undefined' ? opts.localAddress : '')
this.timeout = (typeof opts.timeout !== 'undefined' ? opts.timeout : 500)

@@ -63,3 +64,4 @@

port,
host
host,
localAddress
}, () => {

@@ -66,0 +68,0 @@ this.state = 'start'

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

},
"version": "1.1.1",
"version": "1.1.2",
"main": "./lib/index.js",

@@ -72,4 +72,8 @@ "types": "./lib/index.d.ts",

"name": "HaykoKoryun"
},
{
"name": "Ivan Sieder",
"email": "ivan@sieder.xyz"
}
]
}

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

* `port`: Port the client should connect to. Defaults to '23'.
* `timeout`: Sets the socket to timeout after the specified number of milliseconds
* `localAddress`: Local interface to bind for network connections. Defaults to an empty string. More information can be found [here](https://nodejs.org/api/net.html#net_socket_localaddress).
* `timeout`: Sets the socket to timeout after the specified number of milliseconds.
of inactivity on the socket.

@@ -213,0 +214,0 @@ * `shellPrompt`: Shell prompt that the host is using. Can be a string or an instance of RegExp. Defaults to regex '/(?:\/ )?#\s/'.

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