@travetto/model-dynamodb 3.4.0-rc.8 → 3.4.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/LICENSE +1 -1
- package/package.json +5 -5
- package/src/service.ts +2 -2
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-dynamodb",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "DynamoDB backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"directory": "module/model-dynamodb"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
29
|
-
"@travetto/config": "^3.4.
|
|
30
|
-
"@travetto/model": "^3.4.
|
|
28
|
+
"@aws-sdk/client-dynamodb": "^3.454.0",
|
|
29
|
+
"@travetto/config": "^3.4.1",
|
|
30
|
+
"@travetto/model": "^3.4.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@travetto/command": "^3.4.
|
|
33
|
+
"@travetto/command": "^3.4.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependenciesMeta": {
|
|
36
36
|
"@travetto/command": {
|
package/src/service.ts
CHANGED
|
@@ -92,7 +92,7 @@ export class DynamoDBModelService implements ModelCrudSupport, ModelExpirySuppor
|
|
|
92
92
|
indices[`${prop}_sort__`] = toValue(+sort);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
const query = {
|
|
95
|
+
const query: dynamodb.PutItemCommandInput = {
|
|
96
96
|
TableName: this.#resolveTable(cls),
|
|
97
97
|
ConditionExpression: 'attribute_not_exists(body)',
|
|
98
98
|
Item: {
|
|
@@ -157,7 +157,7 @@ export class DynamoDBModelService implements ModelCrudSupport, ModelExpirySuppor
|
|
|
157
157
|
const idxName = simpleName(idx.name);
|
|
158
158
|
attributes.push({ AttributeName: `${idxName}__`, AttributeType: 'S' });
|
|
159
159
|
|
|
160
|
-
const keys = [{
|
|
160
|
+
const keys: dynamodb.KeySchemaElement[] = [{
|
|
161
161
|
AttributeName: `${idxName}__`,
|
|
162
162
|
KeyType: 'HASH'
|
|
163
163
|
}];
|