Socket
Socket
Sign inDemoInstall

node-ssh

Package Overview
Dependencies
11
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc