@diegovelasquezweb/a11y-engine 0.10.1 → 0.10.2
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/package.json +1 -1
- package/src/index.d.mts +2 -1
- package/src/index.mjs +5 -2
package/package.json
CHANGED
package/src/index.d.mts
CHANGED
|
@@ -426,7 +426,8 @@ export function getFindings(
|
|
|
426
426
|
|
|
427
427
|
export function getOverview(
|
|
428
428
|
findings: EnrichedFinding[],
|
|
429
|
-
payload?: ScanPayload | null
|
|
429
|
+
payload?: ScanPayload | null,
|
|
430
|
+
options?: { countIncompleteInScore?: boolean }
|
|
430
431
|
): AuditSummary;
|
|
431
432
|
|
|
432
433
|
export function getPDFReport(
|
package/src/index.mjs
CHANGED
|
@@ -378,10 +378,13 @@ function getPersonaGroups(findings) {
|
|
|
378
378
|
*
|
|
379
379
|
* @param {object[]} findings - Array of enriched findings.
|
|
380
380
|
* @param {{ findings: object[], metadata?: object }|null} [payload=null] - Original scan payload for metadata extraction.
|
|
381
|
+
* @param {{ countIncompleteInScore?: boolean }} [options={}] - Scoring options.
|
|
381
382
|
* @returns {object} Full audit summary.
|
|
382
383
|
*/
|
|
383
|
-
export function getOverview(findings, payload = null) {
|
|
384
|
-
const scorableFindings =
|
|
384
|
+
export function getOverview(findings, payload = null, options = {}) {
|
|
385
|
+
const scorableFindings = options.countIncompleteInScore
|
|
386
|
+
? findings
|
|
387
|
+
: findings.filter((f) => !f.needsVerification);
|
|
385
388
|
const totals = { Critical: 0, Serious: 0, Moderate: 0, Minor: 0 };
|
|
386
389
|
for (const f of scorableFindings) {
|
|
387
390
|
const severity = f.severity || "";
|