jssm 5.58.0 → 5.58.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
|
@@ -100,6 +100,7 @@ declare class Machine<mDT> {
|
|
|
100
100
|
set_hook(HookDesc: HookDescription): void;
|
|
101
101
|
hook(from: string, to: string, handler: HookHandler): Machine<mDT>;
|
|
102
102
|
hook_action(from: string, to: string, action: string, handler: HookHandler): Machine<mDT>;
|
|
103
|
+
hook_any_action(handler: HookHandler): Machine<mDT>;
|
|
103
104
|
hook_any_transition(handler: HookHandler): Machine<mDT>;
|
|
104
105
|
hook_entry(to: string, handler: HookHandler): Machine<mDT>;
|
|
105
106
|
hook_exit(from: string, handler: HookHandler): Machine<mDT>;
|
package/dist/es6/jssm.js
CHANGED
|
@@ -750,6 +750,11 @@ class Machine {
|
|
|
750
750
|
this.set_hook({ kind: 'named', from, to, action, handler });
|
|
751
751
|
return this;
|
|
752
752
|
}
|
|
753
|
+
hook_any_action(handler) {
|
|
754
|
+
// TODO: should this throw if setting the hook fails, or ignore it and continue?
|
|
755
|
+
this.set_hook({ kind: 'any action', handler });
|
|
756
|
+
return this;
|
|
757
|
+
}
|
|
753
758
|
hook_any_transition(handler) {
|
|
754
759
|
// TODO: should this throw if setting the hook fails, or ignore it and continue?
|
|
755
760
|
this.set_hook({ kind: 'any transition', handler });
|
package/dist/es6/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.58.
|
|
1
|
+
const version = "5.58.1";
|
|
2
2
|
export { version };
|