@konplit-services/common 1.0.201 → 1.0.202

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.
@@ -161,6 +161,8 @@ declare class AppConfigs {
161
161
  secretKey: string;
162
162
  masterKey: string;
163
163
  keyID: string;
164
+ rotateKey: string;
165
+ region: string;
164
166
  };
165
167
  getValuePayDetails(): {
166
168
  visa_redirect_url: string;
@@ -359,10 +359,18 @@ class AppConfigs {
359
359
  if (!this.env.AWS_KEYID) {
360
360
  throw new Error("AWS_KEYID is required");
361
361
  }
362
+ if (!this.env.AWS_REGION) {
363
+ throw new Error("AWS_REGION is required");
364
+ }
365
+ if (!this.env.AWS_ROTATE_KEY) {
366
+ throw new Error("AWS_ROTATE_KEY is required");
367
+ }
362
368
  return {
363
369
  accessKey: this.env.AWS_ACCESSKEY,
364
370
  secretKey: this.env.AWS_SECRETKEY,
365
371
  masterKey: this.env.AWS_MASTERKEY,
372
+ region: this.env.AWS_REGION,
373
+ rotateKey: this.env.AWS_ROTATE_KEY,
366
374
  keyID: this.env.AWS_KEYID,
367
375
  };
368
376
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.201",
3
+ "version": "1.0.202",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",