ssh2-sftp-client
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "ssh2-sftp-client", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "ssh2 sftp client for node", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -70,3 +70,7 @@ /** | ||
try { | ||
resolve(sftp.createReadStream(path, useCompression)); | ||
let stream = sftp.createReadStream(path, useCompression); | ||
stream.on('error', reject); | ||
resolve(stream); | ||
} catch(err) { | ||
@@ -109,5 +113,4 @@ reject(err); | ||
stream.on('close', () => { | ||
resolve(); | ||
}); | ||
stream.on('error', reject); | ||
stream.on('close', resolve); | ||
@@ -114,0 +117,0 @@ if (input instanceof Buffer) { |
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
21553
552