@clonegod/ttd-base-common 1.0.20 → 1.0.21

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.
@@ -20,7 +20,12 @@ class BloxrouteBase {
20
20
  this.endpoint = process.env.BASE_BLOXROUTE_RPC_ENDPOINT || 'https://api.blxrbdn.com';
21
21
  this.authToken = process.env.BASE_BLOXROUTE_AUTH_TOKEN || '';
22
22
  this.ws_endpoint = process.env.BASE_BLOXROUTE_WS_ENDPOINT || 'wss://api.blxrbdn.com/ws';
23
- this.initWsConnection();
23
+ if (this.authToken) {
24
+ this.initWsConnection();
25
+ }
26
+ else {
27
+ (0, dist_1.log_warn)('BloXroute authToken is not set!!! BASE_BLOXROUTE_AUTH_TOKEN is empty or null');
28
+ }
24
29
  }
25
30
  initWsConnection() {
26
31
  if (!this.wsClient) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-base-common",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Base common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",