@travetto/model-dynamodb 7.1.1 → 7.1.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.
- package/package.json +4 -4
- package/src/service.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-dynamodb",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DynamoDB backing for the travetto model module.",
|
|
6
6
|
"keywords": [
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@aws-sdk/client-dynamodb": "^3.966.0",
|
|
30
|
-
"@travetto/config": "^7.1.
|
|
31
|
-
"@travetto/model": "^7.1.
|
|
30
|
+
"@travetto/config": "^7.1.2",
|
|
31
|
+
"@travetto/model": "^7.1.2"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@travetto/cli": "^7.1.
|
|
34
|
+
"@travetto/cli": "^7.1.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@travetto/cli": {
|
package/src/service.ts
CHANGED
|
@@ -114,7 +114,7 @@ export class DynamoDBModelService implements ModelCrudSupport, ModelExpirySuppor
|
|
|
114
114
|
async postConstruct(): Promise<void> {
|
|
115
115
|
this.client = new DynamoDB({ ...this.config.client });
|
|
116
116
|
await ModelStorageUtil.storageInitialization(this);
|
|
117
|
-
ShutdownManager.
|
|
117
|
+
ShutdownManager.signal.addEventListener('abort', async () => this.client.destroy());
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
// Storage
|