@creator.co/wapi 1.5.4 → 1.5.5

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator.co/wapi",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -83,7 +83,11 @@ var Redis = /** @class */ (function () {
83
83
  switch (_b.label) {
84
84
  case 0:
85
85
  console.debug('Starting remote client cache connection');
86
- connection = _a.ClientFactory(__assign(__assign({ username: config.username }, (config.password ? { password: config.password } : {})), { disableOfflineQueue: true, socket: __assign(__assign({ host: config.hostname }, (config.enableTLS ? { tls: true } : {})), { connectTimeout: 10000 }) }));
86
+ connection = _a.ClientFactory(__assign(__assign({ username: config.username }, (config.password ? { password: config.password } : {})), { disableOfflineQueue: true, socket: {
87
+ host: config.hostname,
88
+ tls: config.enableTLS,
89
+ connectTimeout: 10000,
90
+ } }));
87
91
  return [4 /*yield*/, connection.connect()];
88
92
  case 1:
89
93
  _b.sent();
@@ -100,7 +104,10 @@ var Redis = /** @class */ (function () {
100
104
  case 0:
101
105
  console.debug('Starting remote cluster cache connection');
102
106
  connection = _a.ClusterFactory({
103
- defaults: __assign(__assign({ username: config.username }, (config.password ? { password: config.password } : {})), { socket: __assign(__assign({}, (config.enableTLS ? { tls: true } : {})), { connectTimeout: 10000 }) }),
107
+ defaults: __assign(__assign({ username: config.username }, (config.password ? { password: config.password } : {})), { socket: {
108
+ tls: config.enableTLS,
109
+ connectTimeout: 10000,
110
+ } }),
104
111
  rootNodes: [
105
112
  {
106
113
  url: "redis://".concat(config.username, ":").concat(config.username, "@").concat(config.hostname, ":6379"),
@@ -1 +1 @@
1
- {"version":3,"file":"Redis.js","sourceRoot":"","sources":["../../../src/Cache/Redis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;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cAAI,MAAM,CAAC,QAAQ,UAAO;oCAC5E,mBAAmB,EAAE,IAAI;iCAC1B;6BACF;yBACF,CAAC,CAAA;wBACF,qBAAM,UAAU,CAAC,OAAO,EAAE,EAAA;;wBAA1B,SAA0B,CAAA;wBAE1B,sBAAO,UAAiB,EAAA;;;;KACzB;;;IA9Ec,eAAS,GAAG,IAAI,wBAAc,CAG3C,EAAK,CAAC,iBAAiB,EAAE,UAAM,CAAC;QAAI,sBAAA,CAAC,CAAC,MAAM,EAAA;aAAA,CAAC,AAHvB,CAGuB;IAE/C;;;OAGG;IACY,mBAAa,GAAG,oBAAY,AAAf,CAAe;IAE3C;;;OAGG;IACY,oBAAc,GAAG,qBAAa,AAAhB,CAAgB;IAgE/C,YAAC;CAAA,AAhFD,IAgFC;kBAhFoB,KAAK"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator.co/wapi",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -52,7 +52,7 @@ export default class Redis {
52
52
  disableOfflineQueue: true,
53
53
  socket: {
54
54
  host: config.hostname,
55
- ...(config.enableTLS ? { tls: true } : {}),
55
+ tls: config.enableTLS,
56
56
  connectTimeout: 10000,
57
57
  },
58
58
  })
@@ -70,7 +70,7 @@ export default class Redis {
70
70
  username: config.username,
71
71
  ...(config.password ? { password: config.password } : {}),
72
72
  socket: {
73
- ...(config.enableTLS ? { tls: true } : {}),
73
+ tls: config.enableTLS,
74
74
  connectTimeout: 10000,
75
75
  },
76
76
  },
@@ -33,7 +33,7 @@ async function simpleRedisTest(config: any, concurrent?: boolean) {
33
33
  disableOfflineQueue: true,
34
34
  socket: {
35
35
  host: config.hostname,
36
- ...(config.enableTLS ? { tls: true } : {}),
36
+ tls: config.enableTLS,
37
37
  connectTimeout: 10000,
38
38
  },
39
39
  })
@@ -32,7 +32,7 @@ async function simpleRedisTest(config: any, concurrent?: boolean) {
32
32
  username: config.username,
33
33
  ...(config.password ? { password: config.password } : {}),
34
34
  socket: {
35
- ...(config.enableTLS ? { tls: true } : {}),
35
+ tls: config.enableTLS,
36
36
  connectTimeout: 10000,
37
37
  },
38
38
  },