@ddd-ts-kit/auth 0.1.1 → 0.3.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 +3 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -118,7 +118,7 @@ import { Requires } from '@ddd-ts-kit/kernel/declarations';
|
|
|
118
118
|
export class VoidInvoice extends AuthorizedCommand { /* ... */ }
|
|
119
119
|
|
|
120
120
|
// void-invoice.handler.ts: Access comes from '@ddd-ts-kit/auth', which the application layer may import
|
|
121
|
-
@CommandHandler(VoidInvoice
|
|
121
|
+
@CommandHandler(VoidInvoice)
|
|
122
122
|
export class VoidInvoiceHandler implements CommandHandler<VoidInvoice> { /* ... */ }
|
|
123
123
|
```
|
|
124
124
|
|
|
@@ -129,7 +129,7 @@ the one of the message. A policy class declared with
|
|
|
129
129
|
method, and `appliesTo(subject)` when it must tell its subjects apart) is evaluated by
|
|
130
130
|
`Access` next to the policies given to `authorizationModule`.
|
|
131
131
|
|
|
132
|
-
The ports of this package are abstract classes, and the class is what a
|
|
132
|
+
The ports of this package are abstract classes, and the class is what a constructor parameter, a
|
|
133
133
|
binding or a test names: `Authorizer`, `Access`, `Authenticator`, `SessionAuthenticator` and
|
|
134
134
|
`ResourceAttributes` from `@ddd-ts-kit/auth`, `RelationTupleStore` from
|
|
135
135
|
`@ddd-ts-kit/auth/rebac`. An adapter `implements` its port and never extends it; a plain
|
|
@@ -716,7 +716,7 @@ helpers of the kernel:
|
|
|
716
716
|
// contexts/billing/infrastructure/persistence/drizzle-invoice.repository.ts
|
|
717
717
|
import { stampCreation, stampUpdate, tenantScopeOf } from '@ddd-ts-kit/kernel';
|
|
718
718
|
|
|
719
|
-
@Repository(InvoiceRepository
|
|
719
|
+
@Repository(InvoiceRepository)
|
|
720
720
|
export class DrizzleInvoiceRepository implements InvoiceRepository {
|
|
721
721
|
constructor(
|
|
722
722
|
private readonly context: Database,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-ts-kit/auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Authentication and authorization behind ports: actors, permissions declared per use case, role, attribute and relationship (Zanzibar-style) based authorizers, deny by default.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ddd-ts-kit/kernel": "0.
|
|
45
|
+
"@ddd-ts-kit/kernel": "0.3.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@ddd-ts-kit/di": "0.
|
|
49
|
-
"@ddd-ts-kit/testing": "0.
|
|
48
|
+
"@ddd-ts-kit/di": "0.3.0",
|
|
49
|
+
"@ddd-ts-kit/testing": "0.3.0",
|
|
50
50
|
"jose": "^6.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@ddd-ts-kit/di": "0.
|
|
65
|
-
"@ddd-ts-kit/http": "0.
|
|
66
|
-
"@ddd-ts-kit/testing": "0.
|
|
64
|
+
"@ddd-ts-kit/di": "0.3.0",
|
|
65
|
+
"@ddd-ts-kit/http": "0.3.0",
|
|
66
|
+
"@ddd-ts-kit/testing": "0.3.0",
|
|
67
67
|
"jose": "^6.0.0"
|
|
68
68
|
}
|
|
69
69
|
}
|