@konplit-services/common 1.11.1 → 1.12.0
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 +2 -0
- package/build/app.configs.js +6 -0
- package/package.json +1 -1
package/build/app.configs.d.ts
CHANGED
|
@@ -377,6 +377,8 @@ declare class AppConfigs {
|
|
|
377
377
|
ensureValues(keys?: string[]): this;
|
|
378
378
|
getNODE_ENV(): string | undefined;
|
|
379
379
|
isDev(): boolean;
|
|
380
|
+
isStaging(): boolean;
|
|
381
|
+
isProduction(): boolean;
|
|
380
382
|
getDSN_Key(): DSN;
|
|
381
383
|
}
|
|
382
384
|
declare const appConfigs: AppConfigs;
|
package/build/app.configs.js
CHANGED
|
@@ -976,6 +976,12 @@ class AppConfigs {
|
|
|
976
976
|
isDev() {
|
|
977
977
|
return this.getNODE_ENV() === "development";
|
|
978
978
|
}
|
|
979
|
+
isStaging() {
|
|
980
|
+
return this.getNODE_ENV() === "staging";
|
|
981
|
+
}
|
|
982
|
+
isProduction() {
|
|
983
|
+
return this.getNODE_ENV() === "production";
|
|
984
|
+
}
|
|
979
985
|
//DNS Secret Keys for ALL 14 Services
|
|
980
986
|
getDSN_Key() {
|
|
981
987
|
if (!this.env.SENTRY_LOG_DNS) {
|