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.6.2 to 6.7.0

4

dist/result.d.ts

@@ -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 @@ /**

10

package.json
{
"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

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