@yousolution/node-red-contrib-you-ftp-sftp 1.9.0 → 1.9.2

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.
@@ -5,10 +5,30 @@ services:
5
5
  image: nodered/node-red:2.0.6-12
6
6
  # network_mode: host
7
7
  extra_hosts:
8
- - "api.yousolution.local:192.168.1.100"
8
+ - 'api.yousolution.local:192.168.1.100'
9
9
  volumes:
10
10
  - ./data:/data
11
11
  ports:
12
12
  - '1880:1880'
13
13
  environment:
14
- NODE_ENV: 'dev'
14
+ NODE_ENV: 'dev'
15
+
16
+ ftps:
17
+ image: stilliard/pure-ftpd
18
+ container_name: ftps
19
+ ports:
20
+ - '21:21'
21
+ - '30000-30009:30000-30009'
22
+ # volumes:
23
+ #- "/Users/youruser/ftps/data:/home/foo/"
24
+ #- "/Users/youruser/ftps/passwd:/etc/pure-ftpd/passwd"
25
+ #- "/Users/youruser/ftps/ssl:/etc/ssl/private/"
26
+ environment:
27
+ PUBLICHOST: '0.0.0.0'
28
+ FTP_USER_NAME: foo
29
+ FTP_USER_PASS: pass
30
+ FTP_USER_HOME: /home/foo
31
+ ADDED_FLAGS: '--tls=2'
32
+ TLS_CN: 'localhost'
33
+ TLS_ORG: 'YourOrg'
34
+ TLS_C: 'DE'
package/nodes/ftp.js CHANGED
@@ -78,7 +78,7 @@ module.exports = function (RED) {
78
78
  });
79
79
  break;
80
80
  case 'get':
81
- const ftpfilename = node.workdir + node.filename;
81
+ let ftpfilename = node.workdir + node.filename;
82
82
  if (msg.payload.filename) ftpfilename = msg.payload.filename;
83
83
  var str = '';
84
84
  console.log('FTP Get:' + ftpfilename);
package/nodes/ftps.js CHANGED
@@ -100,7 +100,7 @@ module.exports = function (RED) {
100
100
  }
101
101
  break;
102
102
  case 'get':
103
- const ftpfilename = node.workdir + node.filename;
103
+ let ftpfilename = node.workdir + node.filename;
104
104
  if (msg.payload.filename) ftpfilename = msg.payload.filename;
105
105
  let str = '';
106
106
  console.log('FTP Get:' + ftpfilename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yousolution/node-red-contrib-you-ftp-sftp",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "A node-red node that support FTP and SFTP file transfer using $() environment variables to control the ftp connection details",
5
5
  "main": "sftp.js",
6
6
  "scripts": {