bpmn-elements 9.1.1 → 9.1.2

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/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ # 9.1.2
5
+
6
+ - allow type IScripts.register to return undefined
7
+
4
8
  # 9.1.1
5
9
 
6
10
  - fix type Logger declaration
package/dist/Tracker.js CHANGED
@@ -22,6 +22,7 @@ Object.defineProperty(ActivityTracker.prototype, 'activityStatus', {
22
22
  });
23
23
  ActivityTracker.prototype.track = function track(routingKey, message) {
24
24
  const content = message.content;
25
+ if (content.isAssociation) return;
25
26
  if (content.isSequenceFlow) return;
26
27
  if (content.isSubProcess) return;
27
28
  const executionId = content.executionId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmn-elements",
3
- "version": "9.1.1",
3
+ "version": "9.1.2",
4
4
  "description": "Executable workflow elements based on BPMN 2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -53,9 +53,9 @@
53
53
  "c8": "^7.13.0",
54
54
  "camunda-bpmn-moddle": "^7.0.1",
55
55
  "chai": "^4.3.7",
56
- "chronokinesis": "^4.0.1",
56
+ "chronokinesis": "^5.0.2",
57
57
  "debug": "^4.3.4",
58
- "eslint": "^8.37.0",
58
+ "eslint": "^8.38.0",
59
59
  "eslint-plugin-import": "^2.27.5",
60
60
  "got": "^12.6.0",
61
61
  "mocha": "^10.1.0",
package/src/Tracker.js CHANGED
@@ -14,6 +14,7 @@ Object.defineProperty(ActivityTracker.prototype, 'activityStatus', {
14
14
 
15
15
  ActivityTracker.prototype.track = function track(routingKey, message) {
16
16
  const content = message.content;
17
+ if (content.isAssociation) return;
17
18
  if (content.isSequenceFlow) return;
18
19
  if (content.isSubProcess) return;
19
20
  const executionId = content.executionId;
package/types/index.d.ts CHANGED
@@ -503,7 +503,7 @@ declare module 'bpmn-elements' {
503
503
  }
504
504
 
505
505
  interface IScripts {
506
- register(activity: any): Script;
506
+ register(activity: any): Script | undefined;
507
507
  getScript(language: string, identifier: {id: string, [x: string]: any}): Script;
508
508
  }
509
509