@sebspark/promise-cache 3.2.0 → 3.3.0

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/index.js CHANGED
@@ -113,9 +113,8 @@ var Persistor = class {
113
113
  var _a;
114
114
  try {
115
115
  await new Promise((resolve, reject) => {
116
- var _a2;
117
116
  this.client = CACHE_CLIENT({
118
- url: (_a2 = this.redis) == null ? void 0 : _a2.url,
117
+ ...this.redis,
119
118
  socket: {
120
119
  reconnectStrategy: (retries, cause) => {
121
120
  console.error(cause);
@@ -129,11 +128,11 @@ var Persistor = class {
129
128
  this.onSuccess();
130
129
  resolve(true);
131
130
  }).on("reconnecting", () => {
132
- var _a3;
133
- (_a3 = this.logger) == null ? void 0 : _a3.info("reconnecting...", this.clientId);
131
+ var _a2;
132
+ (_a2 = this.logger) == null ? void 0 : _a2.info("reconnecting...", this.clientId);
134
133
  }).on("end", () => {
135
- var _a3;
136
- (_a3 = this.logger) == null ? void 0 : _a3.info("end...", this.clientId);
134
+ var _a2;
135
+ (_a2 = this.logger) == null ? void 0 : _a2.info("end...", this.clientId);
137
136
  });
138
137
  this.client.connect();
139
138
  });
package/dist/index.mjs CHANGED
@@ -93,9 +93,8 @@ var Persistor = class {
93
93
  var _a;
94
94
  try {
95
95
  await new Promise((resolve, reject) => {
96
- var _a2;
97
96
  this.client = CACHE_CLIENT({
98
- url: (_a2 = this.redis) == null ? void 0 : _a2.url,
97
+ ...this.redis,
99
98
  socket: {
100
99
  reconnectStrategy: (retries, cause) => {
101
100
  console.error(cause);
@@ -109,11 +108,11 @@ var Persistor = class {
109
108
  this.onSuccess();
110
109
  resolve(true);
111
110
  }).on("reconnecting", () => {
112
- var _a3;
113
- (_a3 = this.logger) == null ? void 0 : _a3.info("reconnecting...", this.clientId);
111
+ var _a2;
112
+ (_a2 = this.logger) == null ? void 0 : _a2.info("reconnecting...", this.clientId);
114
113
  }).on("end", () => {
115
- var _a3;
116
- (_a3 = this.logger) == null ? void 0 : _a3.info("end...", this.clientId);
114
+ var _a2;
115
+ (_a2 = this.logger) == null ? void 0 : _a2.info("end...", this.clientId);
117
116
  });
118
117
  this.client.connect();
119
118
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/promise-cache",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",