@live-change/framework 0.9.83 → 0.9.85

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.
@@ -75,8 +75,9 @@ async function update(changes, service, app, force) {
75
75
 
76
76
  if(index.function) {
77
77
  const functionCode = `(${index.function})`
78
- ;(globalThis.compiledFunctions = globalThis.compiledFunctions || {})[functionCode] = index.function
79
- await dao.request(['database', 'createIndex'], database, indexName, functionCode, { ...(index.parameters || {}) }, index.storage ?? {})
78
+ ;(globalThis.compiledFunctionsCandidates = globalThis.compiledFunctionsCandidates || {})[functionCode] = index.function
79
+ await dao.request(['database', 'createIndex'], database, indexName, functionCode,
80
+ { ...(index.parameters || {}) }, index.storage ?? {})
80
81
  } else {
81
82
  if(!table) throw new Error("only function indexes are possible without table")
82
83
  if(index.multi) {
@@ -118,7 +119,7 @@ async function update(changes, service, app, force) {
118
119
  })
119
120
  }
120
121
  const functionCode = `(${func})`
121
- ;(globalThis.compiledFunctions = globalThis.compiledFunctions || {})[functionCode] = func
122
+ ;(globalThis.compiledFunctionsCandidates = globalThis.compiledFunctionsCandidates || {})[functionCode] = func
122
123
  await dao.requestWithSettings(indexRequestSettings, ['database', 'createIndex'], database, indexName,
123
124
  functionCode, { properties, table, hash: index.hash }, index.storage ?? {})
124
125
  } else {
@@ -137,7 +138,7 @@ async function update(changes, service, app, force) {
137
138
  output.change(obj && mapper(obj), oldObj && mapper(oldObj)) )
138
139
  }
139
140
  const functionCode = `(${func})`
140
- ;(globalThis.compiledFunctions = globalThis.compiledFunctions || {})[functionCode] = func
141
+ ;(globalThis.compiledFunctionsCandidates = globalThis.compiledFunctionsCandidates || {})[functionCode] = func
141
142
  await dao.requestWithSettings(indexRequestSettings, ['database', 'createIndex'], database, indexName,
142
143
  functionCode, { properties, table, hash: index.hash }, index.storage ?? {})
143
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/framework",
3
- "version": "0.9.83",
3
+ "version": "0.9.85",
4
4
  "description": "Live Change Framework - ultimate solution for real time mobile/web apps",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "homepage": "https://github.com/live-change/live-change-stack",
24
24
  "devDependencies": {
25
- "@live-change/dao": "^0.9.83",
26
- "@live-change/uid": "^0.9.83",
25
+ "@live-change/dao": "^0.9.85",
26
+ "@live-change/uid": "^0.9.85",
27
27
  "typedoc": "0.28.3",
28
28
  "typedoc-plugin-markdown": "^4.6.3",
29
29
  "typedoc-plugin-rename-defaults": "^0.7.3"
30
30
  },
31
- "gitHead": "db3fcd19e6e3a47dda84d3906e697623f057713a"
31
+ "gitHead": "126afb0aad3ab6e03aa5742726f429c95c46783a"
32
32
  }
package/typedoc.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "entryPoints": ["index.ts"],
3
- "out": "docs",
3
+ "out": "../../docs/docs/framework",
4
4
  "includeVersion": true,
5
5
  "excludePrivate": true,
6
6
  "excludeInternal": true,