Files
hyperframes/packages
James 7f755913a6 fix(cli): print the update-available notice once, not on every event-loop drain
`process.on("beforeExit", ...)` re-fires every time the event loop
drains, and the handler kicks off a fire-and-forget async telemetry
flush — so on a successful command the user sees the
"Update available: …" notice twice (once after the initial drain, again
after the flush settles). Using `process.once` detaches the listener
after first invocation, fixing the double-print and also preventing a
double-flush of telemetry.

Reported during local testing of `auth login`, but the bug affects every
command (any path where `_flush()` schedules work).
2026-05-28 05:23:27 +00:00
..
2026-05-27 20:23:26 -04:00
2026-05-27 20:23:26 -04:00
2026-05-27 20:23:26 -04:00
2026-05-27 20:23:26 -04:00
2026-05-27 20:23:26 -04:00
2026-05-27 20:23:26 -04:00