Socket
Socket
Sign inDemoInstall

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 0.2.5 to 0.2.6

15

Dist/SSH.js

@@ -0,3 +1,4 @@

// Generated by CoffeeScript 1.9.3
(function() {
var Driver, FS, Promise, SSH;
var Driver, FS, Path, Promise, SSH;

@@ -8,2 +9,4 @@ FS = require('fs');

Path = require('path');
Promise = require('a-promise');

@@ -21,6 +24,8 @@

if (Config.privateKey) {
try {
Config.privateKey = FS.readFileSync(Config.privateKey);
} catch (_error) {
throw new Error("Unable to read the Private Key File");
if (Path.isAbsolute(Config.privateKey)) {
try {
Config.privateKey = FS.readFileSync(Config.privateKey);
} catch (_error) {
throw new Error("Unable to read the Private Key File");
}
}

@@ -27,0 +32,0 @@ } else if (typeof Config.password === 'undefined') {

{
"name": "node-ssh",
"version": "0.2.5",
"version": "0.2.6",
"description": "SS2 with Promises",

@@ -26,6 +26,3 @@ "main": "Dist/SSH.js",

"a-promise": "latest"
},
"scripts":{
"prepublish": "mkdir -p Dist; uc-compile Source/SSH.coffee > Dist/SSH.js"
}
}

@@ -22,3 +22,3 @@ Node-SSH - SSH2 with Promises

ssh.put('/home/steel/Lab/LocalSource', '/home/steel/Lab/RemoteTarget').then(function() {
console.log("The Directory thing is done");
console.log("The File thing is done");
}, function(error) {

@@ -30,3 +30,3 @@ console.log("Something's wrong");

ssh.putMulti([{'Local': '/home/steel/Lab/LocalSource', 'Remote': '/home/steel/Lab/RemoteTarget'}]).then(function() {
console.log("The Directory thing is done");
console.log("The File thing is done");
}, function(error) {

@@ -33,0 +33,0 @@ console.log("Something's wrong");

Sorry, the diff of this file is not supported yet

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