Skip to content

v0.10.1

@gambtho gambtho tagged this 03 Sep 21:31
Two review findings on the diagnostics helper:

Reject an extension name that isn't a plain identifier, and quote it in
the command. The names come from package.json rather than user input, so
this is not a live injection path, but a typo should fail with a clear
message instead of becoming shell syntax.

Redact the stringified errors too. execSync puts the output a command
managed to produce into the thrown error's message, so a probe that fails
partway through printing an index URL could otherwise leak a credential
that the success path already strips.
Assets 2
Loading