@travetto/auth 5.0.0-rc.1 → 5.0.0-rc.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/README.md CHANGED
@@ -26,7 +26,7 @@ The module's goal is to be as flexible as possible. To that end, the primary co
26
26
 
27
27
  **Code: Principal Structure**
28
28
  ```typescript
29
- export interface Principal<D = { [key: string]: any }> {
29
+ export interface Principal<D = AnyMap> {
30
30
  /**
31
31
  * Primary identifier for a user
32
32
  */
@@ -120,7 +120,7 @@ The [AuthUtil](https://github.com/travetto/travetto/tree/main/module/auth/src/ut
120
120
  ```typescript
121
121
  import crypto from 'node:crypto';
122
122
  import util from 'node:util';
123
- import { AppError, Util } from '@travetto/base';
123
+ import { AppError, Util } from '@travetto/runtime';
124
124
  const pbkdf2 = util.promisify(crypto.pbkdf2);
125
125
  /**
126
126
  * Standard auth utilities
@@ -147,7 +147,7 @@ export class AuthUtil {
147
147
  }
148
148
  ```
149
149
 
150
- `roleMatcher` is probably the only functionality that needs to be explained. The function extends the core allow/deny matcher functionality from [Base](https://github.com/travetto/travetto/tree/main/module/base#readme "Environment config and common utilities for travetto applications.")'s Util class.
150
+ `roleMatcher` is probably the only functionality that needs to be explained. The function extends the core allow/deny matcher functionality from [Runtime](https://github.com/travetto/travetto/tree/main/module/runtime#readme "Runtime for travetto applications.")'s Util class.
151
151
 
152
152
  An example of role checks could be:
153
153
  * Admin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/auth",
3
- "version": "5.0.0-rc.1",
3
+ "version": "5.0.0-rc.10",
4
4
  "description": "Authentication scaffolding for the Travetto framework",
5
5
  "keywords": [
6
6
  "authentication",
@@ -23,7 +23,7 @@
23
23
  "directory": "module/auth"
24
24
  },
25
25
  "dependencies": {
26
- "@travetto/base": "^5.0.0-rc.1"
26
+ "@travetto/runtime": "^5.0.0-rc.10"
27
27
  },
28
28
  "travetto": {
29
29
  "displayName": "Authentication"
@@ -1,11 +1,11 @@
1
+ import { AnyMap } from '@travetto/runtime';
2
+
1
3
  /**
2
4
  * A user principal, including permissions and details
3
- *
4
5
  * @concrete ../internal/types#PrincipalTarget
5
6
  * @augments `@travetto/rest:Context`
6
7
  */
7
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
- export interface Principal<D = { [key: string]: any }> {
8
+ export interface Principal<D = AnyMap> {
9
9
  /**
10
10
  * Primary identifier for a user
11
11
  */
package/src/util.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import crypto from 'node:crypto';
2
2
  import util from 'node:util';
3
3
 
4
- import { AppError, Util } from '@travetto/base';
4
+ import { AppError, Util } from '@travetto/runtime';
5
5
 
6
6
  const pbkdf2 = util.promisify(crypto.pbkdf2);
7
7