jssm 5.95.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.95.0", build_time = 1704098570300;
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;
@@ -21799,7 +21799,12 @@ var jssm = (function (exports) {
21799
21799
  return Array.from(wstate.keys());
21800
21800
  }
21801
21801
  else {
21802
- 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
+ }
21803
21808
  }
21804
21809
  }
21805
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.95.0", build_time = 1704098570300;
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;
@@ -21800,7 +21800,12 @@ class Machine {
21800
21800
  return Array.from(wstate.keys());
21801
21801
  }
21802
21802
  else {
21803
- 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
+ }
21804
21809
  }
21805
21810
  }
21806
21811
  /********
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.95.0",
3
+ "version": "5.96.0",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },