@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 ArcSine Technologies
3
+ Copyright (c) 2023 ArcSine Technologies
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-dynamodb",
3
- "version": "3.4.0-rc.8",
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.441.0",
29
- "@travetto/config": "^3.4.0-rc.7",
30
- "@travetto/model": "^3.4.0-rc.8"
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.0-rc.7"
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
  }];