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.0 to 0.3.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

### [0.3.1](https://github.com/nuxt-community/html-validator-module/compare/0.3.0...0.3.1) (2021-04-11)
### Bug Fixes
* display validation links inline ([1f82e78](https://github.com/nuxt-community/html-validator-module/commit/1f82e786637b23640f7e10ffe0ead25e2ec6645d)), closes [#39](https://github.com/nuxt-community/html-validator-module/issues/39)
## [0.3.0](https://github.com/nuxt-community/html-validator-module/compare/0.2.2...0.3.0) (2021-03-31)

@@ -2,0 +9,0 @@

11

dist/index.js

@@ -84,9 +84,10 @@ 'use strict';

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 formattedResult = formatter(results);
const urls = ((_a = results[0]) == null ? void 0 : _a.messages.map(({ruleId}) => `https://html-validate.org/rules/${ruleId}.html`)) || [];
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`);
});
reporter.error([
`HTML validation errors found for ${chalk__default['default'].bold(url)}`,
formattedResult,
urls.length ? `${chalk__default['default'].bold("More information:")}` : "",
...urls
formattedResult
].join("\n"));

@@ -93,0 +94,0 @@ };

{
"name": "@nuxtjs/html-validator",
"version": "0.3.0",
"version": "0.3.1",
"description": "html-validator integration for Nuxt.js",

@@ -32,10 +32,10 @@ "keywords": [

"defu": "3.2.2",
"html-validate": "4.8.0"
"html-validate": "4.9.0"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "7.13.10",
"@babel/preset-env": "7.13.12",
"@babel/plugin-transform-runtime": "7.13.15",
"@babel/preset-env": "7.13.15",
"@babel/preset-typescript": "7.13.0",
"@nuxt/test-utils": "0.2.0",
"@nuxt/types": "2.15.3",
"@nuxt/test-utils": "0.2.2",
"@nuxt/types": "2.15.4",
"@nuxtjs/eslint-config-typescript": "6.0.0",

@@ -46,9 +46,9 @@ "@release-it/conventional-changelog": "2.0.1",

"babel-jest": "26.6.3",
"eslint": "7.23.0",
"eslint": "7.24.0",
"husky": "6.0.0",
"jest": "26.6.3",
"lint-staged": "10.5.4",
"nuxt-edge": "2.16.0-26951060.589f3c0f",
"release-it": "14.5.0",
"siroc": "0.8.0"
"nuxt-edge": "2.16.0-26968342.9212d34e",
"release-it": "14.6.0",
"siroc": "0.9.2"
},

@@ -64,4 +64,4 @@ "peerDependencies": {

"volta": {
"node": "12.22.0"
"node": "12.22.1"
}
}
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