deepbase-redis 1.0.7 → 1.0.9

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/demo/demo.mjs CHANGED
@@ -12,7 +12,7 @@ console.log(configLang); // "en"
12
12
 
13
13
  // ADD
14
14
  const path = await mem.add("user", { name: "martin" });
15
- console.log(path) // [ 'user', 'iKid4OCKds' ] / iKid4OCKds is a random string
15
+ console.log(path) // [ 'user', 'CqtOILTDUg' ] / CqtOILTDUg is a random string
16
16
 
17
17
  const userName = await mem.get(...path, "name");
18
18
  console.log(userName); // "martin"
@@ -38,6 +38,7 @@ console.log({
38
38
  user: await mem.get("user")
39
39
  })
40
40
 
41
+ await mem.disconnect();
41
42
  // {
42
43
  // "config": {
43
44
  // "lang": "EN"
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "deepbase-redis",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "⚡ Fastest and simplest way to add Redis persistence to your projects.",
5
- "main": "index.js",
5
+ "main": "index.mjs",
6
6
  "dependencies": {
7
7
  "nanoid": "^5.0.4",
8
8
  "redis": "^4.6.12"
package/test/test.mjs CHANGED
@@ -13,6 +13,7 @@ describe('DeepBaseRedis', () => {
13
13
 
14
14
  afterEach(async () => {
15
15
  await db.del('foo');
16
+ await db.disconnect();
16
17
  });
17
18
 
18
19
  describe('#set()', () => {
@@ -131,6 +132,7 @@ describe('DeepBaseRedis', () => {
131
132
  await db.upd('foo', 'bar', n => n * 3);
132
133
  assert.deepEqual(await db.get('foo', 'bar'), 6);
133
134
  });
134
-
135
135
  });
136
+
137
+
136
138
  });