Comparing version 0.2.9 to 0.2.10
@@ -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(); |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14194
220
70