@travetto/auth-model 5.0.0-rc.1 → 5.0.0-rc.3

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
@@ -129,7 +129,7 @@ class AuthConfig {
129
129
 
130
130
  **Code: Sample usage**
131
131
  ```typescript
132
- import { AppError } from '@travetto/base';
132
+ import { AppError } from '@travetto/runtime';
133
133
  import { Injectable, Inject } from '@travetto/di';
134
134
  import { ModelAuthService } from '@travetto/auth-model';
135
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/auth-model",
3
- "version": "5.0.0-rc.1",
3
+ "version": "5.0.0-rc.3",
4
4
  "description": "Authentication model support for the Travetto framework",
5
5
  "keywords": [
6
6
  "authentication",
@@ -25,11 +25,11 @@
25
25
  "directory": "module/auth-model"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/auth": "^5.0.0-rc.1",
29
- "@travetto/model": "^5.0.0-rc.1"
28
+ "@travetto/auth": "^5.0.0-rc.3",
29
+ "@travetto/model": "^5.0.0-rc.3"
30
30
  },
31
31
  "peerDependencies": {
32
- "@travetto/test": "^5.0.0-rc.1"
32
+ "@travetto/test": "^5.0.0-rc.3"
33
33
  },
34
34
  "peerDependenciesMeta": {
35
35
  "@travetto/test": {
package/src/model.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AppError, Util, Class, TimeUtil, Env } from '@travetto/base';
1
+ import { AppError, Util, Class, TimeUtil, Runtime } from '@travetto/runtime';
2
2
  import { ModelCrudSupport, ModelType, NotFoundError, OptionalId } from '@travetto/model';
3
3
  import { AuthUtil, Principal, Authenticator, Authorizer } from '@travetto/auth';
4
4
  import { isStorageSupported } from '@travetto/model/src/internal/service/common';
@@ -91,7 +91,7 @@ export class ModelAuthService<T extends ModelType> implements
91
91
  }
92
92
 
93
93
  async postConstruct(): Promise<void> {
94
- if (isStorageSupported(this.#modelService) && Env.dynamic) {
94
+ if (isStorageSupported(this.#modelService) && Runtime.dynamic) {
95
95
  await this.#modelService.createModel?.(this.#cls);
96
96
  }
97
97
  }
@@ -1,6 +1,6 @@
1
1
  import assert from 'node:assert';
2
2
 
3
- import { AppError, Class } from '@travetto/base';
3
+ import { AppError, Class } from '@travetto/runtime';
4
4
  import { Suite, Test } from '@travetto/test';
5
5
  import { Inject, InjectableFactory } from '@travetto/di';
6
6
  import { ModelCrudSupport, Model } from '@travetto/model';