Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sa11y/format

Package Overview
Dependencies
Maintainers
4
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sa11y/format - npm Package Compare versions

Comparing version 6.5.0 to 6.5.1

7

dist/filter.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc