@travetto/model-memory 8.0.0-alpha.0 → 8.0.0-alpha.2

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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/src/service.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-memory",
3
- "version": "8.0.0-alpha.0",
3
+ "version": "8.0.0-alpha.2",
4
4
  "type": "module",
5
5
  "description": "Memory backing for the travetto model module.",
6
6
  "keywords": [
@@ -26,14 +26,14 @@
26
26
  "directory": "module/model-memory"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/config": "^8.0.0-alpha.0",
30
- "@travetto/di": "^8.0.0-alpha.0",
31
- "@travetto/model": "^8.0.0-alpha.0",
32
- "@travetto/schema": "^8.0.0-alpha.0"
29
+ "@travetto/config": "^8.0.0-alpha.2",
30
+ "@travetto/di": "^8.0.0-alpha.2",
31
+ "@travetto/model": "^8.0.0-alpha.2",
32
+ "@travetto/schema": "^8.0.0-alpha.2"
33
33
  },
34
34
  "peerDependencies": {
35
- "@travetto/cli": "^8.0.0-alpha.0",
36
- "@travetto/test": "^8.0.0-alpha.0"
35
+ "@travetto/cli": "^8.0.0-alpha.3",
36
+ "@travetto/test": "^8.0.0-alpha.2"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/cli": {
package/src/service.ts CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  type Class, type TimeSpan, type DeepPartial, castTo, type BinaryMetadata,
3
3
  type ByteRange, type BinaryType, BinaryUtil, type BinaryArray, JSONUtil, BinaryMetadataUtil
4
4
  } from '@travetto/runtime';
5
- import { Injectable } from '@travetto/di';
5
+ import { Injectable, PostConstruct } from '@travetto/di';
6
6
  import { Config } from '@travetto/config';
7
7
  import {
8
8
  type ModelType, type IndexConfig, type ModelCrudSupport, type ModelExpirySupport, type ModelStorageSupport, type ModelIndexedSupport,
@@ -130,7 +130,8 @@ export class MemoryModelService implements ModelCrudSupport, ModelBlobSupport, M
130
130
  throw new NotFoundError(cls, key);
131
131
  }
132
132
 
133
- async postConstruct(): Promise<void> {
133
+ @PostConstruct()
134
+ async initializeClient(): Promise<void> {
134
135
  await ModelStorageUtil.storageInitialization(this);
135
136
  ModelExpiryUtil.registerCull(this);
136
137