vtlab-generic-functions 1.0.36 → 1.0.38
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.
- package/package.json +4 -1
- package/s3bucket/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vtlab-generic-functions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"test": "jest"
|
|
6
6
|
},
|
|
@@ -40,5 +40,8 @@
|
|
|
40
40
|
"jest": "^29.7.0",
|
|
41
41
|
"nodemailer-mock": "^2.0.3",
|
|
42
42
|
"sinon": "^17.0.1"
|
|
43
|
+
},
|
|
44
|
+
"overrides": {
|
|
45
|
+
"@icetee/ftp": "1.0.8"
|
|
43
46
|
}
|
|
44
47
|
}
|
package/s3bucket/index.js
CHANGED
|
@@ -149,9 +149,9 @@ const uploadFilesToS3 = async (path, files, extension = 'pdf', options = {
|
|
|
149
149
|
if (files.length === 0 || !path) {
|
|
150
150
|
return "";
|
|
151
151
|
}
|
|
152
|
-
let randonId = Math.random().toString(36).substring(2, 15);
|
|
153
152
|
|
|
154
153
|
return promisesCollector(files, async (_file) => {
|
|
154
|
+
let randonId = Math.random().toString(36).substring(2, 15);
|
|
155
155
|
let _path = `${path}${new Date().getTime()}${randonId}.${extension}`;
|
|
156
156
|
try {
|
|
157
157
|
let file = Buffer.from(_file.content, "base64");
|