@sebspark/promise-cache 1.2.1 → 1.2.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
@@ -172,7 +172,7 @@ var createPersistor = (redis) => {
172
172
  if (redis) {
173
173
  const key = JSON.stringify(redis);
174
174
  if (!_persistors[key]) {
175
- const persistor = new Persistor(redis);
175
+ _persistors[key] = new Persistor(redis);
176
176
  }
177
177
  return _persistors[key];
178
178
  }
package/dist/index.mjs CHANGED
@@ -141,7 +141,7 @@ var createPersistor = (redis) => {
141
141
  if (redis) {
142
142
  const key = JSON.stringify(redis);
143
143
  if (!_persistors[key]) {
144
- const persistor = new Persistor(redis);
144
+ _persistors[key] = new Persistor(redis);
145
145
  }
146
146
  return _persistors[key];
147
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/promise-cache",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",