deepbase-redis 1.0.18 → 1.0.20
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 +1 -1
- package/{index.mjs → index.js} +6 -4
- package/package.json +3 -3
- package/test/test.mjs +1 -1
package/demo/demo.mjs
CHANGED
package/{index.mjs → index.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const { createClient } = require('redis');
|
|
2
|
+
const { customAlphabet } = require('nanoid');
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
class DeepBaseRedis {
|
|
5
5
|
|
|
6
6
|
constructor(opts = {}) {
|
|
7
7
|
this.nidAlphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
@@ -115,4 +115,6 @@ export default class DeepBaseRedis {
|
|
|
115
115
|
await this.set(...[...keys, id, value])
|
|
116
116
|
return [...keys, id]
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
module.exports = DeepBaseRedis;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepbase-redis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"description": "⚡ Fastest and simplest way to add Redis Stack persistence to your projects.",
|
|
5
|
-
"main": "index.
|
|
5
|
+
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"nanoid": "^
|
|
7
|
+
"nanoid": "^3.3.4",
|
|
8
8
|
"redis": "^4.6.12"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|