@makano/rew 1.2.61 → 1.2.62

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.
@@ -452,7 +452,7 @@ module.exports = (context, importOptions) => {
452
452
  return new State(value);
453
453
  }
454
454
  invokeState(states, callback){
455
- const statesMapped = states.map(i => i instanceof State ? `getState('${i.id}')` : JSON.stringify(i));
455
+ const statesMapped = states.map(i => i instanceof State ? `getState('${i.id}')` : (typeof i == "function" ? i.toString() : JSON.stringify(i)));
456
456
  return `((${callback})(event, ...[${statesMapped}]))`;
457
457
  }
458
458
  async bundle(filepath, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makano/rew",
3
- "version": "1.2.61",
3
+ "version": "1.2.62",
4
4
  "description": "A simple coffescript runtime and app manager",
5
5
  "main": "main.js",
6
6
  "directories": {