@travetto/model-dynamodb 7.0.0-rc.3 → 7.0.0-rc.4
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/README.md +7 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ export class Init {
|
|
|
36
36
|
}
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
where the [DynamoDBModelConfig](https://github.com/travetto/travetto/tree/main/module/model-dynamodb/src/config.ts#
|
|
39
|
+
where the [DynamoDBModelConfig](https://github.com/travetto/travetto/tree/main/module/model-dynamodb/src/config.ts#L7) is defined by:
|
|
40
40
|
|
|
41
41
|
**Code: Structure of DynamoDBModelConfig**
|
|
42
42
|
```typescript
|
|
@@ -47,6 +47,12 @@ export class DynamoDBModelConfig {
|
|
|
47
47
|
};
|
|
48
48
|
modifyStorage?: boolean;
|
|
49
49
|
namespace?: string;
|
|
50
|
+
|
|
51
|
+
postConstruct(): void {
|
|
52
|
+
if (!Runtime.production) {
|
|
53
|
+
this.client.endpoint ??= 'http://localhost:8000'; // From docker
|
|
54
|
+
}
|
|
55
|
+
}
|
|
50
56
|
}
|
|
51
57
|
```
|
|
52
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-dynamodb",
|
|
3
|
-
"version": "7.0.0-rc.
|
|
3
|
+
"version": "7.0.0-rc.4",
|
|
4
4
|
"description": "DynamoDB backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-sdk/client-dynamodb": "^3.940.0",
|
|
29
|
-
"@travetto/cli": "^7.0.0-rc.
|
|
30
|
-
"@travetto/config": "^7.0.0-rc.
|
|
31
|
-
"@travetto/model": "^7.0.0-rc.
|
|
29
|
+
"@travetto/cli": "^7.0.0-rc.4",
|
|
30
|
+
"@travetto/config": "^7.0.0-rc.4",
|
|
31
|
+
"@travetto/model": "^7.0.0-rc.4"
|
|
32
32
|
},
|
|
33
33
|
"travetto": {
|
|
34
34
|
"displayName": "DynamoDB Model Support"
|