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 4.0.3 to 4.0.4

7

index.js

@@ -17,8 +17,3 @@ const validUrl = require('valid-url')

try {
const result = await validate(options)
return result
} catch (error) {
throw error
}
return validate(options)
}

@@ -28,7 +28,3 @@ const getData = require('./get-data')

if (options.isLocal) {
try {
options.data = await getData(options.url)
} catch (error) {
throw error
}
options.data = await getData(options.url)
}

@@ -35,0 +31,0 @@

8

lib/validate.js

@@ -5,6 +5,6 @@ const request = require('request')

module.exports = options => {
return new Promise(async (resolve, reject) => {
const requestOptions = await config(options)
const ignore = options.ignore
module.exports = async options => {
const requestOptions = await config(options)
const ignore = options.ignore
return new Promise((resolve, reject) => {
request(requestOptions, function (error, response, result) {

@@ -11,0 +11,0 @@ if (error) {

{
"name": "html-validator",
"version": "4.0.3",
"version": "4.0.4",
"description": "Validate html using validator.w3.org/nu",

@@ -40,5 +40,5 @@ "license": "MIT",

"devDependencies": {
"coveralls": "3.0.3",
"standard": "12.0.1",
"tap": "14.0.0"
"coveralls": "3.0.5",
"standard": "13.0.2",
"tap": "14.4.1"
},

@@ -45,0 +45,0 @@ "files": [

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