Redact secrets in bunfig.toml and npmrc logs (#14919)

This commit is contained in:
Dylan Conway
2024-10-31 18:44:24 -07:00
committed by GitHub
parent 6933208790
commit 62881ee36b
39 changed files with 952 additions and 612 deletions

View File

@@ -1161,11 +1161,7 @@ pub const TestCommand = struct {
js_ast.Stmt.Data.Store.reset();
if (vm.log.errors > 0) {
if (Output.enable_ansi_colors) {
vm.log.printForLogLevelWithEnableAnsiColors(Output.errorWriter(), true) catch {};
} else {
vm.log.printForLogLevelWithEnableAnsiColors(Output.errorWriter(), false) catch {};
}
vm.log.print(Output.errorWriter()) catch {};
vm.log.msgs.clearRetainingCapacity();
vm.log.errors = 0;
}