@visa/cli 4.1.0-rc.168 → 4.1.0-rc.169

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.
@@ -58,9 +58,11 @@ const defaultSleep = (ms) => new Promise((r) => {
58
58
  function defaultOpenUrl(url) {
59
59
  // Best-effort convenience only — the URL is always surfaced via `log`/
60
60
  // `onApprovalUrl`, so this must never throw or hang if there is no browser.
61
- // `CHECKOUT_SKIP_BROWSER_OPEN=1` disables it (headless/agent hosts where
62
- // launching a browser on the WRONG machine is pointless or noisy).
63
- if (process.env.CHECKOUT_SKIP_BROWSER_OPEN === '1')
61
+ // `CHECKOUT_SKIP_BROWSER_OPEN=1` or `VISA_SUPPRESS_BROWSER=true|1` disables it
62
+ // (headless/agent hosts where launching a browser on the WRONG machine is pointless or noisy).
63
+ if (process.env.CHECKOUT_SKIP_BROWSER_OPEN === '1' ||
64
+ process.env.VISA_SUPPRESS_BROWSER === '1' ||
65
+ process.env.VISA_SUPPRESS_BROWSER === 'true')
64
66
  return;
65
67
  // Platform-appropriate opener; unknown platforms just skip (the URL is logged).
66
68
  const opener = process.platform === 'darwin' ? 'open' : process.platform === 'win32' ? 'start ""' : 'xdg-open';