@konplit-services/common 1.0.223 → 1.0.225
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.
package/build/app.configs.d.ts
CHANGED
package/build/app.configs.js
CHANGED
|
@@ -113,6 +113,12 @@ class AppConfigs {
|
|
|
113
113
|
}
|
|
114
114
|
return this.env.NATS_USERNAME;
|
|
115
115
|
}
|
|
116
|
+
getBVNEnvironment() {
|
|
117
|
+
if (!this.env.BVN_ENVIRONMENT) {
|
|
118
|
+
throw new Error("BVN_ENVIRONMENT is required");
|
|
119
|
+
}
|
|
120
|
+
return this.env.BVN_ENVIRONMENT;
|
|
121
|
+
}
|
|
116
122
|
getSettlementInterval() {
|
|
117
123
|
if (!this.env.SETTLEMENT_INTERVAL) {
|
|
118
124
|
throw new Error("SETTLEMENT_INTERVAL is required");
|
|
@@ -713,13 +719,13 @@ class AppConfigs {
|
|
|
713
719
|
getNODE_ENV() {
|
|
714
720
|
return this.env.NODE_ENV;
|
|
715
721
|
}
|
|
716
|
-
//DNS Secret Keys for ALL 14 Services
|
|
722
|
+
//DNS Secret Keys for ALL 14 Services
|
|
717
723
|
getDSN_Key() {
|
|
718
724
|
if (!this.env.SENTRY_LOG_DNS) {
|
|
719
725
|
throw new Error("SENTRY_LOG_DNS is required");
|
|
720
726
|
}
|
|
721
727
|
return {
|
|
722
|
-
dsn: this.env.SENTRY_LOG_DNS
|
|
728
|
+
dsn: this.env.SENTRY_LOG_DNS,
|
|
723
729
|
};
|
|
724
730
|
}
|
|
725
731
|
}
|