piemachine 0.0.2 → 0.0.3

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.
@@ -174,7 +174,11 @@ export class PieMachine {
174
174
  currentId = nextId;
175
175
  }
176
176
  else {
177
- throw new PieMachineError(`Expected ${currentId} to return a GoToNode, as no function was specified for the conditional edges to ${edge.adjacentNodes.join(", ")}.`);
177
+ this.debug(`Exiting graph from node: ${color.green(currentId)}`);
178
+ currentId = null;
179
+ /* throw new PieMachineError(
180
+ `Expected ${currentId} to return a GoToNode, as no function was specified for the conditional edges to ${edge.adjacentNodes.join(", ")}.`,
181
+ ); */
178
182
  }
179
183
  }
180
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piemachine",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "A general-purpose library for defining and running state machines. Easy as pie.",
5
5
  "homepage": "https://github.com/egonSchiele/piemachine",
6
6
  "scripts": {