quidproquo-actionprocessor-awslambda 0.0.45 → 0.0.46
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.
|
@@ -13,6 +13,7 @@ exports.deleteFiles = void 0;
|
|
|
13
13
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
14
14
|
const client_s3_2 = require("@aws-sdk/client-s3");
|
|
15
15
|
const deleteFiles = (drive, filepaths, region) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
|
+
console.log('s3 on region: ', region);
|
|
16
17
|
const s3Client = new client_s3_1.S3Client({ region });
|
|
17
18
|
const bucketParams = {
|
|
18
19
|
Bucket: drive,
|
|
@@ -24,6 +24,7 @@ const listFiles = (drive, region, folder = '', maxKeys = 1000, pageToken) => __a
|
|
|
24
24
|
};
|
|
25
25
|
// Declare truncated as a flag that the while loop is based on.
|
|
26
26
|
let files = [];
|
|
27
|
+
console.log('s3 on region: ', region);
|
|
27
28
|
const s3Client = new client_s3_1.S3Client({ region });
|
|
28
29
|
const response = yield s3Client.send(new client_s3_2.ListObjectsV2Command(bucketParams));
|
|
29
30
|
if (response.CommonPrefixes && !bucketParams.ContinuationToken) {
|
|
@@ -14,6 +14,7 @@ const client_s3_1 = require("@aws-sdk/client-s3");
|
|
|
14
14
|
const client_s3_2 = require("@aws-sdk/client-s3");
|
|
15
15
|
const objectExists = (bucketName, key, region) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
16
|
try {
|
|
17
|
+
console.log('s3 on region: ', region);
|
|
17
18
|
const s3Client = new client_s3_1.S3Client({ region });
|
|
18
19
|
yield s3Client.send(new client_s3_2.HeadObjectCommand({
|
|
19
20
|
Key: key,
|
|
@@ -13,6 +13,7 @@ exports.readTextFile = void 0;
|
|
|
13
13
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
14
14
|
const readTextFile = (bucketName, key, region) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
15
|
var _a;
|
|
16
|
+
console.log('s3 on region: ', region);
|
|
16
17
|
const s3Client = new client_s3_1.S3Client({ region });
|
|
17
18
|
const response = yield s3Client.send(new client_s3_1.GetObjectCommand({
|
|
18
19
|
Key: key,
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.writeTextFile = void 0;
|
|
13
13
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
14
14
|
const writeTextFile = (bucketName, key, data, region) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
console.log('s3 on region: ', region);
|
|
15
16
|
const s3Client = new client_s3_1.S3Client({ region });
|
|
16
17
|
yield s3Client.send(new client_s3_1.PutObjectCommand({
|
|
17
18
|
Key: key,
|