@live-change/framework 0.9.143 → 0.9.145

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.
@@ -22,6 +22,10 @@ class ForeignModelDefinition {
22
22
  return `[ForeignModel ${this.serviceName}.${this.name}]`
23
23
  }
24
24
 
25
+ toString() {
26
+ return this.toQueryDescription()
27
+ }
28
+
25
29
  }
26
30
 
27
31
  export default ForeignModelDefinition
@@ -113,6 +113,10 @@ class ModelDefinition<T extends ModelDefinitionSpecification> {
113
113
  return changes
114
114
  }
115
115
 
116
+ toString() {
117
+ return this.toQueryDescription()
118
+ }
119
+
116
120
  }
117
121
 
118
122
  export default ModelDefinition
@@ -96,7 +96,7 @@ async function update(changes, service, app, force) {
96
96
  const match = indexConfigClean === requiredConfig
97
97
  if(!match) {
98
98
  console.log("INDEXES NOT MATCHING, DELETING AND RECREATING", indexConfigClean, requiredConfig)
99
- await dao.request(['database', 'deleteIndex'], database, indexName)
99
+ await dao.requestWithSettings(updaterRequestSettings, ['database', 'deleteIndex'], database, indexName)
100
100
  return await doCreateIndexIfNotExists(indexName, functionCode, parameters, storage)
101
101
  } else {
102
102
  console.log("INDEXES MATCHING, SKIPPING")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/framework",
3
- "version": "0.9.143",
3
+ "version": "0.9.145",
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.143",
26
- "@live-change/uid": "^0.9.143",
25
+ "@live-change/dao": "^0.9.145",
26
+ "@live-change/uid": "^0.9.145",
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": "5d1d50252b6abcf7149a961ac0b4c521c1c53b56"
31
+ "gitHead": "66fc216294ca0f2ca3174e865e793a28e726f9f0"
32
32
  }