@travetto/auth 7.0.4 → 7.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/auth",
3
- "version": "7.0.4",
3
+ "version": "7.0.5",
4
4
  "type": "module",
5
5
  "description": "Authentication scaffolding for the Travetto framework",
6
6
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  "directory": "module/auth"
25
25
  },
26
26
  "dependencies": {
27
- "@travetto/context": "^7.0.4"
27
+ "@travetto/context": "^7.0.5"
28
28
  },
29
29
  "travetto": {
30
30
  "displayName": "Authentication"
package/src/config.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Config } from '@travetto/config';
2
- import { TimeSpan, TimeUtil } from '@travetto/runtime';
2
+ import { type TimeSpan, TimeUtil } from '@travetto/runtime';
3
3
  import { Ignore } from '@travetto/schema';
4
4
 
5
5
  @Config('auth')
package/src/context.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Inject, Injectable } from '@travetto/di';
2
- import { AsyncContext, AsyncContextValue } from '@travetto/context';
2
+ import { type AsyncContext, AsyncContextValue } from '@travetto/context';
3
3
 
4
- import { AuthToken } from './types/token.ts';
5
- import { Principal } from './types/principal.ts';
6
- import { AuthenticatorState } from './types/authenticator.ts';
4
+ import type { AuthToken } from './types/token.ts';
5
+ import type { Principal } from './types/principal.ts';
6
+ import type { AuthenticatorState } from './types/authenticator.ts';
7
7
 
8
8
  /**
9
9
  * Provides the primary context for the authenticated state
package/src/service.ts CHANGED
@@ -2,12 +2,12 @@
2
2
  import { DependencyRegistryIndex, getDefaultQualifier, Inject, Injectable } from '@travetto/di';
3
3
  import { toConcrete, TimeUtil } from '@travetto/runtime';
4
4
 
5
- import { Principal } from './types/principal.ts';
6
- import { Authenticator } from './types/authenticator.ts';
7
- import { Authorizer } from './types/authorizer.ts';
5
+ import type { Principal } from './types/principal.ts';
6
+ import type { Authenticator } from './types/authenticator.ts';
7
+ import type { Authorizer } from './types/authorizer.ts';
8
8
  import { AuthenticationError } from './types/error.ts';
9
- import { AuthContext } from './context.ts';
10
- import { AuthConfig } from './config.ts';
9
+ import type { AuthContext } from './context.ts';
10
+ import type { AuthConfig } from './config.ts';
11
11
 
12
12
  @Injectable()
13
13
  export class AuthService {
@@ -1,5 +1,5 @@
1
- import { AnyMap } from '@travetto/runtime';
2
- import { Principal } from './principal.ts';
1
+ import type { AnyMap } from '@travetto/runtime';
2
+ import type { Principal } from './principal.ts';
3
3
 
4
4
  /**
5
5
  * Represents the general shape of additional login context, usually across multiple calls
@@ -1,4 +1,4 @@
1
- import { Principal } from './principal.ts';
1
+ import type { Principal } from './principal.ts';
2
2
 
3
3
  /**
4
4
  * Definition of an authorization source, which validates a principal into an authorized principal
@@ -1,4 +1,4 @@
1
- import { AppError, ErrorCategory } from '@travetto/runtime';
1
+ import { AppError, type ErrorCategory } from '@travetto/runtime';
2
2
 
3
3
  export class AuthenticationError<T = Record<string, unknown> | undefined> extends AppError<T> {
4
4
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
@@ -1,4 +1,4 @@
1
- import { AnyMap } from '@travetto/runtime';
1
+ import type { AnyMap } from '@travetto/runtime';
2
2
 
3
3
  /**
4
4
  * A user principal, including permissions and details