waygraph 0.10.7 → 0.10.8

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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1289,7 +1289,7 @@ function extractVerifyHighlights(block, resultTag) {
1289
1289
  * When autoCollapsePanel is set (QA video / autoplay), tuck the stepper
1290
1290
  * away so ring captions + the app fill the frame - Dan: stepper + auto panels.
1291
1291
  */
1292
- async function markStepRunning(page, opts?: { autoCollapsePanel?: boolean }) {
1292
+ async function markStepRunning(page, opts) {
1293
1293
  await page
1294
1294
  .evaluate(({ autoCollapsePanel }) => {
1295
1295
  const runBtn = document.getElementById("wg-run");
@@ -1310,7 +1310,7 @@ async function markStepRunning(page, opts?: { autoCollapsePanel?: boolean }) {
1310
1310
  if (toggle) toggle.textContent = "Show";
1311
1311
  }
1312
1312
  }
1313
- }, { autoCollapsePanel: !!opts?.autoCollapsePanel })
1313
+ }, { autoCollapsePanel: !!(opts && opts.autoCollapsePanel) })
1314
1314
  .catch(() => {});
1315
1315
  }
1316
1316
 
@@ -2010,8 +2010,8 @@ async function runChainedFlows(chainFlow, chainFlows, context, mem, page) {
2010
2010
  }
2011
2011
 
2012
2012
  /** Parses WAYGRAPH_VIDEO_VIEWPORT / --video-viewport: "1920x1080" or "1920,1080". */
2013
- function parseVideoViewport(raw: string | undefined): { width: number; height: number } | null {
2014
- if (!raw?.trim()) return null;
2013
+ function parseVideoViewport(raw) {
2014
+ if (!raw || !raw.trim()) return null;
2015
2015
  const m = raw.trim().match(/^(\d{3,5})[xX,](\d{3,5})$/);
2016
2016
  if (!m) return null;
2017
2017
  const width = Number(m[1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waygraph",
3
- "version": "0.10.7",
3
+ "version": "0.10.8",
4
4
  "type": "module",
5
5
  "description": "A typed graph of reusable Blocks for driving a browser through E2E flows.",
6
6
  "license": "MIT",