bpmnlint 11.7.1 → 11.7.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bpmnlint",
3
3
  "description": "Validate your BPMN diagrams based on configurable lint rules",
4
- "version": "11.7.1",
4
+ "version": "11.7.2",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [
7
7
  "bpmnlint",
@@ -75,7 +75,7 @@ module.exports = function() {
75
75
  return false;
76
76
  }
77
77
 
78
- if (is(node, 'bpmn:Task') && isForCompensation(node)) {
78
+ if (is(node, 'bpmn:Activity') && isForCompensation(node)) {
79
79
  return false;
80
80
  }
81
81
 
@@ -22,10 +22,14 @@ module.exports = function() {
22
22
  );
23
23
  }
24
24
 
25
+ function isForCompensation(node) {
26
+ return node.isForCompensation;
27
+ }
28
+
25
29
  function isImplicitStart(node) {
26
30
  const incoming = node.incoming || [];
27
31
 
28
- if (is(node, 'bpmn:Activity') && node.isForCompensation) {
32
+ if (is(node, 'bpmn:Activity') && isForCompensation(node)) {
29
33
  return false;
30
34
  }
31
35