Comparing version 0.6.1 to 0.6.2
@@ -60,3 +60,3 @@ "use strict"; | ||
// update the child states | ||
var branches = (0, jsonpath_plus_1.JSONPath)({ | ||
var result = (0, jsonpath_plus_1.JSONPath)({ | ||
json: definition, | ||
@@ -66,2 +66,3 @@ path: "$..['States']['".concat(key, "'].Branches"), | ||
}); | ||
var branches = Array.isArray(result[0]) ? result[0] : result; | ||
branches.forEach(function (branch) { | ||
@@ -68,0 +69,0 @@ var found_states = (0, jsonpath_plus_1.JSONPath)({ |
{ | ||
"name": "asl-puml", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Generates a plant uml file from a valid ASL file", | ||
@@ -5,0 +5,0 @@ "main": "./dist/asl-puml.js", |
46661
933