bpmnlint-plugin-camunda-compat 2.6.2 → 2.6.3

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": "bpmnlint-plugin-camunda-compat",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "A bpmnlint plug-in for Camunda Platform compatibility",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -95,9 +95,13 @@ function validateSubscription(node) {
95
95
  }
96
96
 
97
97
  function getReport(propertyName, node, parentNode) {
98
+ const path = getPath(node, parentNode);
99
+
98
100
  return {
99
101
  message: `Property <${ propertyName }> is not a valid secret`,
100
- path: [ ...getPath(node, parentNode), propertyName ],
102
+ path: path
103
+ ? [ ...getPath(node, parentNode), propertyName ]
104
+ : [ propertyName ],
101
105
  data: {
102
106
  type: ERROR_TYPES.SECRET_EXPRESSION_INVALID,
103
107
  node,