@travetto/auth-model 3.4.5 → 4.0.0-rc.1

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-model",
3
- "version": "3.4.5",
3
+ "version": "4.0.0-rc.1",
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": "^3.4.2",
29
- "@travetto/model": "^3.4.5"
28
+ "@travetto/auth": "^4.0.0-rc.1",
29
+ "@travetto/model": "^4.0.0-rc.1"
30
30
  },
31
31
  "peerDependencies": {
32
- "@travetto/test": "^3.4.3"
32
+ "@travetto/test": "^4.0.0-rc.1"
33
33
  },
34
34
  "peerDependenciesMeta": {
35
35
  "@travetto/test": {
package/src/model.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AppError, Util, Class, TimeUtil, GlobalEnv } from '@travetto/base';
1
+ import { AppError, Util, Class, TimeUtil, Env } from '@travetto/base';
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';
@@ -92,7 +92,7 @@ export class ModelAuthService<T extends ModelType> implements
92
92
  }
93
93
 
94
94
  async postConstruct(): Promise<void> {
95
- if (isStorageSupported(this.#modelService) && GlobalEnv.dynamic) {
95
+ if (isStorageSupported(this.#modelService) && Env.dynamic) {
96
96
  await this.#modelService.createModel?.(this.#cls);
97
97
  }
98
98
  }
@@ -1,4 +1,4 @@
1
- import assert from 'assert';
1
+ import assert from 'node:assert';
2
2
 
3
3
  import { AppError, Class } from '@travetto/base';
4
4
  import { Suite, Test } from '@travetto/test';