This repository was archived by the owner on Jul 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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
33export declare type AnalyzerOptions = ValidatorOptions ;
44export declare type ReporterOptions = {
Original file line number Diff line number Diff line change 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
33import { w3cHtmlValidator } from 'w3c-html-validator' ;
44import 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 )
Original file line number Diff line number Diff line change 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
33var __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 )
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments