@travetto/model-s3 3.0.0-rc.10 → 3.0.0-rc.12
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 +5 -5
- package/src/service.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-s3",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.12",
|
|
4
4
|
"description": "S3 backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"s3",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"directory": "module/model-s3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/client-s3": "^3.
|
|
27
|
+
"@aws-sdk/client-s3": "^3.262.0",
|
|
28
28
|
"@aws-sdk/credential-provider-ini": "^3.218.0",
|
|
29
|
-
"@travetto/config": "^3.0.0-rc.
|
|
30
|
-
"@travetto/model": "^3.0.0-rc.
|
|
29
|
+
"@travetto/config": "^3.0.0-rc.12",
|
|
30
|
+
"@travetto/model": "^3.0.0-rc.12"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@travetto/command": "^3.0.0-rc.
|
|
33
|
+
"@travetto/command": "^3.0.0-rc.9"
|
|
34
34
|
},
|
|
35
35
|
"peerDependenciesMeta": {
|
|
36
36
|
"@travetto/command": {
|
package/src/service.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { StreamUtil, Class, AppError } from '@travetto/base';
|
|
|
13
13
|
import { ModelCrudUtil } from '@travetto/model/src/internal/service/crud';
|
|
14
14
|
import { ModelExpirySupport } from '@travetto/model/src/service/expiry';
|
|
15
15
|
import { ModelExpiryUtil } from '@travetto/model/src/internal/service/expiry';
|
|
16
|
+
import { ModelStorageUtil } from '@travetto/model/src/internal/service/storage';
|
|
16
17
|
import { ModelUtil } from '@travetto/model/src/internal/util';
|
|
17
18
|
|
|
18
19
|
import { S3ModelConfig } from './config';
|
|
@@ -152,6 +153,7 @@ export class S3ModelService implements ModelCrudSupport, ModelStreamSupport, Mod
|
|
|
152
153
|
|
|
153
154
|
async postConstruct(): Promise<void> {
|
|
154
155
|
this.client = new s3.S3(this.config.config);
|
|
156
|
+
ModelStorageUtil.registerModelChangeListener(this);
|
|
155
157
|
}
|
|
156
158
|
|
|
157
159
|
async head<T extends ModelType>(cls: Class<T>, id: string): Promise<boolean> {
|