@sebspark/promise-cache 2.0.9 → 2.0.10

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
@@ -104,8 +104,9 @@ var Persistor = class {
104
104
  async startConnection() {
105
105
  try {
106
106
  await new Promise((resolve, reject) => {
107
+ var _a;
107
108
  this.client = CACHE_CLIENT({
108
- ...this.redis,
109
+ url: (_a = this.redis) == null ? void 0 : _a.url,
109
110
  socket: {
110
111
  reconnectStrategy: (retries, cause) => {
111
112
  console.error(cause);
package/dist/index.mjs CHANGED
@@ -75,8 +75,9 @@ var Persistor = class {
75
75
  async startConnection() {
76
76
  try {
77
77
  await new Promise((resolve, reject) => {
78
+ var _a;
78
79
  this.client = CACHE_CLIENT({
79
- ...this.redis,
80
+ url: (_a = this.redis) == null ? void 0 : _a.url,
80
81
  socket: {
81
82
  reconnectStrategy: (retries, cause) => {
82
83
  console.error(cause);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/promise-cache",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",