New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-validator

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-validator - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

tst.js

15

lib/filter-data.js

@@ -6,5 +6,14 @@ 'use strict'

const filters = Array.isArray(ignore) ? ignore : [ignore]
const doIgnore = (item) => filters.indexOf(item) === -1
return list.filter(doIgnore).join('\n')
let errors = false
let results = []
list.forEach((line, index) => {
if (line.startsWith('Error') && filters.indexOf(line) === -1) {
results.push(line)
results.push(list[index + 1])
errors = true
} else if (line.startsWith('The')) {
results.push(line)
}
})
return errors === true ? results.join('\n') : 'The document validates according to the specified schema(s).'
}

10

package.json
{
"name": "html-validator",
"version": "2.2.2",
"version": "2.2.3",
"description": "Validate html using validator.w3.org/nu",

@@ -13,3 +13,3 @@ "license": "MIT",

"engines": {
"node": ">=4.8.3"
"node": ">=4.8.4"
},

@@ -41,6 +41,6 @@ "scripts": {

"coveralls": "2.13.1",
"nsp": "2.6.3",
"standard": "10.0.2",
"tap": "10.7.0"
"nsp": "2.7.0",
"standard": "10.0.3",
"tap": "10.7.2"
}
}
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