@live-change/db 0.9.85 → 0.9.87
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/ChangeStream.js +1 -0
- package/lib/Index.js +2 -2
- package/package.json +5 -5
package/lib/ChangeStream.js
CHANGED
|
@@ -125,6 +125,7 @@ class ChangeStream {
|
|
|
125
125
|
if(typeof range === 'string') {
|
|
126
126
|
range = { gte: range, lte: range + '\xFF\xFF\xFF\xFF' }
|
|
127
127
|
}
|
|
128
|
+
range.limit = 1
|
|
128
129
|
const count = await this.count(range)
|
|
129
130
|
if(count) {
|
|
130
131
|
await pipe.change(existingObj, null, id, timestamp)
|
package/lib/Index.js
CHANGED
|
@@ -530,12 +530,12 @@ class Index extends Table {
|
|
|
530
530
|
return this.startPromise
|
|
531
531
|
}
|
|
532
532
|
async startIndexInternal() {
|
|
533
|
-
|
|
533
|
+
debug("STARTING INDEX", this.name, "IN DATABASE", this.database.name)
|
|
534
534
|
debug("EXECUTING INDEX CODE", this.name)
|
|
535
535
|
this.scriptContext = this.database.createScriptContext({
|
|
536
536
|
/// TODO: script available routines
|
|
537
537
|
})
|
|
538
|
-
|
|
538
|
+
debug("COMPILE INDEX CODE", this.code)
|
|
539
539
|
const queryFunction = this.scriptContext.getOrCreateFunction(this.code,
|
|
540
540
|
`userCode:${this.database.name}/indexes/${this.name}`)
|
|
541
541
|
if(typeof queryFunction != 'function') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.87",
|
|
4
4
|
"description": "Database with observable data for live queries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@live-change/db-store-level": "^0.9.
|
|
26
|
-
"@live-change/db-store-lmdb": "^0.9.
|
|
25
|
+
"@live-change/db-store-level": "^0.9.87",
|
|
26
|
+
"@live-change/db-store-lmdb": "^0.9.87",
|
|
27
27
|
"minimist": ">=1.2.3",
|
|
28
28
|
"next-tick": "^1.1.0",
|
|
29
29
|
"rimraf": "^5.0.5",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"websocket-extensions": ">=0.1.4"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@live-change/dao": "^0.9.
|
|
35
|
+
"@live-change/dao": "^0.9.87",
|
|
36
36
|
"get-random-values": "^1.2.2",
|
|
37
37
|
"node-interval-tree": "^1.3.3"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "7a7694ad2801b7ffa16f347aed441ca5f81ab5fd"
|
|
40
40
|
}
|