@zenstackhq/runtime 1.0.0-alpha.42 → 1.0.0-alpha.43
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.
|
@@ -265,7 +265,7 @@ class PolicyProxyHandler {
|
|
|
265
265
|
const result = yield this.utils.readWithCheck(this.model, readArgs);
|
|
266
266
|
if (result.length === 0) {
|
|
267
267
|
this.logger.warn(`${action} result cannot be read back`);
|
|
268
|
-
throw this.utils.deniedByPolicy(this.model, operation, '
|
|
268
|
+
throw this.utils.deniedByPolicy(this.model, operation, 'RESULT_NOT_READABLE');
|
|
269
269
|
}
|
|
270
270
|
else if (result.length > 1) {
|
|
271
271
|
throw this.utils.unknownError('write unexpected resulted in multiple readback entities');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenstackhq/runtime",
|
|
3
3
|
"displayName": "ZenStack Runtime Library",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.43",
|
|
5
5
|
"description": "Runtime of ZenStack for both client-side and server-side environments.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"tslib": "^2.4.1",
|
|
25
25
|
"zod": "^3.19.1",
|
|
26
26
|
"zod-validation-error": "^0.2.1",
|
|
27
|
-
"@zenstackhq/sdk": "1.0.0-alpha.
|
|
27
|
+
"@zenstackhq/sdk": "1.0.0-alpha.43"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@prisma/client": "^4.0.0",
|