buhoi-workflow
Advanced tools
Comparing version
@@ -38,3 +38,3 @@ const parser = require('./parser') | ||
on: (...args) => emitter.on(...args), | ||
render: () => visualizer.render(), | ||
render: () => visualizer.render(stateDefinitions), | ||
}, { | ||
@@ -41,0 +41,0 @@ get: (target, property) => property in target ? target[property] : methods[property], |
module.exports = { render } | ||
function render () { | ||
const graph = states.map(s => s.transitions | ||
function render (stateDefinitions) { | ||
const graph = stateDefinitions.map(s => s.transitions | ||
.map(t => | ||
@@ -6,0 +6,0 @@ `\t"${s.state}" -> "${t.nextState}" [label="${t.trigger}` |
{ | ||
"name": "buhoi-workflow", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Workflow engine", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
6371
0.66%