vtlab-generic-functions 1.0.35 → 1.0.37

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vtlab-generic-functions",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "scripts": {
5
5
  "test": "jest"
6
6
  },
package/s3bucket/index.js CHANGED
@@ -151,7 +151,8 @@ const uploadFilesToS3 = async (path, files, extension = 'pdf', options = {
151
151
  }
152
152
 
153
153
  return promisesCollector(files, async (_file) => {
154
- let _path = `${path}${new Date().getTime()}.${extension}`;
154
+ let randonId = Math.random().toString(36).substring(2, 15);
155
+ let _path = `${path}${new Date().getTime()}${randonId}.${extension}`;
155
156
  try {
156
157
  let file = Buffer.from(_file.content, "base64");
157
158
  return uploadToS3(_path, file, options);