@ikonintegration/ikapi 2.6.4 → 2.6.5-beta

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.4",
3
+ "version": "2.6.5-beta",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "main.js",
@@ -102,6 +102,7 @@ export default class IKCache_Redis extends IKCache {
102
102
  password: this.config.password,
103
103
  ...(this.config.enableTLS ? { tls: {} } /* https://docs.upstash.com/howto/connectwithtls */ : {})
104
104
  });
105
+ if (connection && connection.connect) await connection.connect();
105
106
  connection.on('connect', () => {
106
107
  this.connection = connection;
107
108
  if (this.awaitingConnectionQueue) this.awaitingConnectionQueue.forEach((resolve) => resolve());