@live-change/db 0.6.4 → 0.6.6
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/ScriptContext.js +2 -2
- package/package.json +5 -5
package/lib/ScriptContext.js
CHANGED
|
@@ -90,12 +90,12 @@ class ScriptContext {
|
|
|
90
90
|
getOrCreateFunction(code, filename) {
|
|
91
91
|
const cleanCode = code.replace(/\n +/g, "\n")
|
|
92
92
|
//console.log("COMPILED FUNCTIONS", `\n[\n ${Object.keys(globalThis.compiledFunctions).join(',\n ')},\n]`)
|
|
93
|
-
if(!(globalThis.compiledFunctions = globalThis.compiledFunctions || {})[cleanCode]) {
|
|
93
|
+
/*if(!(globalThis.compiledFunctions = globalThis.compiledFunctions || {})[cleanCode]) {
|
|
94
94
|
console.log("############# compiled function not found: ", code)
|
|
95
95
|
for(const key of Object.keys(globalThis.compiledFunctions)) {
|
|
96
96
|
console.log(`compiled func |${cleanCode}| == |${key}| => ${cleanCode == key}`)
|
|
97
97
|
}
|
|
98
|
-
}
|
|
98
|
+
}*/
|
|
99
99
|
const queryFunction = (globalThis.compiledFunctions = globalThis.compiledFunctions || {})[cleanCode]
|
|
100
100
|
?? this.run(code, filename)
|
|
101
101
|
;(globalThis.compiledFunctions = globalThis.compiledFunctions || {})[cleanCode] = queryFunction
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
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.6.
|
|
25
|
-
"@live-change/db-store-lmdb": "^0.6.
|
|
24
|
+
"@live-change/db-store-level": "^0.6.6",
|
|
25
|
+
"@live-change/db-store-lmdb": "^0.6.6",
|
|
26
26
|
"minimist": ">=1.2.3",
|
|
27
27
|
"next-tick": "^1.1.0",
|
|
28
28
|
"rimraf": "^3.0.2",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"websocket-extensions": ">=0.1.4"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@live-change/dao": "0.5.
|
|
34
|
+
"@live-change/dao": "0.5.18",
|
|
35
35
|
"get-random-values": "^1.2.2",
|
|
36
36
|
"node-interval-tree": "^1.3.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "3a16e043de07836bc79e82c9c519cc7bf48d57a3"
|
|
39
39
|
}
|