@technicity/data-service-generator 0.11.3 → 0.11.4

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.
@@ -42,7 +42,15 @@ class Cache {
42
42
  });
43
43
  }
44
44
  this.client = client;
45
- client.connect();
45
+ // call connect() if not already connected or in the process of connecting
46
+ if (client.status !== "connect" &&
47
+ client.status !== "connecting" &&
48
+ client.status !== "reconnecting") {
49
+ client.connect();
50
+ }
51
+ else {
52
+ loglevel_1.default.info("DB SDK client status is currently: " + client.status);
53
+ }
46
54
  client.on("connect", () => {
47
55
  loglevel_1.default.info(`DB SDK connected to redis server at ${host}:${port}`);
48
56
  if (this.waiting)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technicity/data-service-generator",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist"