@live-change/db 0.5.22 → 0.5.23
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/lib/Index.js +2 -1
- package/package.json +5 -5
package/lib/Index.js
CHANGED
|
@@ -180,6 +180,7 @@ class TableReader extends ChangeStream {
|
|
|
180
180
|
if(!this.opLog) this.opLog = this.isLog ? (await this.table).data : (await this.table).opLog
|
|
181
181
|
//console.log("READ OP LOG", this.prefix, key, opLogBatchSize)
|
|
182
182
|
this.opLogObservableRange = { gt: key, limit: opLogBatchSize }
|
|
183
|
+
//console.log("READ OP LOG", this.prefix, "RANGE", JSON.stringify(this.opLogObservableRange))
|
|
183
184
|
this.opLogObservable = this.opLog.rangeObservable(this.opLogObservableRange)
|
|
184
185
|
/// NEXT TICK BECAUSE IT CAN FINISH BEFORE EVENT START xD
|
|
185
186
|
process.nextTick(() => this.opLogObservable.observe(this))
|
|
@@ -245,7 +246,7 @@ class TableReader extends ChangeStream {
|
|
|
245
246
|
const next = this.opLogBuffer.shift()
|
|
246
247
|
lastKey = next.id
|
|
247
248
|
if(this.isLog) {
|
|
248
|
-
await this.change(next, null, next, next.id)
|
|
249
|
+
await this.change(next, null, next.id, next.id)
|
|
249
250
|
} else {
|
|
250
251
|
const op = next.operation
|
|
251
252
|
//if(this.prefix == 'table_triggers') console.log("HANDLE OP LOG OPERATION", next)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.23",
|
|
4
4
|
"description": "Database with observable data for live queries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/live-change/live-change-db",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@live-change/db-store-level": "^0.5.
|
|
25
|
-
"@live-change/db-store-lmdb": "^0.5.
|
|
24
|
+
"@live-change/db-store-level": "^0.5.23",
|
|
25
|
+
"@live-change/db-store-lmdb": "^0.5.23",
|
|
26
26
|
"minimist": ">=1.2.3",
|
|
27
27
|
"rimraf": "^3.0.2",
|
|
28
28
|
"sockjs": "^0.3.24",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"websocket-extensions": ">=0.1.4"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@live-change/dao": "0.5.
|
|
33
|
+
"@live-change/dao": "0.5.9",
|
|
34
34
|
"get-random-values": "^1.2.2",
|
|
35
35
|
"node-interval-tree": "^1.3.3"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "481a5cd01bd21e4caab4638bb0aa76e251fb2709"
|
|
38
38
|
}
|