@travetto/model-dynamodb 6.0.0 → 6.0.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 +5 -5
- package/src/service.ts +3 -3
- package/support/service.dynamodb.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-dynamodb",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "DynamoDB backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"directory": "module/model-dynamodb"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
29
|
-
"@travetto/cli": "^6.0.
|
|
30
|
-
"@travetto/config": "^6.0.
|
|
31
|
-
"@travetto/model": "^6.0.
|
|
28
|
+
"@aws-sdk/client-dynamodb": "^3.902.0",
|
|
29
|
+
"@travetto/cli": "^6.0.1",
|
|
30
|
+
"@travetto/config": "^6.0.1",
|
|
31
|
+
"@travetto/model": "^6.0.1"
|
|
32
32
|
},
|
|
33
33
|
"travetto": {
|
|
34
34
|
"displayName": "DynamoDB Model Support"
|
package/src/service.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AttributeDefinition, AttributeValue, DynamoDB, GlobalSecondaryIndex,
|
|
3
|
-
KeySchemaElement, PutItemCommandInput, PutItemCommandOutput
|
|
2
|
+
type AttributeDefinition, type AttributeValue, DynamoDB, type GlobalSecondaryIndex,
|
|
3
|
+
type KeySchemaElement, type PutItemCommandInput, type PutItemCommandOutput
|
|
4
4
|
} from '@aws-sdk/client-dynamodb';
|
|
5
5
|
|
|
6
6
|
import { ShutdownManager, TimeUtil, type Class, type DeepPartial } from '@travetto/runtime';
|
|
@@ -185,7 +185,7 @@ export class DynamoDBModelService implements ModelCrudSupport, ModelExpirySuppor
|
|
|
185
185
|
async postConstruct(): Promise<void> {
|
|
186
186
|
this.client = new DynamoDB({ ...this.config.client });
|
|
187
187
|
await ModelStorageUtil.registerModelChangeListener(this);
|
|
188
|
-
ShutdownManager.onGracefulShutdown(async () => this.client.destroy()
|
|
188
|
+
ShutdownManager.onGracefulShutdown(async () => this.client.destroy());
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
// Storage
|