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

arialinter

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arialinter - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

1

lib/cli/node.js

@@ -19,2 +19,3 @@ var ArialLinter = require('../arialinter.js').ArialLinter;

console.log(('The HTML of the file ' + file + ' doenst seem to be valid according the WCAG 2.0 spec.\n').red);
console.log(linter.getReport('text'));
callback();

@@ -21,0 +22,0 @@ }

13

lib/formatters/json.js

@@ -18,3 +18,3 @@ var jsonFormatter = {

endFormat: function() {
return '';
return '';
},

@@ -42,3 +42,3 @@

if (messages.length === 0) {
return '{ errors: [] }';
return '{ "errors": [] }';
}

@@ -48,6 +48,9 @@

output += '{ errors: [';
// output += '\n\nFile: ' + filename.$('html').html() + '\n';
output += '{ "errors": [';
for (var x = 0; x < len; x++) {
output += '{ type: "' + capitalize(messages[x].type) + '", rule: "' + capitalize(messages[x].rule) + '", message: "' + capitalize(messages[x].message) + '" },';
output += '{ "type": "' + capitalize(messages[x].type) + '", "rule": "' + capitalize(messages[x].rule) + '", "message": "' + capitalize(messages[x].message) + '" }';
if (x < (len - 1)) {
output += ',';
}
}

@@ -54,0 +57,0 @@ output += ']}';

{
"name": "arialinter",
"description": "AriaLinter provides a simple accesibility linter for HTML documents.",
"version": "0.2.4",
"version": "0.2.5",
"homepage": "https://github.com/globant-ui/arialinter",

@@ -6,0 +6,0 @@ "repository": {

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