@muze-nl/simplystore 0.6.28 → 0.6.30
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/package.json +2 -2
- package/src/command-worker-module.mjs +3 -1
- package/src/server.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muze-nl/simplystore",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.30",
|
|
4
4
|
"main": "src/server.mjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@muze-nl/od-jsontag": "^0.3.3",
|
|
21
21
|
"codemirror": "^6.0.1",
|
|
22
22
|
"express": "^4.18.1",
|
|
23
|
-
"@muze-nl/jaqt": "^0.9.
|
|
23
|
+
"@muze-nl/jaqt": "^0.9.8",
|
|
24
24
|
"json-pointer": "^0.6.2",
|
|
25
25
|
"jsonpath-plus": "^7.2.0",
|
|
26
26
|
"vm2": "^3.9.13",
|
|
@@ -65,7 +65,9 @@ export async function initialize(task) {
|
|
|
65
65
|
resultArr = dataspace[resultSet]
|
|
66
66
|
meta = task.meta
|
|
67
67
|
metaProxy.index.id = metaIdProxy
|
|
68
|
-
|
|
68
|
+
if (meta.schema) {
|
|
69
|
+
metaProxy.schema = meta.schema
|
|
70
|
+
}
|
|
69
71
|
datafile = task.datafile
|
|
70
72
|
commands = await import(task.commandsFile).then(mod => {
|
|
71
73
|
return mod.default
|
package/src/server.mjs
CHANGED
|
@@ -231,7 +231,7 @@ async function main(options) {
|
|
|
231
231
|
status.set(command.id, s)
|
|
232
232
|
if (data.data) { // data has changed, commands may do other things instead of changing data
|
|
233
233
|
jsontagBuffers.push(data.data) // push changeset to jsontagBuffers so that new query workers get all changes from scratch
|
|
234
|
-
meta
|
|
234
|
+
Object.assign(meta, data.meta)
|
|
235
235
|
queryWorkerPool.update({
|
|
236
236
|
name: 'update',
|
|
237
237
|
req: {
|