@travetto/auth 3.4.1 → 4.0.0-rc.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 CHANGED
@@ -118,8 +118,8 @@ The [AuthUtil](https://github.com/travetto/travetto/tree/main/module/auth/src/ut
118
118
 
119
119
  **Code: Auth util structure**
120
120
  ```typescript
121
- import crypto from 'crypto';
122
- import util from 'util';
121
+ import crypto from 'node:crypto';
122
+ import util from 'node:util';
123
123
  import { AppError, Util } from '@travetto/base';
124
124
  const pbkdf2 = util.promisify(crypto.pbkdf2);
125
125
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/auth",
3
- "version": "3.4.1",
3
+ "version": "4.0.0-rc.0",
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": "^3.4.1"
26
+ "@travetto/base": "^4.0.0-rc.0"
27
27
  },
28
28
  "travetto": {
29
29
  "displayName": "Authentication"
@@ -3,7 +3,7 @@ import { Principal } from './principal';
3
3
  /**
4
4
  * Supports validation payload of type T into an authenticated principal
5
5
  *
6
- * @concrete ../internal/types:AuthenticatorTarget
6
+ * @concrete ../internal/types#AuthenticatorTarget
7
7
  */
8
8
  export interface Authenticator<T = unknown, P extends Principal = Principal, C = unknown> {
9
9
  /**
@@ -3,7 +3,7 @@ import { Principal } from './principal';
3
3
  /**
4
4
  * Definition of an authorization source, which validates a principal into an authorized principal
5
5
  *
6
- * @concrete ../internal/types:AuthorizerTarget
6
+ * @concrete ../internal/types#AuthorizerTarget
7
7
  */
8
8
  export interface Authorizer<P extends Principal = Principal> {
9
9
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * A user principal, including permissions and details
3
3
  *
4
- * @concrete ../internal/types:PrincipalTarget
4
+ * @concrete ../internal/types#PrincipalTarget
5
5
  * @augments `@travetto/rest:Context`
6
6
  */
7
7
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/src/util.ts CHANGED
@@ -1,5 +1,5 @@
1
- import crypto from 'crypto';
2
- import util from 'util';
1
+ import crypto from 'node:crypto';
2
+ import util from 'node:util';
3
3
 
4
4
  import { AppError, Util } from '@travetto/base';
5
5