@live-change/db 0.8.14 → 0.8.16
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 +4 -0
- package/package.json +5 -5
package/lib/Index.js
CHANGED
|
@@ -471,6 +471,10 @@ class Index extends Table {
|
|
|
471
471
|
})
|
|
472
472
|
const queryFunction = this.scriptContext.getOrCreateFunction(this.code,
|
|
473
473
|
`userCode:${this.database.name}/indexes/${this.name}`)
|
|
474
|
+
if(typeof queryFunction != 'function') {
|
|
475
|
+
console.error("INDEX CODE", this.code)
|
|
476
|
+
throw new Error("Index code is not a function")
|
|
477
|
+
}
|
|
474
478
|
this.codeFunction = (input, output) => queryFunction(input, output, this.params)
|
|
475
479
|
this.writer = new IndexWriter(this)
|
|
476
480
|
this.reader = null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.16",
|
|
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.8.
|
|
26
|
-
"@live-change/db-store-lmdb": "^0.8.
|
|
25
|
+
"@live-change/db-store-level": "^0.8.16",
|
|
26
|
+
"@live-change/db-store-lmdb": "^0.8.16",
|
|
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.8.
|
|
35
|
+
"@live-change/dao": "^0.8.16",
|
|
36
36
|
"get-random-values": "^1.2.2",
|
|
37
37
|
"node-interval-tree": "^1.3.3"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "b8ac84cbe1a8c435c7b5003dfc64ddc41a4e15a6"
|
|
40
40
|
}
|