vtlab-generic-functions 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,6 +62,16 @@ class FTPClientV2 {
62
62
  case "ftp":
63
63
  case "sftp":
64
64
  default:
65
+ // remove commands not allowed
66
+ if (config.username) {
67
+ delete config.username;
68
+ }
69
+ if (config.port) {
70
+ delete config.port;
71
+ }
72
+ if (config.forcePasv === undefined) {
73
+ config.forcePasv = true;
74
+ }
65
75
  this._ftpInstance = new promiseFTP();
66
76
  break;
67
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vtlab-generic-functions",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "scripts": {
5
5
  "test": "jest"
6
6
  },