@live-change/framework 0.8.7 → 0.8.9
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/App.js +3 -3
- package/package.json +4 -4
package/lib/App.js
CHANGED
|
@@ -181,8 +181,8 @@ class App {
|
|
|
181
181
|
this.startedServices[serviceDefinition.name] = service
|
|
182
182
|
|
|
183
183
|
for(const viewName in serviceDefinition.views) {
|
|
184
|
-
const
|
|
185
|
-
if(
|
|
184
|
+
const viewDefinition = serviceDefinition.views[viewName]
|
|
185
|
+
if(viewDefinition.global) this.globalViews[viewName] = service.views[viewName]
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
return service
|
|
@@ -579,7 +579,7 @@ class App {
|
|
|
579
579
|
async viewGet(viewName, params) {
|
|
580
580
|
const view = this.globalViews[viewName]
|
|
581
581
|
if(!view) throw new Error(`Global view ${viewName} not found`)
|
|
582
|
-
return await view.get(params)
|
|
582
|
+
return await view.get(params, { internal: true, roles: ['admin'] })
|
|
583
583
|
}
|
|
584
584
|
|
|
585
585
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/framework",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/live-change/live-change-framework",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@live-change/dao": "^0.8.
|
|
26
|
-
"@live-change/uid": "^0.8.
|
|
25
|
+
"@live-change/dao": "^0.8.9",
|
|
26
|
+
"@live-change/uid": "^0.8.9"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "362dd55bd2773195e4cefd84080c10bd9fbaaf45"
|
|
29
29
|
}
|