samanbayaka 0.0.22 → 0.0.23

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/commit-hash.mjs CHANGED
@@ -1 +1 @@
1
- export const COMMIT_HASH = '02c6744';
1
+ export const COMMIT_HASH = '5a0f88e';
@@ -74,7 +74,10 @@ export const validateNamespace = () => {
74
74
  * @throws error
75
75
  */
76
76
  export const validateConfigPath = () => {
77
- const env = process.env.SBK_CONFIG_PATH
77
+ // -------------------------------------------------------------------------------------------------------------------------------
78
+ // -------------------------------------------------------------------------------------------------------------------------------
79
+ // -------------------------------------------------------------------------------------------------------------------------------
80
+ const env = process.env.SBK_CONFIG_PATH || "/abc/abc"
78
81
  if(!dirRegex.test(env || "//<>")){
79
82
  throw new Error(`SBK_CONFIG_PATH is ${env}, it must be a valid configuration file path`)
80
83
  }
@@ -145,7 +148,10 @@ export const validatePort = () => {
145
148
  * @throws error
146
149
  */
147
150
  export const validateLogLevel = () => {
148
- const env = process.env.SBK_LOG_LEVEL?.trim()
151
+ // -------------------------------------------------------------------------------------------------------------------------------
152
+ // -------------------------------------------------------------------------------------------------------------------------------
153
+ // -------------------------------------------------------------------------------------------------------------------------------
154
+ const env = process.env.SBK_LOG_LEVEL?.trim() || "info"
149
155
  if ( !(logLvlRegx.test(env)) ) {
150
156
  throw new Error(`SBK_LOG_LEVEL is ${env}, it must be fatal | error | warn | info | debug | trace `)
151
157
  }
@@ -11,6 +11,7 @@ export const runStartupChecks = async() => {
11
11
  hostEntry: {
12
12
  nats: await errHdl.validateHostEntry('nats'),
13
13
  redis: await errHdl.validateHostEntry('redis'),
14
+ etcd: await errHdl.validateHostEntry('etcd'),
14
15
  redpanda: await errHdl.validateHostEntry('redpanda', true),
15
16
  openobserve: await errHdl.validateHostEntry('openobserve', true),
16
17
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samanbayaka",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "Moleculer Gateway service with kafka transporter",
5
5
  "homepage": "https://gitlab.com/dalal.suvendu/samanbayaka#readme",
6
6
  "bugs": {