deepbase-redis 1.0.6 → 1.0.8

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/README.md CHANGED
@@ -11,7 +11,7 @@ npm install deepbase
11
11
 
12
12
  ## 🔧 Usage
13
13
  ```js
14
- const DeepBase = require("deepbase");
14
+ import DeepBase from "deepbase-redis"
15
15
  const mem = new DeepBase({ name: "db" }); // "db" redis prefix
16
16
  await mem.connect();
17
17
  ```
package/demo/demo.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import DeepBase from '../index.mjs';
1
+ import DeepBase from "../index.mjs";
2
2
 
3
3
  const mem = new DeepBase({ name: "demo" });
4
4
 
@@ -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"
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "deepbase-redis",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
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"