quidproquo-actionprocessor-awslambda 0.0.131 → 0.0.132

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.
@@ -25,7 +25,7 @@ function getLogByCorrelation(tableName, region, correlation) {
25
25
  try {
26
26
  const queryResult = yield dynamoDBClient.send(new client_dynamodb_1.QueryCommand(queryParams));
27
27
  const items = (queryResult.Items || []).map((i) => {
28
- var _a, _b, _c;
28
+ var _a, _b, _c, _d;
29
29
  const [startedAt, correlation] = ((_a = i.startedAtWithCorrelation.S) === null || _a === void 0 ? void 0 : _a.split('#')) || [];
30
30
  const metaData = {
31
31
  generic: i.generic.S || '',
@@ -35,6 +35,7 @@ function getLogByCorrelation(tableName, region, correlation) {
35
35
  correlation,
36
36
  moduleName: i.moduleName.S || '',
37
37
  fromCorrelation: (_c = i.fromCorrelation) === null || _c === void 0 ? void 0 : _c.S,
38
+ executionTimeMs: ((_d = i.executionTimeMs) === null || _d === void 0 ? void 0 : _d.N) ? parseInt(i.executionTimeMs.N) : 0,
38
39
  };
39
40
  return metaData;
40
41
  });
@@ -32,7 +32,7 @@ function getLogChildrenByFromCorrelation(tableName, region, fromCorrelation, pag
32
32
  try {
33
33
  const queryResult = yield dynamoDBClient.send(new client_dynamodb_1.QueryCommand(queryParams));
34
34
  const items = (queryResult.Items || []).map((i) => {
35
- var _a, _b, _c;
35
+ var _a, _b, _c, _d;
36
36
  const [startedAt, correlation] = ((_a = i.startedAtWithCorrelation.S) === null || _a === void 0 ? void 0 : _a.split('#')) || [];
37
37
  const metaData = {
38
38
  generic: i.generic.S || '',
@@ -42,6 +42,7 @@ function getLogChildrenByFromCorrelation(tableName, region, fromCorrelation, pag
42
42
  correlation,
43
43
  moduleName: i.moduleName.S || '',
44
44
  fromCorrelation: (_c = i.fromCorrelation) === null || _c === void 0 ? void 0 : _c.S,
45
+ executionTimeMs: ((_d = i.executionTimeMs) === null || _d === void 0 ? void 0 : _d.N) ? parseInt(i.executionTimeMs.N) : 0,
45
46
  };
46
47
  return metaData;
47
48
  });
@@ -31,7 +31,7 @@ function getPagedItemsOverRange(tableName, region, runtimeType, startIsoDateTime
31
31
  try {
32
32
  const queryResult = yield dynamoDBClient.send(new client_dynamodb_1.QueryCommand(queryParams));
33
33
  const items = (queryResult.Items || []).map((i) => {
34
- var _a, _b, _c;
34
+ var _a, _b, _c, _d;
35
35
  const [startedAt, correlation] = ((_a = i.startedAtWithCorrelation.S) === null || _a === void 0 ? void 0 : _a.split('#')) || [];
36
36
  const metaData = {
37
37
  generic: i.generic.S || '',
@@ -41,6 +41,7 @@ function getPagedItemsOverRange(tableName, region, runtimeType, startIsoDateTime
41
41
  correlation,
42
42
  moduleName: i.moduleName.S || '',
43
43
  fromCorrelation: (_c = i.fromCorrelation) === null || _c === void 0 ? void 0 : _c.S,
44
+ executionTimeMs: ((_d = i.executionTimeMs) === null || _d === void 0 ? void 0 : _d.N) ? parseInt(i.executionTimeMs.N) : 0,
44
45
  };
45
46
  return metaData;
46
47
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-actionprocessor-awslambda",
3
- "version": "0.0.131",
3
+ "version": "0.0.132",
4
4
  "description": "",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "types": "./lib/commonjs/index.d.js",