unnbound-events 2.0.1 → 2.0.3
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,8 +5,8 @@ const unnbound_logger_sdk_1 = require("unnbound-logger-sdk");
|
|
|
5
5
|
const internal_1 = require("unnbound-logger-sdk/dist/internal");
|
|
6
6
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
7
7
|
const client_sqs_1 = require("@aws-sdk/client-sqs");
|
|
8
|
+
const utils_1 = require("../utils");
|
|
8
9
|
const extended_sqs_client_1 = require("./extended-sqs-client");
|
|
9
|
-
const utils_1 = require("lib/utils");
|
|
10
10
|
class QueueAdapter {
|
|
11
11
|
logger;
|
|
12
12
|
sqs;
|
|
@@ -17,7 +17,7 @@ class QueueAdapter {
|
|
|
17
17
|
this.logger = options.logger ?? unnbound_logger_sdk_1.logger;
|
|
18
18
|
this.options = { maxMessages, visibilityTimeout };
|
|
19
19
|
this.handler = handler;
|
|
20
|
-
const region = process.env.UNNBOUND_AWS_REGION ?? 'us-west-1';
|
|
20
|
+
const region = process.env.UNNBOUND_AWS_REGION ?? process.env.AWS_REGION ?? 'us-west-1';
|
|
21
21
|
const s3 = new client_s3_1.S3Client({ region, endpoint: process.env.UNNBOUND_S3_ENDPOINT });
|
|
22
22
|
this.sqs = new extended_sqs_client_1.ExtendedSQSClient({
|
|
23
23
|
region,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unnbound-events",
|
|
3
3
|
"description": "Unified events SDK to handle HTTP routes and queued messages with a single routing API.",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"author": "Unnbound Team",
|