Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

basic-ftp

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-ftp - npm Package Compare versions

Comparing version 4.5.1 to 4.5.2

4

CHANGELOG.md
# Changelog
## 4.5.2
- Fixed: Try next available list command after any FTP error. (#117)
## 4.5.1

@@ -4,0 +8,0 @@

10

dist/Client.js

@@ -459,4 +459,4 @@ "use strict";

catch (err) {
const maybeSyntaxError = err instanceof FtpContext_1.FTPError && err.code >= 500;
if (!maybeSyntaxError) {
const shouldTryNext = err instanceof FtpContext_1.FTPError;
if (!shouldTryNext) {
throw err;

@@ -473,4 +473,4 @@ }

async _requestListWithCommand(command) {
const writable = new StringWriter_1.StringWriter();
await transfer_1.downloadTo(writable, {
const buffer = new StringWriter_1.StringWriter();
await transfer_1.downloadTo(buffer, {
ftp: this.ftp,

@@ -482,3 +482,3 @@ tracker: this._progressTracker,

});
const text = writable.getText(this.ftp.encoding);
const text = buffer.getText(this.ftp.encoding);
this.ftp.log(text);

@@ -485,0 +485,0 @@ return this.parseList(text);

@@ -178,7 +178,11 @@ "use strict";

function parseMLSxDate(fact) {
const date = new Date();
date.setUTCFullYear(+fact.slice(0, 4), +fact.slice(4, 6) - 1, +fact.slice(6, 8));
date.setUTCHours(+fact.slice(8, 10), +fact.slice(10, 12), +fact.slice(12, 14), +fact.slice(15, 18));
return date;
return new Date(Date.UTC(+fact.slice(0, 4), // Year
+fact.slice(4, 6) - 1, // Month
+fact.slice(6, 8), // Date
+fact.slice(8, 10), // Hours
+fact.slice(10, 12), // Minutes
+fact.slice(12, 14), // Seconds
+fact.slice(15, 18) // Milliseconds
));
}
exports.parseMLSxDate = parseMLSxDate;
{
"name": "basic-ftp",
"version": "4.5.1",
"version": "4.5.2",
"description": "FTP client for Node.js, supports explicit FTPS over TLS, IPv6, Async/Await, and Typescript.",

@@ -39,12 +39,12 @@ "main": "dist/index",

"devDependencies": {
"@types/node": "12.12.6",
"@typescript-eslint/eslint-plugin": "2.6.1",
"@typescript-eslint/parser": "2.6.1",
"eslint": "6.6.0",
"@types/node": "13.1.1",
"@typescript-eslint/eslint-plugin": "2.13.0",
"@typescript-eslint/parser": "2.13.0",
"eslint": "6.8.0",
"js-yaml": ">=3.13.1",
"mocha": "6.2.2",
"mock-fs": "4.10.3",
"mock-fs": "4.10.4",
"rimraf": "3.0.0",
"typescript": "3.7.2"
"typescript": "3.7.4"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc