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.9 to 0.2.10

16

Dist/SSH.js

@@ -211,2 +211,18 @@ (function() {

SSH.prototype.requestShell = function() {
if (!this.Connected) {
throw new Error("Please connect before doing anything else");
}
return new Promise((function(_this) {
return function(Resolve, Reject) {
return _this.Connection.shell(function(Error, Shell) {
if (Error) {
return Reject(Error);
}
return Resolve(Shell);
});
};
})(this));
};
SSH.prototype.end = function() {

@@ -213,0 +229,0 @@ this.Connection.end();

2

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

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

@@ -62,2 +62,3 @@ Node-SSH - SSH2 with Promises

requestSFTP():Promise<SSH2SFTP>
requestShell():Promise<SSH2Shell>
end():void

@@ -64,0 +65,0 @@ }

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