javascript-state-machine
javascript-state-machine copied to clipboard
All transition name become lower case
I'm migrating from 2.x to 3.x. For example, I created my fsm like this
const myFsm = new StateMachin({
init: 'Created',
transitions: [
{name: 'TransA', from: 'Created', to: 'StateA'},
{name: 'TransB', from: 'StateA', to: 'StateC'},
]
})
When I print myFsm by console.log(myFsm)
, the transition names are all lower cased
transa: [Function],
transb: [Function]
This naming conversion is very critical to me. Can you leave it the transition names alone?