@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.
- package/lib/rew/pkgs/web.js +1 -1
- package/package.json +1 -1
package/lib/rew/pkgs/web.js
CHANGED
|
@@ -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 = {}) {
|