Skip to content

Commit

Permalink
Release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jul 8, 2022
1 parent 9afc688 commit afb2e22
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/w3c-html-validator.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! w3c-html-validator v1.0.4 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License
//! w3c-html-validator v1.1.0 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License

export declare type ValidatorOptions = {
html?: string;
Expand Down
10 changes: 5 additions & 5 deletions dist/w3c-html-validator.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//! w3c-html-validator v1.0.4 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License
//! w3c-html-validator v1.1.0 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License

import { readFileSync } from 'fs';
import chalk from 'chalk';
import log from 'fancy-log';
import request from 'superagent';
const w3cHtmlValidator = {
version: '1.0.4',
version: '1.1.0',
validate(options) {
const defaults = {
checkUrl: 'https://validator.w3.org/nu/',
Expand Down Expand Up @@ -88,9 +88,9 @@ const w3cHtmlValidator = {
throw Error('[w3c-html-validator] Invalid results for reporter(): ' + String(results));
const messages = (_a = results.messages) !== null && _a !== void 0 ? _a : [];
const title = (_b = settings.title) !== null && _b !== void 0 ? _b : results.title;
const fail = 'fail (messages: ' + messages.length + ')';
const status = results.validates ? chalk.green('pass') : chalk.red.bold(fail);
log(chalk.gray('w3c-html-validator'), chalk.blue.bold(title), status);
const status = results.validates ? chalk.green.bold('✔ pass') : chalk.red.bold('✘ fail');
const count = results.validates ? '' : '(messages: ' + messages.length + ')';
log(chalk.gray('w3c-html-validator'), status, chalk.blue.bold(title), chalk.white(count));
const typeColorMap = {
error: chalk.red.bold,
warning: chalk.yellow.bold,
Expand Down
10 changes: 5 additions & 5 deletions dist/w3c-html-validator.umd.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! w3c-html-validator v1.0.4 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License
//! w3c-html-validator v1.1.0 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
Expand All @@ -20,7 +20,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
const fancy_log_1 = __importDefault(require("fancy-log"));
const superagent_1 = __importDefault(require("superagent"));
const w3cHtmlValidator = {
version: '1.0.4',
version: '1.1.0',
validate(options) {
const defaults = {
checkUrl: 'https://validator.w3.org/nu/',
Expand Down Expand Up @@ -103,9 +103,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
throw Error('[w3c-html-validator] Invalid results for reporter(): ' + String(results));
const messages = (_a = results.messages) !== null && _a !== void 0 ? _a : [];
const title = (_b = settings.title) !== null && _b !== void 0 ? _b : results.title;
const fail = 'fail (messages: ' + messages.length + ')';
const status = results.validates ? chalk_1.default.green('pass') : chalk_1.default.red.bold(fail);
(0, fancy_log_1.default)(chalk_1.default.gray('w3c-html-validator'), chalk_1.default.blue.bold(title), status);
const status = results.validates ? chalk_1.default.green.bold('✔ pass') : chalk_1.default.red.bold('✘ fail');
const count = results.validates ? '' : '(messages: ' + messages.length + ')';
(0, fancy_log_1.default)(chalk_1.default.gray('w3c-html-validator'), status, chalk_1.default.blue.bold(title), chalk_1.default.white(count));
const typeColorMap = {
error: chalk_1.default.red.bold,
warning: chalk_1.default.yellow.bold,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "w3c-html-validator",
"version": "1.0.4",
"version": "1.1.0",
"description": "A package for testing HTML files or URLs against the W3C validator (written in functional TypeScript)",
"license": "MIT",
"type": "module",
Expand Down

0 comments on commit afb2e22

Please sign in to comment.