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