@processmaker/modeler 1.38.3 → 1.38.5

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": "@processmaker/modeler",
3
- "version": "1.38.3",
3
+ "version": "1.38.5",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "test:unit": "vue-cli-service test:unit",
@@ -56,6 +56,7 @@
56
56
  "jointjs": "^3.1.1",
57
57
  "js-yaml-loader": "^1.2.2",
58
58
  "lodash": "^4.17.21",
59
+ "lodash-contrib": "^4.1200.1",
59
60
  "luxon": "^1.21.1",
60
61
  "mocha-junit-reporter": "^2.0.0",
61
62
  "mustache": "^3.2.1",
@@ -75,7 +76,7 @@
75
76
  "@babel/eslint-parser": "^7.12.16",
76
77
  "@cypress/code-coverage": "^3.11.0",
77
78
  "@panter/vue-i18next": "^0.15.2",
78
- "@processmaker/processmaker-bpmn-moddle": "0.14.0",
79
+ "@processmaker/processmaker-bpmn-moddle": "0.14.1",
79
80
  "@types/jest": "^24.9.1",
80
81
  "@vue/babel-preset-app": "^5.0.4",
81
82
  "@vue/cli-plugin-babel": "~5.0.0",
@@ -150,6 +150,7 @@ import { dia } from 'jointjs';
150
150
  import boundaryEventConfig from '../nodes/boundaryEvent';
151
151
  import BpmnModdle from 'bpmn-moddle';
152
152
  import ExplorerRail from '../rails/explorer-rail/explorer';
153
+ import { isJSON } from 'lodash-contrib';
153
154
  import pull from 'lodash/pull';
154
155
  import remove from 'lodash/remove';
155
156
  import store from '@/store';
@@ -850,7 +851,7 @@ export default {
850
851
 
851
852
  this.removeUnsupportedElementAttributes(definition);
852
853
 
853
- const config = definition.config ? JSON.parse(definition.config) : {};
854
+ const config = definition.config && isJSON(definition.config) ? JSON.parse(definition.config) : {};
854
855
  const type = config?.processKey || parser(definition, this.moddle);
855
856
 
856
857
  const unnamedElements = ['bpmn:TextAnnotation', 'bpmn:Association', 'bpmn:DataOutputAssociation', 'bpmn:DataInputAssociation'];