keyv 5.3.1 → 5.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.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -282,7 +282,7 @@ var Keyv = class extends event_manager_default {
|
|
|
282
282
|
...store
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
this._store = this.opts.store;
|
|
285
|
+
this._store = this.opts.store ?? /* @__PURE__ */ new Map();
|
|
286
286
|
this._compression = this.opts.compression;
|
|
287
287
|
this._serialize = this.opts.serialize;
|
|
288
288
|
this._deserialize = this.opts.deserialize;
|
package/dist/index.js
CHANGED
|
@@ -256,7 +256,7 @@ var Keyv = class extends event_manager_default {
|
|
|
256
256
|
...store
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
this._store = this.opts.store;
|
|
259
|
+
this._store = this.opts.store ?? /* @__PURE__ */ new Map();
|
|
260
260
|
this._compression = this.opts.compression;
|
|
261
261
|
this._serialize = this.opts.serialize;
|
|
262
262
|
this._deserialize = this.opts.deserialize;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keyv",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"description": "Simple key-value storage with support for multiple backends",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
"tsd": "^0.31.2",
|
|
65
65
|
"vitest": "^3.0.7",
|
|
66
66
|
"xo": "^0.60.0",
|
|
67
|
-
"@keyv/compress-gzip": "^2.0.2",
|
|
68
67
|
"@keyv/compress-brotli": "^2.0.3",
|
|
69
|
-
"@keyv/
|
|
70
|
-
"@keyv/compress-lz4": "^1.0.0",
|
|
68
|
+
"@keyv/compress-gzip": "^2.0.2",
|
|
71
69
|
"@keyv/test-suite": "^2.0.5",
|
|
72
70
|
"@keyv/memcache": "^2.0.1",
|
|
73
|
-
"@keyv/sqlite": "^4.0.1"
|
|
71
|
+
"@keyv/sqlite": "^4.0.1",
|
|
72
|
+
"@keyv/compress-lz4": "^1.0.0",
|
|
73
|
+
"@keyv/mongo": "^3.0.1"
|
|
74
74
|
},
|
|
75
75
|
"tsd": {
|
|
76
76
|
"directory": "test"
|