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.
@@ -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 });
@@ -1,2 +1,2 @@
1
- const version = "5.58.0";
1
+ const version = "5.58.1";
2
2
  export { version };