Comparing version 0.20.0 to 0.21.0
@@ -123,3 +123,7 @@ "use strict"; | ||
}); | ||
const sorted = Array.from(state_map.keys()).sort(); | ||
const sorted = Array.from(state_map.keys()).sort((a, b) => { | ||
const stateA = state_map.get(a); | ||
const stateB = state_map.get(b); | ||
return stateA.id - stateB.id; | ||
}); | ||
sorted | ||
@@ -126,0 +130,0 @@ .filter((key) => state_map.get(key).parent === null) |
{ | ||
"name": "asl-puml", | ||
"version": "0.20.0", | ||
"version": "0.21.0", | ||
"description": "Generates a plant uml file from a valid JSON ASL file", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -156,3 +156,7 @@ import type { PumlBuilder, StateHints, StateName } from "./types"; | ||
const sorted = Array.from(state_map.keys()).sort(); | ||
const sorted = Array.from(state_map.keys()).sort((a, b) => { | ||
const stateA = state_map.get(a) as StateHints; | ||
const stateB = state_map.get(b) as StateHints; | ||
return stateA.id - stateB.id; | ||
}); | ||
// emit containers first | ||
@@ -159,0 +163,0 @@ sorted |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
160026
91
3184
2