basic-ftp
Advanced tools
Comparing version 4.5.3 to 4.5.4
# Changelog | ||
## 4.5.4 | ||
- Fixed: Catch server closing connection without error. (#138) | ||
## 4.5.3 | ||
@@ -5,0 +8,0 @@ |
@@ -122,2 +122,7 @@ "use strict"; | ||
socket.on("data", data => this._onControlSocketData(data)); | ||
// Server sending a FIN packet is treated as an error. | ||
socket.on("end", () => this.closeWithError(new Error("Server closed connection."))); | ||
// Control being closed without error by server is treated as an error. | ||
socket.on("close", hadError => { if (!hadError) | ||
this.closeWithError(new Error("Server closed connection.")); }); | ||
this._setupErrorHandlers(socket, "control socket"); | ||
@@ -332,2 +337,3 @@ } | ||
socket.removeAllListeners("data"); | ||
socket.removeAllListeners("end"); | ||
socket.removeAllListeners("error"); | ||
@@ -334,0 +340,0 @@ socket.removeAllListeners("close"); |
{ | ||
"name": "basic-ftp", | ||
"version": "4.5.3", | ||
"version": "4.5.4", | ||
"description": "FTP client for Node.js, supports explicit FTPS over TLS, IPv6, Async/Await, and Typescript.", | ||
@@ -39,12 +39,13 @@ "main": "dist/index", | ||
"devDependencies": { | ||
"@types/node": "13.1.6", | ||
"@typescript-eslint/eslint-plugin": "2.16.0", | ||
"@typescript-eslint/parser": "2.16.0", | ||
"eslint": "6.8.0", | ||
"@types/node": "13.9.2", | ||
"@typescript-eslint/eslint-plugin": "2.24.0", | ||
"@typescript-eslint/parser": "2.24.0", | ||
"eslint": "^6.8.0", | ||
"js-yaml": ">=3.13.1", | ||
"mocha": "7.0.0", | ||
"mock-fs": "4.10.4", | ||
"rimraf": "3.0.0", | ||
"typescript": "3.7.4" | ||
"minimist": ">=1.2.2", | ||
"mocha": "7.1.1", | ||
"mock-fs": "4.11.0", | ||
"rimraf": "3.0.2", | ||
"typescript": "3.8.3" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # Basic FTP | ||
Prefer alternative transfer protocols like HTTPS or SFTP (SSH). Use this library when you have no choice and need to use FTP. Try to use FTPS whenever possible, FTP alone does not provide any security. | ||
Prefer alternative transfer protocols like HTTPS or SFTP (SSH). Use this library when you have no choice and need to use FTP. Try to use FTPS (FTP over TLS) whenever possible, FTP alone does not provide any security. | ||
@@ -12,0 +12,0 @@ ## Dependencies |
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
141871
2903
10