@fkws/klonk 0.0.18 → 0.0.19

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.
package/dist/index.cjs CHANGED
@@ -438,7 +438,7 @@ class Machine {
438
438
  }
439
439
  const resolvedNext = next;
440
440
  if (resolvedNext === this.initialState) {
441
- if (options.mode !== "infinitely") {
441
+ if (options.mode === "roundtrip" || options.mode === "any") {
442
442
  logger?.info({ phase: "end", reason: "roundtrip" }, "Stop condition met.");
443
443
  return stateData;
444
444
  }
package/dist/index.js CHANGED
@@ -397,7 +397,7 @@ class Machine {
397
397
  }
398
398
  const resolvedNext = next;
399
399
  if (resolvedNext === this.initialState) {
400
- if (options.mode !== "infinitely") {
400
+ if (options.mode === "roundtrip" || options.mode === "any") {
401
401
  logger?.info({ phase: "end", reason: "roundtrip" }, "Stop condition met.");
402
402
  return stateData;
403
403
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkws/klonk",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "A lightweight, extensible workflow automation engine for Node.js and Bun",
5
5
  "repository": "https://github.com/klar-web-services/klonk",
6
6
  "homepage": "https://klonk.dev",