@sa11y/format
Advanced tools
Comparing version 6.6.2 to 6.7.0
@@ -35,2 +35,6 @@ import { AxeResults } from '@sa11y/common'; | ||
readonly key: string; | ||
readonly ancestry: string; | ||
readonly any: string; | ||
readonly all: string; | ||
readonly none: string; | ||
private readonly wcagData; | ||
@@ -37,0 +41,0 @@ constructor(violation: Result, node: NodeResult); |
@@ -6,2 +6,3 @@ "use strict"; | ||
const defaultImpact = 'minor'; // if impact is undefined | ||
const formatSpacing = '\t'.repeat(12); | ||
// Helper object to sort violations by impact order | ||
@@ -79,2 +80,6 @@ const impactOrder = { | ||
this.key = `${this.id}--${this.selectors}`; | ||
this.ancestry = (node.ancestry?.flat(Infinity) ?? []).join('\n'); | ||
this.any = node.any?.map((item) => `${formatSpacing}• ${item.message}`).join('\n'); | ||
this.all = node.all?.map((item) => `${formatSpacing}• ${item.message}`).join('\n'); | ||
this.none = node.none?.map((item) => `${formatSpacing}• ${item.message}`).join('\n'); | ||
} | ||
@@ -81,0 +86,0 @@ /** |
{ | ||
"name": "@sa11y/format", | ||
"version": "6.6.2", | ||
"version": "6.7.0", | ||
"description": "Accessibility results re-formatter", | ||
@@ -27,4 +27,4 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"@sa11y/common": "6.6.2", | ||
"@sa11y/preset-rules": "6.6.2", | ||
"@sa11y/common": "6.7.0", | ||
"@sa11y/preset-rules": "6.7.0", | ||
"axe-core": "4.9.0" | ||
@@ -34,3 +34,3 @@ }, | ||
"@jest/globals": "28.1.3", | ||
"@sa11y/test-utils": "6.6.2" | ||
"@sa11y/test-utils": "6.7.0" | ||
}, | ||
@@ -43,3 +43,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "03c66b2df14c3d80601e50e911a3eb40e8b5cbcd" | ||
"gitHead": "51eb9c721ab10fde5dce7cb1ef1556be47541899" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20738
371
+ Added@sa11y/common@6.7.0(transitive)
+ Added@sa11y/preset-rules@6.7.0(transitive)
- Removed@sa11y/common@6.6.2(transitive)
- Removed@sa11y/preset-rules@6.6.2(transitive)
Updated@sa11y/common@6.7.0
Updated@sa11y/preset-rules@6.7.0