@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.
@@ -4000,10 +4000,10 @@ __exportStar(url, exports);
4000
4000
  class ObservableFiniteStateMachine extends FiniteStateMachine {
4001
4001
  constructor() {
4002
4002
  super(...arguments);
4003
- this.stateChanged = new Subject();
4003
+ this.stateChanges = new Subject();
4004
4004
  }
4005
- get stateChangedObservable() {
4006
- return this.stateChanged;
4005
+ observeStateChanges() {
4006
+ return this.stateChanges;
4007
4007
  }
4008
4008
  /**
4009
4009
  * @throws {BadEventError}
@@ -4012,9 +4012,9 @@ class ObservableFiniteStateMachine extends FiniteStateMachine {
4012
4012
  const oldState = this.state;
4013
4013
  super.send(event);
4014
4014
  const newState = this.state;
4015
- this.stateChanged.next({ event, oldState, newState });
4015
+ this.stateChanges.next({ event, oldState, newState });
4016
4016
  if (es2018.isEmptyObject(this.schema[newState])) {
4017
- this.stateChanged.complete();
4017
+ this.stateChanges.complete();
4018
4018
  }
4019
4019
  }
4020
4020
  }