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

@nuxtjs/html-validator

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/html-validator - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

7

CHANGELOG.md

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

7

dist/index.js

@@ -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 @@ },

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