@ultimat3/policy 29.4.0 → 30.1.0
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/README.md +2 -0
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@ wrong, and nobody finds out until it is a CVE. This package exists so a second o
|
|
|
6
6
|
never necessary. Every MCP tool, live query, job and route resolves the *same* policy
|
|
7
7
|
object through the *same* `evaluate()`.
|
|
8
8
|
|
|
9
|
+
`bun add @ultimat3/policy` · guide: [Policies And Authz](https://github.com/developerz-ai/ultimate/wiki/Policies-And-Authz)
|
|
10
|
+
|
|
9
11
|
```ts
|
|
10
12
|
export const publishPost = action({
|
|
11
13
|
policy: can('post:publish', ({ input, actor }) => ownsPost(actor, input.postId)),
|
package/package.json
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/policy",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.1.0",
|
|
4
4
|
"description": "The one authz rule, evaluated identically in every surface",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ultimate",
|
|
7
|
+
"bun",
|
|
8
|
+
"framework",
|
|
9
|
+
"authorization",
|
|
10
|
+
"authz",
|
|
11
|
+
"policy",
|
|
12
|
+
"rbac"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/developerz-ai/ultimate/wiki/Policies-And-Authz",
|
|
5
15
|
"license": "MIT",
|
|
6
16
|
"type": "module",
|
|
7
17
|
"repository": {
|
|
@@ -32,6 +42,6 @@
|
|
|
32
42
|
"test": "bun test"
|
|
33
43
|
},
|
|
34
44
|
"dependencies": {
|
|
35
|
-
"@ultimat3/core": "
|
|
45
|
+
"@ultimat3/core": "30.1.0"
|
|
36
46
|
}
|
|
37
47
|
}
|