Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 5925e0d

Browse files
committed
Release v5.1.2
1 parent 2aeab65 commit 5925e0d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

dist/html-validator.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! gulp-w3c-html-validator v5.1.1 ~~ https://github.com/center-key/gulp-w3c-html-validator ~~ MIT License
1+
//! gulp-w3c-html-validator v5.1.2 ~~ https://github.com/center-key/gulp-w3c-html-validator ~~ MIT License
22

33
export declare type AnalyzerOptions = ValidatorOptions;
44
export declare type ReporterOptions = {

dist/html-validator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! gulp-w3c-html-validator v5.1.1 ~~ https://github.com/center-key/gulp-w3c-html-validator ~~ MIT License
1+
//! gulp-w3c-html-validator v5.1.2 ~~ https://github.com/center-key/gulp-w3c-html-validator ~~ MIT License
22

33
import { w3cHtmlValidator } from 'w3c-html-validator';
44
import PluginError from 'plugin-error';
@@ -11,7 +11,7 @@ const htmlValidator = {
1111
file.w3cHtmlValidator = results;
1212
done(null, file);
1313
};
14-
const validatorOptions = { ...options, ...{ html: file.contents.toString() } };
14+
const validatorOptions = Object.assign(Object.assign({}, options), { html: file.contents.toString() });
1515
if (file.isNull())
1616
done(null, file);
1717
else if (file.isStream())
@@ -23,7 +23,7 @@ const htmlValidator = {
2323
},
2424
reporter(options) {
2525
const defaults = { maxMessageLen: null, throwErrors: false };
26-
const settings = { ...defaults, ...options };
26+
const settings = Object.assign(Object.assign({}, defaults), options);
2727
const report = (file, _encoding, done) => {
2828
const reporterOptions = { title: file.path, maxMessageLen: settings.maxMessageLen };
2929
if (file.w3cHtmlValidator)

dist/html-validator.umd.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! gulp-w3c-html-validator v5.1.1 ~~ https://github.com/center-key/gulp-w3c-html-validator ~~ MIT License
1+
//! gulp-w3c-html-validator v5.1.2 ~~ https://github.com/center-key/gulp-w3c-html-validator ~~ MIT License
22

33
var __importDefault = (this && this.__importDefault) || function (mod) {
44
return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
2626
file.w3cHtmlValidator = results;
2727
done(null, file);
2828
};
29-
const validatorOptions = { ...options, ...{ html: file.contents.toString() } };
29+
const validatorOptions = Object.assign(Object.assign({}, options), { html: file.contents.toString() });
3030
if (file.isNull())
3131
done(null, file);
3232
else if (file.isStream())
@@ -38,7 +38,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3838
},
3939
reporter(options) {
4040
const defaults = { maxMessageLen: null, throwErrors: false };
41-
const settings = { ...defaults, ...options };
41+
const settings = Object.assign(Object.assign({}, defaults), options);
4242
const report = (file, _encoding, done) => {
4343
const reporterOptions = { title: file.path, maxMessageLen: settings.maxMessageLen };
4444
if (file.w3cHtmlValidator)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-w3c-html-validator",
3-
"version": "5.1.1",
3+
"version": "5.1.2",
44
"description": "Gulp plugin to validate HTML using the W3C Markup Validation Service",
55
"license": "MIT",
66
"type": "module",

0 commit comments

Comments
 (0)