@blackglory/structures 0.2.8 → 0.3.0

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.
@@ -4006,10 +4006,10 @@
4006
4006
  class ObservableFiniteStateMachine extends FiniteStateMachine {
4007
4007
  constructor() {
4008
4008
  super(...arguments);
4009
- this.stateChanged = new Subject();
4009
+ this.stateChanges = new Subject();
4010
4010
  }
4011
- get stateChangedObservable() {
4012
- return this.stateChanged;
4011
+ observeStateChanges() {
4012
+ return this.stateChanges;
4013
4013
  }
4014
4014
  /**
4015
4015
  * @throws {BadEventError}
@@ -4018,9 +4018,9 @@
4018
4018
  const oldState = this.state;
4019
4019
  super.send(event);
4020
4020
  const newState = this.state;
4021
- this.stateChanged.next({ event, oldState, newState });
4021
+ this.stateChanges.next({ event, oldState, newState });
4022
4022
  if (es2018.isEmptyObject(this.schema[newState])) {
4023
- this.stateChanged.complete();
4023
+ this.stateChanges.complete();
4024
4024
  }
4025
4025
  }
4026
4026
  }