zenstack 0.2.9 → 0.2.10
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
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publisher": "zenstack",
|
|
4
4
|
"displayName": "ZenStack Language Tools",
|
|
5
5
|
"description": "ZenStack is a toolkit that simplifies full-stack development",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.10",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "ZenStack Team"
|
|
9
9
|
},
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"main": "./bundle/extension.js",
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@zenstackhq/internal": "0.2.
|
|
67
|
+
"@zenstackhq/internal": "0.2.10",
|
|
68
68
|
"change-case": "^4.1.2",
|
|
69
69
|
"chevrotain": "^9.1.0",
|
|
70
70
|
"colors": "^1.4.0",
|
|
@@ -160,7 +160,8 @@ export default class QueryGuardGenerator {
|
|
|
160
160
|
.addBody();
|
|
161
161
|
|
|
162
162
|
func.addStatements(
|
|
163
|
-
|
|
163
|
+
// make suer user id is always available
|
|
164
|
+
`const user = context.user?.id ? context.user : { ...context.user, id: '${UNKNOWN_USER_ID}' };`
|
|
164
165
|
);
|
|
165
166
|
|
|
166
167
|
// r = <guard object>;
|