inlaweb-lib-dynamodb 1.0.13 → 1.0.15

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.
Files changed (2) hide show
  1. package/index.js +8 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -16,18 +16,14 @@ const templatesUpdateExpresion = {
16
16
  class DynamoLib {
17
17
  constructor() {
18
18
  this.client = new client_dynamodb_1.DynamoDBClient({
19
- customUserAgent: "inlaweb-lib-dynamodb",
19
+ customUserAgent: "lib-dynamodb",
20
20
  disableHostPrefix: true,
21
+ userAgentAppId: "lib-dynamodb",
21
22
  });
22
23
  this.docClient = lib_dynamodb_1.DynamoDBDocumentClient.from(this.client);
23
24
  this.logger = new logger_1.Logger({
24
- serviceName: "inlaweb-lib-dynamodb",
25
+ serviceName: "lib-dynamodb",
25
26
  logLevel: "DEBUG",
26
- persistentLogAttributes: {
27
- aws_account_id: "N/A",
28
- aws_region: "us-east-1",
29
- environment: "dev",
30
- },
31
27
  });
32
28
  }
33
29
  async putItem(tableName, item) {
@@ -187,6 +183,11 @@ class DynamoLib {
187
183
  case "attribute_exists":
188
184
  params.FilterExpression += `attribute_exists (#key${index})`;
189
185
  break;
186
+ case "BETWEEN":
187
+ params.FilterExpression += `#key${index} ${searchParameter.filterOperator} :value${index} AND :value1${index}`;
188
+ params.ExpressionAttributeValues[`:value1${index}`] =
189
+ searchParameter.value1;
190
+ break;
190
191
  default:
191
192
  params.FilterExpression += `#key${index} ${searchParameter.filterOperator} :value${index}`;
192
193
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inlaweb-lib-dynamodb",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/index.d.ts",
6
6
  "scripts": {