From ef538eb3f650f0ab7957143e1534d4050d8671ad Mon Sep 17 00:00:00 2001 From: coder-Yash886 Date: Fri, 22 May 2026 23:51:20 +0530 Subject: [PATCH] fix(report): move fix version column next to current version --- src/output/html-reporter.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output/html-reporter.ts b/src/output/html-reporter.ts index 4c482c8..cb5ed62 100644 --- a/src/output/html-reporter.ts +++ b/src/output/html-reporter.ts @@ -270,10 +270,10 @@ ${noticesHtml} Package + Fix available Severity Type CVE / Advisory - Fix available @@ -356,7 +356,7 @@ function applyFilters() { function sortBy(col) { if (sortCol === col) { sortAsc = !sortAsc; } else { sortCol = col; sortAsc = col === 'package'; } document.querySelectorAll('.findings-table thead th').forEach(th => th.classList.remove('sorted')); - const colIndex = ['', 'package', 'severity', 'relationship'].indexOf(col); + const colIndex = ['', 'package', '', 'severity', 'relationship'].indexOf(col); if (colIndex > 0) document.querySelectorAll('.findings-table thead th')[colIndex].classList.add('sorted'); const tbody = document.getElementById('findings-tbody'); @@ -458,10 +458,10 @@ function renderFindingRow(finding: SerializedFinding, idx: number): string { return `
${escapeHtml(finding.package)}
${escapeHtml(finding.version)}
+ ${fixHtml} ${escapeHtml(finding.severity)} ${escapeHtml(finding.relationship)} ${cveLinks} - ${fixHtml}