@sebspark/promise-cache 3.3.1 → 3.3.2

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,13 +113,14 @@ var Persistor = class {
113
113
  var _a;
114
114
  try {
115
115
  await new Promise((resolve, reject) => {
116
- var _a2, _b, _c, _d;
116
+ var _a2, _b, _c, _d, _e;
117
117
  this.client = CACHE_CLIENT({
118
118
  url: (_a2 = this.redis) == null ? void 0 : _a2.url,
119
119
  username: (_b = this.redis) == null ? void 0 : _b.username,
120
120
  password: (_c = this.redis) == null ? void 0 : _c.password,
121
+ pingInterval: ((_d = this.redis) == null ? void 0 : _d.pingInterval) || void 0,
121
122
  socket: {
122
- ...(_d = this.redis) == null ? void 0 : _d.socket,
123
+ ...(_e = this.redis) == null ? void 0 : _e.socket,
123
124
  reconnectStrategy: (retries, cause) => {
124
125
  console.error(cause);
125
126
  return 1e3 * 2 ** retries;
package/dist/index.mjs CHANGED
@@ -93,13 +93,14 @@ var Persistor = class {
93
93
  var _a;
94
94
  try {
95
95
  await new Promise((resolve, reject) => {
96
- var _a2, _b, _c, _d;
96
+ var _a2, _b, _c, _d, _e;
97
97
  this.client = CACHE_CLIENT({
98
98
  url: (_a2 = this.redis) == null ? void 0 : _a2.url,
99
99
  username: (_b = this.redis) == null ? void 0 : _b.username,
100
100
  password: (_c = this.redis) == null ? void 0 : _c.password,
101
+ pingInterval: ((_d = this.redis) == null ? void 0 : _d.pingInterval) || void 0,
101
102
  socket: {
102
- ...(_d = this.redis) == null ? void 0 : _d.socket,
103
+ ...(_e = this.redis) == null ? void 0 : _e.socket,
103
104
  reconnectStrategy: (retries, cause) => {
104
105
  console.error(cause);
105
106
  return 1e3 * 2 ** retries;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/promise-cache",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",