@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.
@@ -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;
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.11.1",
3
+ "version": "1.12.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",