inlaweb-lib-dynamodb 1.0.9 → 1.0.11

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 (3) hide show
  1. package/index.js +4 -2
  2. package/package.json +1 -1
  3. package/readme.MD +0 -0
package/index.js CHANGED
@@ -15,7 +15,9 @@ const templatesUpdateExpresion = {
15
15
  };
16
16
  class DynamoLib {
17
17
  constructor() {
18
- this.client = new client_dynamodb_1.DynamoDBClient({});
18
+ this.client = new client_dynamodb_1.DynamoDBClient({
19
+ customUserAgent: 'inlaweb-dynamodb-lib',
20
+ });
19
21
  this.docClient = lib_dynamodb_1.DynamoDBDocumentClient.from(this.client);
20
22
  this.logger = new logger_1.Logger();
21
23
  }
@@ -257,7 +259,7 @@ class DynamoLib {
257
259
  }
258
260
  items.forEach((item, index) => {
259
261
  const currentIndex = Math.ceil((index + 1) / limit);
260
- executions[currentIndex - 1].push({ Put: { Item: item } });
262
+ executions[currentIndex - 1].push(item);
261
263
  });
262
264
  return executions;
263
265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inlaweb-lib-dynamodb",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/index.d.ts",
6
6
  "scripts": {
package/readme.MD CHANGED
File without changes