ssh2-sftp-client
Advanced tools
Comparing version 2.5.1 to 2.5.2
{ | ||
"name": "ssh2-sftp-client", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"description": "ssh2 sftp client for node", | ||
@@ -8,3 +8,3 @@ "main": "src/index.js", | ||
"type": "git", | ||
"url": "https://github.com/theryaz/ssh2-sftp-client" | ||
"url": "https://github.com/theophilusx/ssh2-sftp-client" | ||
}, | ||
@@ -11,0 +11,0 @@ "keywords": [ |
@@ -610,4 +610,8 @@ /** | ||
sftpObj.client.sftp((err, sftp) => { | ||
if (err) { | ||
reject(new Error(`Failed to connect to server: ${err.message}`)); | ||
} | ||
sftpObj.client.removeListener('error', reject); | ||
sftpObj.client.removeListener('end', reject); | ||
sftpObj.client.removeListener('ready', reject); | ||
sftpObj.sftp = sftp; | ||
@@ -617,2 +621,3 @@ resolve(sftp); | ||
}) | ||
.on('end', reject) | ||
@@ -619,0 +624,0 @@ .on('error', function () { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
40274
8
718
1