@nuxtjs/html-validator
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -0,1 +1,8 @@ | ||
## [0.4.0](https://github.com/nuxt-community/html-validator-module/compare/0.3.1...0.4.0) (2021-04-19) | ||
### Features | ||
* upgrade `html-validator` and use native hint links ([23400fc](https://github.com/nuxt-community/html-validator-module/commit/23400fc4fbe483d716156e42f0c41ba6200cbd7b)) | ||
### [0.3.1](https://github.com/nuxt-community/html-validator-module/compare/0.3.0...0.3.1) (2021-04-11) | ||
@@ -2,0 +9,0 @@ |
@@ -67,3 +67,2 @@ 'use strict'; | ||
const useChecker = (validator, usePrettier = false, reporter = consola__default['default'].withTag("html-validate")) => async (url, html) => { | ||
var _a; | ||
let couldFormat = false; | ||
@@ -85,7 +84,3 @@ try { | ||
const formatter = couldFormat ? await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('html-validate/dist/formatters/codeframe')); }).then((r) => r.default || r) : await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('html-validate/dist/formatters/stylish')); }).then((r) => r.default || r); | ||
const rules = Array.from(new Set((_a = results[0]) == null ? void 0 : _a.messages.map(({ruleId}) => ruleId))); | ||
let formattedResult = formatter(results); | ||
rules.forEach((ruleId) => { | ||
formattedResult = formattedResult.replace(new RegExp(ruleId, "g"), `https://html-validate.org/rules/${ruleId}.html`); | ||
}); | ||
const formattedResult = formatter(results); | ||
reporter.error([ | ||
@@ -92,0 +87,0 @@ `HTML validation errors found for ${chalk__default['default'].bold(url)}`, |
{ | ||
"name": "@nuxtjs/html-validator", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "html-validator integration for Nuxt.js", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
"defu": "3.2.2", | ||
"html-validate": "4.9.0" | ||
"html-validate": "4.10.0" | ||
}, | ||
@@ -50,4 +50,4 @@ "devDependencies": { | ||
"lint-staged": "10.5.4", | ||
"nuxt-edge": "2.16.0-26968342.9212d34e", | ||
"release-it": "14.6.0", | ||
"nuxt-edge": "2.16.0-26979859.88ea02c4", | ||
"release-it": "14.6.1", | ||
"siroc": "0.9.2" | ||
@@ -54,0 +54,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11974
116
+ Addedhtml-validate@4.10.0(transitive)
- Removedhtml-validate@4.9.0(transitive)
Updatedhtml-validate@4.10.0