@live-change/db-store-observable-db 0.1.2 → 0.5.4
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/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/db-store-observable-db.iml +9 -0
- package/lib/Store.js +1 -1
- package/package.json +6 -5
- package/tests/store-non-reactive.js +8 -1
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/db-store-observable-db.iml" filepath="$PROJECT_DIR$/db-store-observable-db.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/vcs.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
package/lib/Store.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db-store-observable-db",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Database backend protocol",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/live-change/
|
|
11
|
+
"url": "git+https://github.com/live-change/live-change-db.git"
|
|
12
12
|
},
|
|
13
13
|
"author": {
|
|
14
14
|
"email": "m8@em8.pl",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"bugs": {
|
|
20
|
-
"url": "https://github.com/live-change/
|
|
20
|
+
"url": "https://github.com/live-change/live-change-db/issues"
|
|
21
21
|
},
|
|
22
|
-
"homepage": "https://github.com/live-change/
|
|
22
|
+
"homepage": "https://github.com/live-change/live-change-db",
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"tape": "^4.11.0"
|
|
25
25
|
},
|
|
@@ -28,5 +28,6 @@
|
|
|
28
28
|
"bufferutil": "^4.0.3",
|
|
29
29
|
"utf-8-validate": "^5.0.4",
|
|
30
30
|
"ws": "^7.4.5"
|
|
31
|
-
}
|
|
31
|
+
},
|
|
32
|
+
"gitHead": "0dfd0cb953fad982630808934326d00abea2c2b4"
|
|
32
33
|
}
|
|
@@ -23,7 +23,7 @@ test("store non-reactive properties", t => {
|
|
|
23
23
|
})
|
|
24
24
|
|
|
25
25
|
t.test("non reactive operations", async t => {
|
|
26
|
-
t.plan(
|
|
26
|
+
t.plan(25)
|
|
27
27
|
|
|
28
28
|
t.test("put value", async t => {
|
|
29
29
|
t.plan(1)
|
|
@@ -78,6 +78,13 @@ test("store non-reactive properties", t => {
|
|
|
78
78
|
t.deepEqual(values, 3, 'range count' )
|
|
79
79
|
})
|
|
80
80
|
|
|
81
|
+
t.test("count all", async t => {
|
|
82
|
+
t.plan(1)
|
|
83
|
+
let values = await store.countGet({ })
|
|
84
|
+
t.deepEqual(values, 3, 'full count' )
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
|
|
81
88
|
t.test("get reverse range [c,a]", async t => {
|
|
82
89
|
t.plan(1)
|
|
83
90
|
let values = await store.rangeGet({ gte: 'a', lte: 'c', reverse: true })
|