@live-change/framework 0.9.91 → 0.9.92

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.
@@ -78,15 +78,18 @@ async function update(changes, service, app, force) {
78
78
  } catch(e) {
79
79
  if((e.message ?? e).toString().includes("already exists")) {
80
80
  const indexConfig = await dao.get(['database', 'indexConfig', database, indexName])
81
- const requiredConfig = {
82
- name: indexName,
83
- functionCode,
84
- parameters,
85
- storage
86
- }
87
- const match = JSON.stringify(indexConfig) === JSON.stringify(requiredConfig)
81
+ const indexConfigClean = JSON.stringify({
82
+ ...indexConfig,
83
+ uid: undefined,
84
+ sources
85
+ })
86
+ const requiredConfig = JSON.stringify({
87
+ code: functionCode,
88
+ parameters
89
+ })
90
+ const match = indexConfigClean === requiredConfig
88
91
  if(!match) {
89
- console.log('ERROR INDEX MATCH', indexConfig, requiredConfig, "MATCH", match)
92
+ console.log('ERROR INDEX MATCH', indexConfigClean, requiredConfig, "MATCH", match)
90
93
  }
91
94
  }
92
95
  throw e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/framework",
3
- "version": "0.9.91",
3
+ "version": "0.9.92",
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.91",
26
- "@live-change/uid": "^0.9.91",
25
+ "@live-change/dao": "^0.9.92",
26
+ "@live-change/uid": "^0.9.92",
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": "64adecec5e1fc364fc6d112f6039189bc18bd131"
31
+ "gitHead": "470f95e97f64dc3b9bbe3e6f809927a4757c2802"
32
32
  }