basic-ftp
Advanced tools
Comparing version 4.5.0 to 4.5.1
# Changelog | ||
## 4.5.1 | ||
- Fixed: Remove eager check for `remoteAddress` of a socket. (#106) | ||
## 4.5.0 | ||
@@ -4,0 +8,0 @@ |
@@ -35,3 +35,3 @@ "use strict"; | ||
info.link = value.substr(value.indexOf(":") + 1); | ||
return false; | ||
return 1 /* Continue */; | ||
} | ||
@@ -52,7 +52,7 @@ switch (value) { | ||
case "pdir": // Parent directory | ||
return true; // Don't include these entries in the listing | ||
return 2 /* IgnoreFile */; // Don't include these entries in the listing | ||
default: | ||
info.type = FileInfo_1.FileType.Unknown; | ||
} | ||
return false; | ||
return 1 /* Continue */; | ||
}, | ||
@@ -137,4 +137,4 @@ "unix.mode": (value, info) => { | ||
} | ||
const shouldIgnoreEntry = factHandler(factValue, info); | ||
if (shouldIgnoreEntry === true) { | ||
const result = factHandler(factValue, info); | ||
if (result === 2 /* IgnoreFile */) { | ||
return undefined; | ||
@@ -141,0 +141,0 @@ } |
@@ -222,3 +222,3 @@ "use strict"; | ||
const dataSocket = config.ftp.dataSocket; | ||
if (!dataSocket || !dataSocket.remoteAddress) { | ||
if (!dataSocket) { | ||
resolver.onError(task, new Error("Upload should begin but no data connection is available.")); | ||
@@ -263,3 +263,3 @@ return; | ||
const dataSocket = config.ftp.dataSocket; | ||
if (!dataSocket || !dataSocket.remoteAddress) { | ||
if (!dataSocket) { | ||
resolver.onError(task, new Error("Download should begin but no data connection is available.")); | ||
@@ -266,0 +266,0 @@ return; |
{ | ||
"name": "basic-ftp", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"description": "FTP client for Node.js, supports explicit FTPS over TLS, IPv6, Async/Await, and Typescript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
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
140506