jssm 5.57.0 → 5.57.1
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/dist/es6/jssm.d.ts +1 -0
- package/dist/es6/jssm.js +5 -0
- package/dist/es6/version.js +1 -1
- package/dist/jssm.es5.cjs.js +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/jssm.d.ts +1 -0
- package/package.json +1 -1
package/dist/es6/jssm.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ declare class Machine<mDT> {
|
|
|
101
101
|
hook_action(from: string, to: string, action: string, handler: HookHandler): Machine<mDT>;
|
|
102
102
|
hook_any_transition(handler: HookHandler): Machine<mDT>;
|
|
103
103
|
hook_entry(to: string, handler: HookHandler): Machine<mDT>;
|
|
104
|
+
hook_exit(from: string, handler: HookHandler): Machine<mDT>;
|
|
104
105
|
transition_impl(newStateOrAction: StateType, newData: mDT | undefined, wasForced: boolean, wasAction: boolean): boolean;
|
|
105
106
|
action(actionName: StateType, newData?: mDT): boolean;
|
|
106
107
|
transition(newState: StateType, newData?: mDT): boolean;
|
package/dist/es6/jssm.js
CHANGED
|
@@ -755,6 +755,11 @@ class Machine {
|
|
|
755
755
|
this.set_hook({ kind: 'entry', to, handler });
|
|
756
756
|
return this;
|
|
757
757
|
}
|
|
758
|
+
hook_exit(from, handler) {
|
|
759
|
+
// TODO: should this throw if setting the hook fails, or ignore it and continue?
|
|
760
|
+
this.set_hook({ kind: 'exit', from, handler });
|
|
761
|
+
return this;
|
|
762
|
+
}
|
|
758
763
|
// remove_hook(HookDesc: HookDescription) {
|
|
759
764
|
// throw 'TODO: Should remove hook here';
|
|
760
765
|
// }
|
package/dist/es6/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.57.
|
|
1
|
+
const version = "5.57.1";
|
|
2
2
|
export { version };
|