@ikonintegration/ikapi 3.1.15 → 3.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/ikapi",
3
- "version": "3.1.15",
3
+ "version": "3.1.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "main.js",
@@ -17,7 +17,7 @@
17
17
  "@aws-sdk/credential-provider-node": "^3.131.0",
18
18
  "@aws-sdk/node-http-handler": "^3.127.0",
19
19
  "@aws-sdk/util-dynamodb": "^3.131.0",
20
- "@ikonintegration/mod-resources-tracker-client": "0.0.11",
20
+ "@ikonintegration/mod-resources-tracker-client": "0.0.12",
21
21
  "abind": "^1.0.5",
22
22
  "bluebird": "^3.7.2",
23
23
  "email-templates": "^8.0.8",
@@ -14,10 +14,7 @@ export default class IKExecutionTracker {
14
14
  }
15
15
  /* Public */
16
16
  appendClaimer(value, key) { this.claimers[value] = key; }
17
- appendEvent(event) {
18
- event.concatToClaimers(this.claimers);
19
- this.client.appendEvent(event);
20
- }
17
+ appendEvent(event) { this.client.appendEvent(event); }
21
18
  //
22
19
  async stopTracking() {
23
20
  try {
@@ -28,7 +25,7 @@ export default class IKExecutionTracker {
28
25
  //detect DB and log (DDB only for now)
29
26
  this._collectDDBStats();
30
27
  //drain stats
31
- await this.client.drain();
28
+ await this.client.drain(this.claimers);
32
29
  } catch (e) { console.error(`Error while tracking execution: ${e}`); }
33
30
  }
34
31
  /* private tracker */