@ikonintegration/ikapi 2.6.8 → 2.6.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/ikapi",
3
- "version": "2.6.8",
3
+ "version": "2.6.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "main.js",
@@ -129,8 +129,13 @@ export default class IKCache_Redis extends IKCache {
129
129
  this.awaitingConnectionQueue = null;
130
130
  resolve();
131
131
  }
132
+ //reached here on v4, everything is connected
133
+ if (isV4) {
134
+ connectedHandler();
135
+ return;
136
+ }
137
+ //v3 <=
132
138
  connection.on('connect', connectedHandler);
133
- if (isV4) connectedHandler(); //reached here on v4, everything is connected
134
139
  connection.on('error', (err) => {
135
140
  localConsole.error(err);
136
141
  if (this.awaitingConnectionQueue) this.awaitingConnectionQueue.forEach((resolve) => resolve()); //fulfill, error will be thrown