Comparing version 2.0.4 to 2.0.5
@@ -167,5 +167,3 @@ 'use strict'; | ||
}).then(function () { | ||
if (SFTP) { | ||
return SFTP; | ||
} else _this3.requestSFTP(); | ||
return SFTP ? Promise.resolve(SFTP) : _this3.requestSFTP(); | ||
}).then(function (SFTP) { | ||
@@ -235,6 +233,6 @@ return new Promise(function (resolve, reject) { | ||
return new Promise(function (resolve, reject) { | ||
_this6.connection.sftp(function (err, shell) { | ||
_this6.connection.sftp(function (err, sftp) { | ||
if (err) { | ||
reject(err); | ||
} else resolve(shell); | ||
} else resolve(sftp); | ||
}); | ||
@@ -241,0 +239,0 @@ }); |
{ | ||
"name": "node-ssh", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "SS2 with Promises", | ||
@@ -5,0 +5,0 @@ "main": "Dist/SSH.js", |
@@ -129,5 +129,3 @@ // @Compiler-Transpile "true" | ||
}).then(() => { | ||
if (SFTP) { | ||
return SFTP | ||
} else this.requestSFTP() | ||
return SFTP ? Promise.resolve(SFTP) : this.requestSFTP() | ||
}).then(SFTP => { | ||
@@ -185,6 +183,6 @@ return new Promise(function(resolve, reject) { | ||
return new Promise((resolve, reject) => { | ||
this.connection.sftp(function(err, shell) { | ||
this.connection.sftp(function(err, sftp) { | ||
if (err) { | ||
reject(err) | ||
} else resolve(shell) | ||
} else resolve(sftp) | ||
}) | ||
@@ -191,0 +189,0 @@ }) |
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
18610
444