@travetto/auth-model 7.0.4 → 7.0.6

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
@@ -71,7 +71,7 @@ export interface RegisteredPrincipal extends Principal {
71
71
  **Code: A valid user model**
72
72
  ```typescript
73
73
  import { Model } from '@travetto/model';
74
- import { RegisteredPrincipal } from '@travetto/auth-model';
74
+ import type { RegisteredPrincipal } from '@travetto/auth-model';
75
75
 
76
76
  @Model()
77
77
  export class User implements RegisteredPrincipal {
@@ -94,7 +94,7 @@ Additionally, there exists a common practice of mapping various external securit
94
94
  ```typescript
95
95
  import { InjectableFactory } from '@travetto/di';
96
96
  import { ModelAuthService } from '@travetto/auth-model';
97
- import { ModelCrudSupport } from '@travetto/model';
97
+ import type { ModelCrudSupport } from '@travetto/model';
98
98
 
99
99
  import { User } from './model.ts';
100
100
 
@@ -134,9 +134,9 @@ class AuthConfig {
134
134
  ```typescript
135
135
  import { AppError } from '@travetto/runtime';
136
136
  import { Injectable, Inject } from '@travetto/di';
137
- import { ModelAuthService } from '@travetto/auth-model';
137
+ import type { ModelAuthService } from '@travetto/auth-model';
138
138
 
139
- import { User } from './model.ts';
139
+ import type { User } from './model.ts';
140
140
 
141
141
  @Injectable()
142
142
  class UserService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/auth-model",
3
- "version": "7.0.4",
3
+ "version": "7.0.6",
4
4
  "type": "module",
5
5
  "description": "Authentication model support for the Travetto framework",
6
6
  "keywords": [
@@ -26,11 +26,11 @@
26
26
  "directory": "module/auth-model"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/auth": "^7.0.4",
30
- "@travetto/model": "^7.0.4"
29
+ "@travetto/auth": "^7.0.6",
30
+ "@travetto/model": "^7.0.6"
31
31
  },
32
32
  "peerDependencies": {
33
- "@travetto/test": "^7.0.4"
33
+ "@travetto/test": "^7.0.6"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "@travetto/test": {
package/src/model.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Util, Class, TimeUtil, castTo } from '@travetto/runtime';
2
- import { ModelCrudSupport, ModelType, NotFoundError, OptionalId } from '@travetto/model';
3
- import { Principal, Authenticator, Authorizer, AuthenticationError } from '@travetto/auth';
1
+ import { Util, type Class, TimeUtil, castTo } from '@travetto/runtime';
2
+ import { type ModelCrudSupport, type ModelType, NotFoundError, type OptionalId } from '@travetto/model';
3
+ import { type Principal, type Authenticator, type Authorizer, AuthenticationError } from '@travetto/auth';
4
4
 
5
5
  import { AuthModelUtil } from './util.ts';
6
6
 
@@ -1,13 +1,13 @@
1
1
  import assert from 'node:assert';
2
2
 
3
- import { AppError, castTo, Class } from '@travetto/runtime';
3
+ import { AppError, castTo, type Class } from '@travetto/runtime';
4
4
  import { Suite, Test } from '@travetto/test';
5
5
  import { Inject, InjectableFactory } from '@travetto/di';
6
- import { ModelCrudSupport, Model, Transient } from '@travetto/model';
6
+ import { type ModelCrudSupport, Model, Transient } from '@travetto/model';
7
7
  import { InjectableSuite } from '@travetto/di/support/test/suite.ts';
8
8
  import { ModelSuite } from '@travetto/model/support/test/suite.ts';
9
9
 
10
- import { ModelAuthService, RegisteredPrincipal } from '../../src/model.ts';
10
+ import { ModelAuthService, type RegisteredPrincipal } from '../../src/model.ts';
11
11
 
12
12
  export const TestModelSvcSymbol = Symbol.for('@travetto/auth:test-model-svc');
13
13