@makano/rew 1.2.61 → 1.2.62

Sign up to get free protection for your applications and to get access to all the features.
@@ -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": {