camunda-bpmn-js 4.5.0 → 4.5.1
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.
|
@@ -136379,7 +136379,10 @@
|
|
|
136379
136379
|
}
|
|
136380
136380
|
|
|
136381
136381
|
try {
|
|
136382
|
-
JSON.parse(value);
|
|
136382
|
+
const parsed = JSON.parse(value);
|
|
136383
|
+
if (!isObject$5(parsed)) {
|
|
136384
|
+
return translate('Example data must be a JSON object literal.');
|
|
136385
|
+
}
|
|
136383
136386
|
}
|
|
136384
136387
|
catch (e) {
|
|
136385
136388
|
return e.message;
|