vtlab-generic-functions 1.0.4 → 1.0.6
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/config/index.js +1 -1
- package/package.json +2 -1
- package/s3bucket/index.js +2 -1
package/config/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const { S3Client, GetObjectCommand } = require('@aws-sdk/client-s3');
|
|
3
3
|
|
|
4
4
|
// Creamos una instancia del cliente S3
|
|
5
|
-
const s3 = new S3Client({});
|
|
5
|
+
const s3 = new S3Client({region: "eu-west-1"});
|
|
6
6
|
|
|
7
7
|
const getObjectByString = (obj, key) => {
|
|
8
8
|
const keys = key.split('.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vtlab-generic-functions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"test": "jest"
|
|
6
6
|
},
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"@aws-sdk/client-s3": "^3.478.0",
|
|
10
10
|
"@aws-sdk/client-ses": "^3.478.0",
|
|
11
11
|
"@aws-sdk/client-sqs": "^3.478.0",
|
|
12
|
+
"@aws-sdk/s3-request-presigner": "^3.484.0",
|
|
12
13
|
"axios": "^1.6.2",
|
|
13
14
|
"countries-code": "^1.1.0",
|
|
14
15
|
"country-data": "0.0.31",
|
package/s3bucket/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const { S3Client, PutObjectCommand, GetObjectCommand
|
|
1
|
+
const { S3Client, PutObjectCommand, GetObjectCommand } = require("@aws-sdk/client-s3");
|
|
2
|
+
const { getSignedUrl } = require("@aws-sdk/s3-request-presigner");
|
|
2
3
|
const config = require('../config');
|
|
3
4
|
const multer = require('multer');
|
|
4
5
|
const multerS3 = require('multer-s3');
|