@sa11y/format
Advanced tools
Comparing version 6.5.0 to 6.5.1
@@ -54,6 +54,9 @@ "use strict"; | ||
function checkSelectorFilterKeyWordsExists(node, selectorFilterKeywords) { | ||
const selectorAncestry = node.ancestry?.flat(Infinity) ?? []; | ||
const selectorAncestry = (node.ancestry?.flat(Infinity) ?? []); | ||
let isExists = false; | ||
selectorFilterKeywords.some((keyword) => { | ||
isExists = selectorAncestry.some((selector) => selector.includes(keyword)); | ||
isExists = selectorAncestry.some((selector) => { | ||
const lastSelector = selector.split('>').pop(); | ||
return lastSelector?.includes(keyword) ?? false; | ||
}); | ||
return isExists; | ||
@@ -60,0 +63,0 @@ }); |
{ | ||
"name": "@sa11y/format", | ||
"version": "6.5.0", | ||
"version": "6.5.1", | ||
"description": "Accessibility results re-formatter", | ||
@@ -27,4 +27,4 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"@sa11y/common": "6.5.0", | ||
"@sa11y/preset-rules": "6.5.0", | ||
"@sa11y/common": "6.5.1", | ||
"@sa11y/preset-rules": "6.5.1", | ||
"axe-core": "4.8.3" | ||
@@ -34,3 +34,3 @@ }, | ||
"@jest/globals": "28.1.3", | ||
"@sa11y/test-utils": "6.5.0" | ||
"@sa11y/test-utils": "6.5.1" | ||
}, | ||
@@ -43,3 +43,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "987dfd0ab61b9d197959d0073f3fe02d5130cc89" | ||
"gitHead": "66e5cb2603ce047f133621d22cde9c8cd7378170" | ||
} |
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
20102
362
+ Added@sa11y/common@6.5.1(transitive)
+ Added@sa11y/preset-rules@6.5.1(transitive)
- Removed@sa11y/common@6.5.0(transitive)
- Removed@sa11y/preset-rules@6.5.0(transitive)
Updated@sa11y/common@6.5.1
Updated@sa11y/preset-rules@6.5.1