@travetto/auth 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/package.json +2 -2
- package/src/config.ts +1 -1
- package/src/context.ts +4 -4
- package/src/service.ts +5 -5
- package/src/types/authenticator.ts +2 -2
- package/src/types/authorizer.ts +1 -1
- package/src/types/error.ts +1 -1
- package/src/types/principal.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/auth",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.6",
|
|
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.
|
|
27
|
+
"@travetto/context": "^7.0.6"
|
|
28
28
|
},
|
|
29
29
|
"travetto": {
|
|
30
30
|
"displayName": "Authentication"
|
package/src/config.ts
CHANGED
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
|
package/src/types/authorizer.ts
CHANGED
package/src/types/error.ts
CHANGED
|
@@ -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
|
package/src/types/principal.ts
CHANGED