@storylet-studio/play-helpers 0.6.0 → 0.7.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.
package/dist/index.cjs CHANGED
@@ -376,8 +376,9 @@ function formatLogBody(e, flow) {
376
376
  }
377
377
  case "evict":
378
378
  return `${stamp}evict ${e.card} from ${e.hand} (${e.reason})`;
379
+ // A card played with none ("") has no outcome to name.
379
380
  case "play":
380
- return `${stamp}play ${e.card} -> ${e.outcome}`;
381
+ return `${stamp}play ${e.card}${e.outcome === "" ? "" : ` -> ${e.outcome}`}`;
381
382
  case "write":
382
383
  return `${stamp}write ${e.path}: ${showVal(e.prev)} -> ${showVal(e.value)}`;
383
384
  case "turns":