ssh2-sftp-client
Advanced tools
Comparing version 9.0.2 to 9.0.3
{ | ||
"name": "ssh2-sftp-client", | ||
"version": "9.0.2", | ||
"version": "9.0.3", | ||
"description": "ssh2 sftp client for node", | ||
@@ -43,3 +43,3 @@ "main": "src/index.js", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-unicorn": "^42.0.0", | ||
"eslint-plugin-unicorn": "^43.0.2", | ||
"mocha": "^10.0.0", | ||
@@ -46,0 +46,0 @@ "moment": "^2.29.1", |
@@ -224,13 +224,13 @@ 'use strict'; | ||
case 'ERR_SOCKET_BAD_PORT': | ||
throw err; | ||
case undefined: { | ||
if (err.message.endsWith('All configured authentication methods failed')) { | ||
throw this.fmtError(err.message, 'getConnection', errorCode.badAuth); | ||
throw err; | ||
case undefined: { | ||
if (err.message.endsWith('All configured authentication methods failed')) { | ||
throw this.fmtError(err.message, 'getConnection', errorCode.badAuth); | ||
} | ||
retry(err); | ||
break; | ||
} | ||
retry(err); | ||
break; | ||
default: | ||
retry(err); | ||
} | ||
default: | ||
retry(err); | ||
} | ||
} | ||
@@ -418,3 +418,3 @@ }); | ||
* the supplied pattern. Return value is an array of file entry | ||
* objects that include properties for type, name, size, modifiyTime, | ||
* objects that include properties for type, name, size, modifyTime, | ||
* accessTime, rights {user, group other}, owner and group. | ||
@@ -503,2 +503,5 @@ * | ||
rdr.once('error', (err) => { | ||
if (dst && typeof dst !== 'string' && !dst.destroyed) { | ||
dst.destroy(); | ||
} | ||
reject(this.fmtError(`${err.message} ${rPath}`, '_get', err.code)); | ||
@@ -1449,3 +1452,3 @@ }); | ||
this.on('close', endCloseHandler); | ||
if (this.client) { | ||
if (this.client.sftp) { | ||
this.client.end(); | ||
@@ -1452,0 +1455,0 @@ } else { |
Sorry, the diff of this file is too big to display
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
223143
1716
1591