jssm 5.94.0 → 5.96.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.
@@ -20654,7 +20654,7 @@ var jssm = (function (exports) {
20654
20654
  named_colors: named_colors$1
20655
20655
  });
20656
20656
 
20657
- const version = "5.94.0", build_time = 1703979205400;
20657
+ const version = "5.96.0", build_time = 1704101055736;
20658
20658
 
20659
20659
  // whargarbl lots of these return arrays could/should be sets
20660
20660
  const { shapes, gviz_shapes, named_colors } = constants;
@@ -21043,6 +21043,11 @@ var jssm = (function (exports) {
21043
21043
  }
21044
21044
  this._created = this._time_source();
21045
21045
  this.auto_set_state_timeout();
21046
+ this._arrange_declaration.forEach((arrange_pair) => arrange_pair.forEach((possibleState) => {
21047
+ if (!(this._states.has(possibleState))) {
21048
+ throw new JssmError(this, `Cannot arrange state that does not exist "${possibleState}"`);
21049
+ }
21050
+ }));
21046
21051
  }
21047
21052
  /********
21048
21053
  *
@@ -21794,7 +21799,12 @@ var jssm = (function (exports) {
21794
21799
  return Array.from(wstate.keys());
21795
21800
  }
21796
21801
  else {
21797
- throw new JssmError(this, `No such state ${JSON.stringify(whichState)}`);
21802
+ if (this.has_state(whichState)) {
21803
+ return [];
21804
+ }
21805
+ else {
21806
+ throw new JssmError(this, `No such state ${JSON.stringify(whichState)}`);
21807
+ }
21798
21808
  }
21799
21809
  }
21800
21810
  /********
@@ -20655,7 +20655,7 @@ var constants = /*#__PURE__*/Object.freeze({
20655
20655
  named_colors: named_colors$1
20656
20656
  });
20657
20657
 
20658
- const version = "5.94.0", build_time = 1703979205400;
20658
+ const version = "5.96.0", build_time = 1704101055736;
20659
20659
 
20660
20660
  // whargarbl lots of these return arrays could/should be sets
20661
20661
  const { shapes, gviz_shapes, named_colors } = constants;
@@ -21044,6 +21044,11 @@ class Machine {
21044
21044
  }
21045
21045
  this._created = this._time_source();
21046
21046
  this.auto_set_state_timeout();
21047
+ this._arrange_declaration.forEach((arrange_pair) => arrange_pair.forEach((possibleState) => {
21048
+ if (!(this._states.has(possibleState))) {
21049
+ throw new JssmError(this, `Cannot arrange state that does not exist "${possibleState}"`);
21050
+ }
21051
+ }));
21047
21052
  }
21048
21053
  /********
21049
21054
  *
@@ -21795,7 +21800,12 @@ class Machine {
21795
21800
  return Array.from(wstate.keys());
21796
21801
  }
21797
21802
  else {
21798
- throw new JssmError(this, `No such state ${JSON.stringify(whichState)}`);
21803
+ if (this.has_state(whichState)) {
21804
+ return [];
21805
+ }
21806
+ else {
21807
+ throw new JssmError(this, `No such state ${JSON.stringify(whichState)}`);
21808
+ }
21799
21809
  }
21800
21810
  }
21801
21811
  /********
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.94.0",
3
+ "version": "5.96.0",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },