You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: surface scan findings across dlx + stdio + promise-queue
- src/promise-queue.ts: wrap task.fn() via Promise.resolve().then() so
a sync throw inside the task function converts into a proper rejection
routed to task.reject instead of escaping as an uncaught exception.
- src/stdio/progress.ts: clamp negative ms in formatTime() so a negative
ETA (current > total due to over-ticking or clock skew) no longer
renders as "-1m59s".
- src/dlx/lockfile.ts: wrap the scratch-dir safeDelete in finally with
its own try/catch so a cleanup failure doesn't clobber the real
exception from the try-block.
- src/dlx/package.ts: normalize parsePackageSpec to return
`version: undefined` for a bare trailing "@" (e.g. "pkg@") so
downstream "no version" checks behave consistently.
- src/dlx/manifest.ts: correct the @fileoverview "Primary API" list to
match the actual DlxManifest methods (get/set/clear/clearAll/isFresh/
getManifestEntry) and flag setPackageEntry/setBinaryEntry as deprecated.
From scan findings: not fixing stdio/prompts.ts's silent swallow — the
tests in test/unit/stdio/prompts.test.mts explicitly assert that
non-TypeError rejections return undefined (that's the documented
Ctrl-C path). Discarded three scanner claims that were wrong (already
handled by existing guards). Full suite: 6290 passing.
0 commit comments