@konplit-services/common 1.0.215 → 1.0.216

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.
@@ -101,6 +101,9 @@ interface NIBSS {
101
101
  bvn: BVN;
102
102
  resetURL: string;
103
103
  }
104
+ interface DSN {
105
+ dsn: string;
106
+ }
104
107
  declare class AppConfigs {
105
108
  private env;
106
109
  constructor(processEnv: typeof env);
@@ -199,6 +202,7 @@ declare class AppConfigs {
199
202
  getValue(key: string): string;
200
203
  ensureValues(keys?: string[]): this;
201
204
  getNODE_ENV(): string | undefined;
205
+ getDSN_Key(): DSN;
202
206
  }
203
207
  declare const appConfigs: AppConfigs;
204
208
  export { appConfigs };
@@ -713,6 +713,15 @@ class AppConfigs {
713
713
  getNODE_ENV() {
714
714
  return this.env.NODE_ENV;
715
715
  }
716
+ //DNS Secret Keys for ALL 14 Services
717
+ getDSN_Key() {
718
+ if (!this.env.SENTRY_LOG_DNS) {
719
+ throw new Error("SENTRY_LOG_DNS is required");
720
+ }
721
+ return {
722
+ dsn: this.env.SENTRY_LOG_DNS
723
+ };
724
+ }
716
725
  }
717
726
  // make sure all keys are available on startup
718
727
  const appConfigs = new AppConfigs(process.env);
@@ -6,3 +6,4 @@ var ACCOUNT_BALANCE_TYPE;
6
6
  ACCOUNT_BALANCE_TYPE["ledger"] = "ledger";
7
7
  ACCOUNT_BALANCE_TYPE["main"] = "main";
8
8
  })(ACCOUNT_BALANCE_TYPE = exports.ACCOUNT_BALANCE_TYPE || (exports.ACCOUNT_BALANCE_TYPE = {}));
9
+ // commit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.215",
3
+ "version": "1.0.216",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",