@cclabsnz/sf-audit 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +228 -31
- package/lib/api/ToolingClientImpl.js +5 -2
- package/lib/chains/AttackChain.d.ts +20 -0
- package/lib/chains/AttackChain.js +2 -0
- package/lib/chains/Capability.d.ts +7 -0
- package/lib/chains/Capability.js +11 -0
- package/lib/chains/CapabilityRegistry.d.ts +18 -0
- package/lib/chains/CapabilityRegistry.js +53 -0
- package/lib/chains/ChainEngine.d.ts +13 -0
- package/lib/chains/ChainEngine.js +137 -0
- package/lib/chains/namedChains.d.ts +14 -0
- package/lib/chains/namedChains.js +99 -0
- package/lib/checks/CheckEngine.js +33 -5
- package/lib/checks/impl/AnonymousApexAuditCheck.d.ts +10 -0
- package/lib/checks/impl/AnonymousApexAuditCheck.js +106 -0
- package/lib/checks/impl/ApexCrudFLSCheck.d.ts +11 -0
- package/lib/checks/impl/ApexCrudFLSCheck.js +98 -0
- package/lib/checks/impl/ApexLoggingCheck.d.ts +11 -0
- package/lib/checks/impl/ApexLoggingCheck.js +124 -0
- package/lib/checks/impl/ApexRestEndpointCheck.d.ts +11 -0
- package/lib/checks/impl/ApexRestEndpointCheck.js +94 -0
- package/lib/checks/impl/ApexSharingCheck.js +29 -0
- package/lib/checks/impl/ApiClientPermissionCheck.d.ts +10 -0
- package/lib/checks/impl/ApiClientPermissionCheck.js +59 -0
- package/lib/checks/impl/AuditTrailCheck.js +29 -0
- package/lib/checks/impl/CertificateExpiryCheck.d.ts +10 -0
- package/lib/checks/impl/CertificateExpiryCheck.js +123 -0
- package/lib/checks/impl/CodeSecurityCheck.d.ts +2 -1
- package/lib/checks/impl/CodeSecurityCheck.js +46 -6
- package/lib/checks/impl/ConnectedAppInactivityCheck.d.ts +11 -0
- package/lib/checks/impl/ConnectedAppInactivityCheck.js +86 -0
- package/lib/checks/impl/ConnectedAppScopeCheck.d.ts +10 -0
- package/lib/checks/impl/ConnectedAppScopeCheck.js +125 -0
- package/lib/checks/impl/ConnectedAppsCheck.d.ts +1 -0
- package/lib/checks/impl/ConnectedAppsCheck.js +37 -2
- package/lib/checks/impl/ContentLinksCheck.d.ts +10 -0
- package/lib/checks/impl/ContentLinksCheck.js +115 -0
- package/lib/checks/impl/CorsAllowlistCheck.d.ts +10 -0
- package/lib/checks/impl/CorsAllowlistCheck.js +80 -0
- package/lib/checks/impl/CspTrustedSitesCheck.d.ts +10 -0
- package/lib/checks/impl/CspTrustedSitesCheck.js +55 -0
- package/lib/checks/impl/CustomLabelsCredentialCheck.d.ts +10 -0
- package/lib/checks/impl/CustomLabelsCredentialCheck.js +97 -0
- package/lib/checks/impl/DataClassificationCheck.d.ts +10 -0
- package/lib/checks/impl/DataClassificationCheck.js +112 -0
- package/lib/checks/impl/DebugLogAccessCheck.d.ts +10 -0
- package/lib/checks/impl/DebugLogAccessCheck.js +81 -0
- package/lib/checks/impl/DeploymentIdentityCheck.d.ts +11 -0
- package/lib/checks/impl/DeploymentIdentityCheck.js +144 -0
- package/lib/checks/impl/EnhancedDomainsCheck.d.ts +10 -0
- package/lib/checks/impl/EnhancedDomainsCheck.js +84 -0
- package/lib/checks/impl/EscalationPermsCheck.d.ts +10 -0
- package/lib/checks/impl/EscalationPermsCheck.js +77 -0
- package/lib/checks/impl/EventMonitoringCheck.d.ts +11 -0
- package/lib/checks/impl/EventMonitoringCheck.js +84 -0
- package/lib/checks/impl/ExperienceCloudSiteCheck.d.ts +10 -0
- package/lib/checks/impl/ExperienceCloudSiteCheck.js +91 -0
- package/lib/checks/impl/FailedLoginCheck.d.ts +10 -0
- package/lib/checks/impl/FailedLoginCheck.js +122 -0
- package/lib/checks/impl/FieldHistoryTrackingCheck.d.ts +10 -0
- package/lib/checks/impl/FieldHistoryTrackingCheck.js +70 -0
- package/lib/checks/impl/FieldLevelSecurityCheck.js +28 -18
- package/lib/checks/impl/GuestExecutableApexCheck.d.ts +11 -0
- package/lib/checks/impl/GuestExecutableApexCheck.js +93 -0
- package/lib/checks/impl/GuestUserAccessCheck.js +74 -66
- package/lib/checks/impl/HardcodedCredentialsCheck.js +2 -2
- package/lib/checks/impl/HighAssuranceSessionCheck.d.ts +10 -0
- package/lib/checks/impl/HighAssuranceSessionCheck.js +103 -0
- package/lib/checks/impl/InactiveUsersCheck.js +38 -19
- package/lib/checks/impl/InstalledPackagesCheck.d.ts +10 -0
- package/lib/checks/impl/InstalledPackagesCheck.js +94 -0
- package/lib/checks/impl/IntegrationUsersCheck.d.ts +10 -0
- package/lib/checks/impl/IntegrationUsersCheck.js +108 -0
- package/lib/checks/impl/InternalUserMfaCheck.d.ts +10 -0
- package/lib/checks/impl/InternalUserMfaCheck.js +81 -0
- package/lib/checks/impl/IpRestrictionsCheck.js +86 -23
- package/lib/checks/impl/LegacyApiVersionCheck.d.ts +10 -0
- package/lib/checks/impl/LegacyApiVersionCheck.js +91 -0
- package/lib/checks/impl/MfaEnforcementCheck.d.ts +10 -0
- package/lib/checks/impl/MfaEnforcementCheck.js +76 -0
- package/lib/checks/impl/MfaMethodStrengthCheck.d.ts +11 -0
- package/lib/checks/impl/MfaMethodStrengthCheck.js +116 -0
- package/lib/checks/impl/MfaRegistrationCheck.d.ts +11 -0
- package/lib/checks/impl/MfaRegistrationCheck.js +95 -0
- package/lib/checks/impl/MyDomainLoginPolicyCheck.d.ts +10 -0
- package/lib/checks/impl/MyDomainLoginPolicyCheck.js +105 -0
- package/lib/checks/impl/NamedCredentialsCheck.js +37 -2
- package/lib/checks/impl/PermissionsCheck.js +67 -14
- package/lib/checks/impl/PublicGroupSharingCheck.js +20 -9
- package/lib/checks/impl/ReleaseUpdatesCheck.d.ts +10 -0
- package/lib/checks/impl/ReleaseUpdatesCheck.js +106 -0
- package/lib/checks/impl/ReportFolderAccessCheck.d.ts +10 -0
- package/lib/checks/impl/ReportFolderAccessCheck.js +54 -0
- package/lib/checks/impl/ScheduledApexCheck.d.ts +1 -0
- package/lib/checks/impl/ScheduledApexCheck.js +3 -0
- package/lib/checks/impl/SharingModelCheck.d.ts +1 -1
- package/lib/checks/impl/SharingModelCheck.js +103 -32
- package/lib/checks/impl/SiemIntegrationCheck.d.ts +11 -0
- package/lib/checks/impl/SiemIntegrationCheck.js +102 -0
- package/lib/checks/impl/SsoEnforcementCheck.d.ts +10 -0
- package/lib/checks/impl/SsoEnforcementCheck.js +90 -0
- package/lib/checks/impl/StandardProfilesCheck.d.ts +10 -0
- package/lib/checks/impl/StandardProfilesCheck.js +68 -0
- package/lib/checks/impl/TransactionSecurityPolicyCheck.d.ts +10 -0
- package/lib/checks/impl/TransactionSecurityPolicyCheck.js +62 -0
- package/lib/checks/impl/TrustedIPRangesCheck.d.ts +10 -0
- package/lib/checks/impl/TrustedIPRangesCheck.js +106 -0
- package/lib/checks/impl/UsersAndAdminsCheck.js +50 -20
- package/lib/checks/impl/VisualforceXssCheck.d.ts +11 -0
- package/lib/checks/impl/VisualforceXssCheck.js +150 -0
- package/lib/checks/registry.js +97 -12
- package/lib/commands/audit/diff.d.ts +17 -0
- package/lib/commands/audit/diff.js +76 -0
- package/lib/commands/audit/history.d.ts +15 -0
- package/lib/commands/audit/history.js +59 -0
- package/lib/commands/audit/security.d.ts +5 -0
- package/lib/commands/audit/security.js +38 -9
- package/lib/compliance/catalogs/hiso10029.d.ts +3 -0
- package/lib/compliance/catalogs/hiso10029.js +35 -0
- package/lib/compliance/catalogs/index.d.ts +4 -0
- package/lib/compliance/catalogs/index.js +21 -0
- package/lib/compliance/catalogs/iso27001.d.ts +3 -0
- package/lib/compliance/catalogs/iso27001.js +39 -0
- package/lib/compliance/catalogs/nzism.d.ts +3 -0
- package/lib/compliance/catalogs/nzism.js +31 -0
- package/lib/compliance/catalogs/owasp.d.ts +3 -0
- package/lib/compliance/catalogs/owasp.js +37 -0
- package/lib/compliance/catalogs/privacyAct.d.ts +3 -0
- package/lib/compliance/catalogs/privacyAct.js +17 -0
- package/lib/compliance/catalogs/sbs.d.ts +3 -0
- package/lib/compliance/catalogs/sbs.js +61 -0
- package/lib/compliance/catalogs/soc2.d.ts +3 -0
- package/lib/compliance/catalogs/soc2.js +42 -0
- package/lib/compliance/mapping.d.ts +2 -0
- package/lib/compliance/mapping.js +111 -0
- package/lib/compliance/resolve.d.ts +12 -0
- package/lib/compliance/resolve.js +49 -0
- package/lib/compliance/types.d.ts +13 -0
- package/lib/compliance/types.js +2 -0
- package/lib/context/AuditCache.d.ts +20 -0
- package/lib/context/AuditContext.d.ts +0 -2
- package/lib/findings/AuditResult.d.ts +3 -0
- package/lib/findings/CheckMeta.d.ts +9 -0
- package/lib/findings/CheckMeta.js +67 -0
- package/lib/findings/ComplianceMapping.d.ts +3 -0
- package/lib/findings/ComplianceMapping.js +75 -0
- package/lib/findings/Finding.d.ts +20 -0
- package/lib/findings/loadScoringConfig.js +9 -2
- package/lib/findings/scoring.d.ts +2 -1
- package/lib/findings/scoring.js +20 -7
- package/lib/history/AuditDiff.d.ts +26 -0
- package/lib/history/AuditDiff.js +2 -0
- package/lib/history/DiffEngine.d.ts +4 -0
- package/lib/history/DiffEngine.js +61 -0
- package/lib/history/HistoryStore.d.ts +11 -0
- package/lib/history/HistoryStore.js +56 -0
- package/lib/history/metricMeta.d.ts +9 -0
- package/lib/history/metricMeta.js +28 -0
- package/lib/index.d.ts +7 -1
- package/lib/index.js +2 -1
- package/lib/lib/wire.d.ts +1 -2
- package/lib/lib/wire.js +1 -2
- package/lib/renderers/AuditRenderer.d.ts +2 -0
- package/lib/renderers/ClientReportRenderer.d.ts +29 -0
- package/lib/renderers/ClientReportRenderer.js +205 -0
- package/lib/renderers/DiffHtmlRenderer.d.ts +8 -0
- package/lib/renderers/DiffHtmlRenderer.js +164 -0
- package/lib/renderers/DiffJsonRenderer.d.ts +8 -0
- package/lib/renderers/DiffJsonRenderer.js +8 -0
- package/lib/renderers/DiffRenderer.d.ts +7 -0
- package/lib/renderers/DiffRenderer.js +2 -0
- package/lib/renderers/HistoryRenderer.d.ts +6 -0
- package/lib/renderers/HistoryRenderer.js +140 -0
- package/lib/renderers/HtmlRenderer.d.ts +1 -0
- package/lib/renderers/HtmlRenderer.js +354 -60
- package/lib/renderers/MarkdownRenderer.js +34 -1
- package/lib/renderers/html-utils.d.ts +2 -0
- package/lib/renderers/html-utils.js +8 -0
- package/lib/report/ComplianceMatrix.d.ts +19 -0
- package/lib/report/ComplianceMatrix.js +47 -0
- package/lib/report/ExecutivePriorities.d.ts +8 -0
- package/lib/report/ExecutivePriorities.js +22 -0
- package/lib/report/RemediationRoadmap.d.ts +9 -0
- package/lib/report/RemediationRoadmap.js +18 -0
- package/lib/report/branding.d.ts +18 -0
- package/lib/report/branding.js +19 -0
- package/lib/report/fonts.d.ts +2 -0
- package/lib/report/fonts.js +22 -0
- package/package.json +4 -3
- package/src/assets/fonts/dm-sans-italic-latin.woff2 +0 -0
- package/src/assets/fonts/dm-sans-normal-latin.woff2 +0 -0
- package/src/assets/fonts/dm-serif-display-italic-latin.woff2 +0 -0
- package/src/assets/fonts/dm-serif-display-normal-latin.woff2 +0 -0
- package/config/queries/soql.json +0 -24
- package/config/queries/tooling.json +0 -28
- package/config/scoring.json +0 -17
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
function fmtDate(d) {
|
|
2
|
+
return d.toISOString().replace('T', ' ').substring(0, 16);
|
|
3
|
+
}
|
|
4
|
+
function countBySeverity(result, level) {
|
|
5
|
+
return result.findings.filter((f) => f.riskLevel === level).length;
|
|
6
|
+
}
|
|
7
|
+
export class HistoryRenderer {
|
|
8
|
+
renderTable(results) {
|
|
9
|
+
if (results.length === 0)
|
|
10
|
+
return 'No audit history found.';
|
|
11
|
+
const orgName = results[0].orgName;
|
|
12
|
+
const orgId = results[0].orgId;
|
|
13
|
+
const header = `Audit History: ${orgName} (${orgId})`;
|
|
14
|
+
const divider = '─'.repeat(Math.max(header.length, 80));
|
|
15
|
+
const colHeader = ' # Date Score Grade CRIT HIGH MED LOW Δ Score';
|
|
16
|
+
const rows = results.map((r, i) => {
|
|
17
|
+
const prev = i > 0 ? results[i - 1] : null;
|
|
18
|
+
const delta = prev ? (r.healthScore - prev.healthScore >= 0 ? `+${r.healthScore - prev.healthScore}` : `${r.healthScore - prev.healthScore}`) : '—';
|
|
19
|
+
const crit = String(countBySeverity(r, 'CRITICAL')).padStart(4);
|
|
20
|
+
const high = String(countBySeverity(r, 'HIGH')).padStart(4);
|
|
21
|
+
const med = String(countBySeverity(r, 'MEDIUM')).padStart(6);
|
|
22
|
+
const low = String(countBySeverity(r, 'LOW')).padStart(6);
|
|
23
|
+
return ` ${String(i + 1).padStart(2)} ${fmtDate(r.generatedAt).padEnd(20)} ${String(r.healthScore).padStart(5)} ${r.grade.padEnd(5)} ${crit} ${high} ${med} ${low} ${String(delta).padStart(7)}`;
|
|
24
|
+
});
|
|
25
|
+
const scores = results.map((r) => r.healthScore);
|
|
26
|
+
const best = Math.max(...scores);
|
|
27
|
+
const worst = Math.min(...scores);
|
|
28
|
+
const trend = scores[scores.length - 1] - scores[0];
|
|
29
|
+
const trendStr = trend >= 0 ? `▲ +${trend}` : `▼ ${trend}`;
|
|
30
|
+
const bestDate = fmtDate(results[scores.indexOf(best)].generatedAt);
|
|
31
|
+
const worstDate = fmtDate(results[scores.indexOf(worst)].generatedAt);
|
|
32
|
+
const summary = ` Trend: ${trendStr} over ${results.length} audit${results.length !== 1 ? 's' : ''} Best: ${best} (${bestDate}) Worst: ${worst} (${worstDate})`;
|
|
33
|
+
return [header, divider, colHeader, divider, ...rows, divider, summary].join('\n');
|
|
34
|
+
}
|
|
35
|
+
renderHtml(results) {
|
|
36
|
+
if (results.length === 0)
|
|
37
|
+
return '<!DOCTYPE html><html><body><p>No audit history found.</p></body></html>';
|
|
38
|
+
const orgName = results[0].orgName;
|
|
39
|
+
const orgId = results[0].orgId;
|
|
40
|
+
const labels = JSON.stringify(results.map((r) => fmtDate(r.generatedAt)));
|
|
41
|
+
const scores = JSON.stringify(results.map((r) => r.healthScore));
|
|
42
|
+
const crits = JSON.stringify(results.map((r) => countBySeverity(r, 'CRITICAL')));
|
|
43
|
+
const highs = JSON.stringify(results.map((r) => countBySeverity(r, 'HIGH')));
|
|
44
|
+
const meds = JSON.stringify(results.map((r) => countBySeverity(r, 'MEDIUM')));
|
|
45
|
+
const lows = JSON.stringify(results.map((r) => countBySeverity(r, 'LOW')));
|
|
46
|
+
const tableRows = results.map((r, i) => {
|
|
47
|
+
const prev = i > 0 ? results[i - 1] : null;
|
|
48
|
+
const delta = prev ? (r.healthScore - prev.healthScore >= 0 ? `+${r.healthScore - prev.healthScore}` : `${r.healthScore - prev.healthScore}`) : '—';
|
|
49
|
+
const deltaColor = prev ? (r.healthScore >= prev.healthScore ? '#22c55e' : '#dc2626') : '#8b949e';
|
|
50
|
+
return `<tr>
|
|
51
|
+
<td>${i + 1}</td>
|
|
52
|
+
<td>${fmtDate(r.generatedAt)}</td>
|
|
53
|
+
<td style="text-align:right;font-weight:700">${r.healthScore}</td>
|
|
54
|
+
<td style="text-align:center">${r.grade}</td>
|
|
55
|
+
<td style="text-align:right;color:#dc2626">${countBySeverity(r, 'CRITICAL')}</td>
|
|
56
|
+
<td style="text-align:right;color:#ea580c">${countBySeverity(r, 'HIGH')}</td>
|
|
57
|
+
<td style="text-align:right;color:#d97706">${countBySeverity(r, 'MEDIUM')}</td>
|
|
58
|
+
<td style="text-align:right;color:#2563eb">${countBySeverity(r, 'LOW')}</td>
|
|
59
|
+
<td style="text-align:right;color:${deltaColor};font-weight:700">${delta}</td>
|
|
60
|
+
</tr>`;
|
|
61
|
+
}).join('');
|
|
62
|
+
return `<!DOCTYPE html>
|
|
63
|
+
<html lang="en">
|
|
64
|
+
<head>
|
|
65
|
+
<meta charset="UTF-8">
|
|
66
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
67
|
+
<title>SF Audit History — ${orgName}</title>
|
|
68
|
+
<script src="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js"></script>
|
|
69
|
+
<style>
|
|
70
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
71
|
+
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; background: #0d1117; color: #c9d1d9; max-width: 1100px; margin: 2rem auto; padding: 0 1.25rem 4rem; line-height: 1.6; }
|
|
72
|
+
h1 { color: #f0f6fc; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.4rem; }
|
|
73
|
+
h2 { color: #e6edf3; font-size: 1.1rem; font-weight: 700; margin: 2rem 0 1rem; }
|
|
74
|
+
.meta { font-size: 0.8rem; color: #8b949e; margin-bottom: 2rem; }
|
|
75
|
+
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
|
|
76
|
+
.chart-box { background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 1.25rem; }
|
|
77
|
+
canvas { max-height: 280px; }
|
|
78
|
+
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
|
|
79
|
+
th { background: #1c2128; color: #8b949e; text-align: left; padding: 0.4rem 0.75rem; border-bottom: 1px solid #30363d; font-weight: 600; }
|
|
80
|
+
td { padding: 0.4rem 0.75rem; border-bottom: 1px solid #21262d; }
|
|
81
|
+
tr:last-child td { border-bottom: none; }
|
|
82
|
+
@media(max-width:640px) { .charts { grid-template-columns: 1fr; } }
|
|
83
|
+
</style>
|
|
84
|
+
</head>
|
|
85
|
+
<body>
|
|
86
|
+
<h1>Salesforce Audit History</h1>
|
|
87
|
+
<div class="meta">Org: <strong style="color:#c9d1d9">${orgName}</strong> (${orgId})</div>
|
|
88
|
+
|
|
89
|
+
<div class="charts">
|
|
90
|
+
<div class="chart-box">
|
|
91
|
+
<h2>Score Trend</h2>
|
|
92
|
+
<canvas id="scoreChart"></canvas>
|
|
93
|
+
</div>
|
|
94
|
+
<div class="chart-box">
|
|
95
|
+
<h2>Findings by Severity</h2>
|
|
96
|
+
<canvas id="findingsChart"></canvas>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<h2>Run History</h2>
|
|
101
|
+
<table>
|
|
102
|
+
<thead><tr><th>#</th><th>Date</th><th style="text-align:right">Score</th><th style="text-align:center">Grade</th><th style="text-align:right">CRIT</th><th style="text-align:right">HIGH</th><th style="text-align:right">MED</th><th style="text-align:right">LOW</th><th style="text-align:right">Δ Score</th></tr></thead>
|
|
103
|
+
<tbody>${tableRows}</tbody>
|
|
104
|
+
</table>
|
|
105
|
+
|
|
106
|
+
<script>
|
|
107
|
+
const labels = ${labels};
|
|
108
|
+
const scores = ${scores};
|
|
109
|
+
const crits = ${crits};
|
|
110
|
+
const highs = ${highs};
|
|
111
|
+
const meds = ${meds};
|
|
112
|
+
const lows = ${lows};
|
|
113
|
+
|
|
114
|
+
const chartDefaults = { responsive: true, plugins: { legend: { labels: { color: '#8b949e' } } }, scales: { x: { ticks: { color: '#8b949e' }, grid: { color: '#21262d' } }, y: { ticks: { color: '#8b949e' }, grid: { color: '#21262d' } } } };
|
|
115
|
+
|
|
116
|
+
new Chart(document.getElementById('scoreChart'), {
|
|
117
|
+
type: 'line',
|
|
118
|
+
data: { labels, datasets: [{ label: 'Health Score', data: scores, borderColor: '#58a6ff', backgroundColor: 'rgba(88,166,255,0.1)', tension: 0.3, fill: true, pointRadius: 4 }] },
|
|
119
|
+
options: { ...chartDefaults, scales: { ...chartDefaults.scales, y: { ...chartDefaults.scales.y, min: 0, max: 100 } } },
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
new Chart(document.getElementById('findingsChart'), {
|
|
123
|
+
type: 'bar',
|
|
124
|
+
data: {
|
|
125
|
+
labels,
|
|
126
|
+
datasets: [
|
|
127
|
+
{ label: 'CRITICAL', data: crits, backgroundColor: '#dc2626' },
|
|
128
|
+
{ label: 'HIGH', data: highs, backgroundColor: '#ea580c' },
|
|
129
|
+
{ label: 'MEDIUM', data: meds, backgroundColor: '#d97706' },
|
|
130
|
+
{ label: 'LOW', data: lows, backgroundColor: '#2563eb' },
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
options: { ...chartDefaults, scales: { ...chartDefaults.scales, x: { ...chartDefaults.scales.x, stacked: true }, y: { ...chartDefaults.scales.y, stacked: true } } },
|
|
134
|
+
});
|
|
135
|
+
</script>
|
|
136
|
+
</body>
|
|
137
|
+
</html>`;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=HistoryRenderer.js.map
|
|
@@ -3,6 +3,7 @@ import type { AuditRenderer } from './AuditRenderer.js';
|
|
|
3
3
|
export declare class HtmlRenderer implements AuditRenderer {
|
|
4
4
|
readonly format = "html";
|
|
5
5
|
readonly fileExtension = ".html";
|
|
6
|
+
private renderAttackPaths;
|
|
6
7
|
render(result: AuditResult): string;
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=HtmlRenderer.d.ts.map
|