@aooth/arbac-moost 0.1.2 → 0.1.3
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/dist/atscript/index.d.mts +13 -2
- package/package.json +4 -4
|
@@ -4,8 +4,19 @@ import { TAtscriptAnnotatedType } from "@atscript/typescript/utils";
|
|
|
4
4
|
|
|
5
5
|
//#region src/atscript/auto-provider.d.ts
|
|
6
6
|
/**
|
|
7
|
-
* Minimal atscript-db readable surface used to fetch the user record.
|
|
8
|
-
* `AtscriptDbTable
|
|
7
|
+
* Minimal atscript-db readable surface used to fetch the user record.
|
|
8
|
+
* Structurally compatible with `AtscriptDbTable<T>.findOne` so the runtime
|
|
9
|
+
* call site Just Works™ — but the public typings differ (atscript-db's
|
|
10
|
+
* `findOne` takes a wider `controls` shape with engine-specific keys we
|
|
11
|
+
* deliberately omit here to keep this surface narrow and engine-agnostic).
|
|
12
|
+
*
|
|
13
|
+
* Consequence: passing `db.getTable(UserModel)` directly will not satisfy
|
|
14
|
+
* this interface in TypeScript. Cast at the call site:
|
|
15
|
+
*
|
|
16
|
+
* ```ts
|
|
17
|
+
* super(UserModel, db.getTable(UserModel) as unknown as ArbacUserTable<UserModel>)
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
9
20
|
* Kept loose to avoid pulling `@atscript/db` types into the public surface.
|
|
10
21
|
*
|
|
11
22
|
* `controls.$with` is optional — included so providers can request nav-prop
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aooth/arbac-moost",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Moost RBAC integration for aoothjs (migrated from @moostjs/arbac)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"abac",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@aooth/arbac": "0.1.
|
|
58
|
-
"@aooth/arbac-core": "0.1.
|
|
59
|
-
"@aooth/user": "0.1.
|
|
57
|
+
"@aooth/arbac": "0.1.3",
|
|
58
|
+
"@aooth/arbac-core": "0.1.3",
|
|
59
|
+
"@aooth/user": "0.1.3"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@atscript/core": "^0.1.56",
|