unnbound-events 2.0.2 → 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.
@@ -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.2",
4
+ "version": "2.0.3",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "author": "Unnbound Team",