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

node-ssh

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-ssh - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

14

Dist/SSH.js

@@ -39,2 +39,16 @@ 'use strict';

return new Promise(function (resolve, reject) {
if (typeof config.username !== 'string') {
throw new Error('No username provided');
} else if (typeof config.host !== 'string') {
throw new Error('No host provided');
}
if (config.privateKey) {
if (Path.isAbsolute(config.privateKey)) {
try {
config.privateKey = FS.readFileSync(config.privateKey);
} catch (err) {
throw new Error('Unable to read private key');
}
}
}
_this.connection.on('error', reject);

@@ -41,0 +55,0 @@ _this.connection.on('ready', function () {

2

package.json
{
"name": "node-ssh",
"version": "2.0.1",
"version": "2.0.2",
"description": "SS2 with Promises",

@@ -5,0 +5,0 @@ "main": "Dist/SSH.js",

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