eip-cloud-services 1.2.0 → 1.2.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/redis.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eip-cloud-services",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Houses a collection of helpers for connecting with Cloud services.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/redis.js CHANGED
@@ -36,7 +36,10 @@ const getClient = async ( clientId = 'main' ) => {
36
36
  port: node.port
37
37
  } ) );
38
38
 
39
- redisClient = new Redis.Cluster ( clusterNodes );
39
+ redisClient = new Redis.Cluster ( clusterNodes, {
40
+ dnsLookup: (address, callback) => callback(null, address),
41
+ redisOptions: config?.redis?.options || {tls: {} }
42
+ } );
40
43
 
41
44
  // Await until the cluster is ready
42
45
  await new Promise ( ( resolve, reject ) => {