Skip to content

Commit

Permalink
Release v1.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jan 5, 2024
1 parent dbd7f79 commit da66988
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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.6.3 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License
//! w3c-html-validator v1.6.4 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License

export type ValidatorSettings = {
html: string;
Expand Down
9 changes: 5 additions & 4 deletions dist/w3c-html-validator.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//! w3c-html-validator v1.6.3 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License
//! w3c-html-validator v1.6.4 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License

import chalk from 'chalk';
import fs from 'fs';
import log from 'fancy-log';
import request from 'superagent';
import slash from 'slash';
const w3cHtmlValidator = {
version: '1.6.3',
version: '1.6.4',
validate(options) {
const defaults = {
checkUrl: 'https://validator.w3.org/nu/',
Expand Down Expand Up @@ -65,8 +65,9 @@ const w3cHtmlValidator = {
const response = reason.response;
const getMsg = () => [response.status, response.res.statusMessage, response.request.url];
const message = response ? getMsg() : [reason.errno, reason.message];
response.body = { messages: [{ type: 'network-error', message: message.join(' ') }] };
return toValidatorResults(response);
const errRes = response ?? {};
errRes.body = { messages: [{ type: 'network-error', message: message.join(' ') }] };
return toValidatorResults(errRes);
};
return w3cRequest.then(filterMessages).then(toValidatorResults).catch(handleError);
},
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.6.3",
"version": "1.6.4",
"description": "Check the markup validity of HTML files using the W3C validator",
"license": "MIT",
"type": "module",
Expand Down

0 comments on commit da66988

Please sign in to comment.