@travetto/auth 5.0.12 → 5.0.13

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": "5.0.12",
3
+ "version": "5.0.13",
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/runtime": "^5.0.12"
26
+ "@travetto/runtime": "^5.0.13"
27
27
  },
28
28
  "travetto": {
29
29
  "displayName": "Authentication"
@@ -1,7 +1,6 @@
1
- import { AppError, AppErrorOptions } from '@travetto/runtime';
1
+ import { AppError, ErrorCategory } from '@travetto/runtime';
2
2
 
3
- export class AuthenticationError<T> extends AppError<T> {
4
- constructor(message: string, opts?: AppErrorOptions<T>) {
5
- super(message, { category: 'authentication', ...opts });
6
- }
3
+ export class AuthenticationError<T = Record<string, unknown> | undefined> extends AppError<T> {
4
+ // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
5
+ static defaultCategory = 'authentication' as ErrorCategory;
7
6
  }