Socket
Socket
Sign inDemoInstall

@sa11y/format

Package Overview
Dependencies
3
Maintainers
4
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.9.2 to 6.9.3

16

dist/filter.js

@@ -20,3 +20,17 @@ "use strict";

for (const result of violation.nodes) {
const filteredResults = result.target.filter((cssSelector) => !exceptionList[violation.id].includes(cssSelector));
const filteredResults = [];
result.target.forEach((cssSelectorItem) => {
if (Array.isArray(cssSelectorItem)) {
cssSelectorItem.forEach((cssSelector) => {
if (!exceptionList[violation.id].includes(cssSelector)) {
filteredResults.push(cssSelector);
}
});
}
else {
if (!exceptionList[violation.id].includes(cssSelectorItem)) {
filteredResults.push(cssSelectorItem);
}
}
});
if (filteredResults.length > 0) {

@@ -23,0 +37,0 @@ filteredViolations.push(violation);

10

package.json
{
"name": "@sa11y/format",
"version": "6.9.2",
"version": "6.9.3",
"description": "Accessibility results re-formatter",

@@ -27,4 +27,4 @@ "license": "BSD-3-Clause",

"dependencies": {
"@sa11y/common": "6.9.2",
"@sa11y/preset-rules": "6.9.2",
"@sa11y/common": "6.9.3",
"@sa11y/preset-rules": "6.9.3",
"axe-core": "4.9.0"

@@ -34,3 +34,3 @@ },

"@jest/globals": "28.1.3",
"@sa11y/test-utils": "6.9.2"
"@sa11y/test-utils": "6.9.3"
},

@@ -43,3 +43,3 @@ "publishConfig": {

},
"gitHead": "2eca6d223e98bd7794c7283bd87d7c1d57d407cb"
"gitHead": "353ccd064efb3bf4ba7b6101de7fc2429b004706"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc