@storylet-studio/play-helpers 0.5.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.js CHANGED
@@ -333,8 +333,9 @@ function formatLogBody(e, flow) {
333
333
  }
334
334
  case "evict":
335
335
  return `${stamp}evict ${e.card} from ${e.hand} (${e.reason})`;
336
+ // A card played with none ("") has no outcome to name.
336
337
  case "play":
337
- return `${stamp}play ${e.card} -> ${e.outcome}`;
338
+ return `${stamp}play ${e.card}${e.outcome === "" ? "" : ` -> ${e.outcome}`}`;
338
339
  case "write":
339
340
  return `${stamp}write ${e.path}: ${showVal(e.prev)} -> ${showVal(e.value)}`;
340
341
  case "turns":