File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const intro = require('./intro');
44const runner = require ( './runner' ) ;
55const localAppServer = require ( './localAppServer' ) ;
66const resultsPrinter = require ( './resultsPrinter' ) ;
7+ const mergeConfig = require ( './mergeConfig' ) ;
78
89module . exports = {
910_isInvalid ( results ) {
@@ -38,6 +39,8 @@ module.exports = {
3839return Promise . reject ( new Error ( 'No config specified!' ) ) ;
3940}
4041
42+ config = mergeConfig ( config ) ;
43+
4144// No destructing in Node.js 4 brah
4245const appServerOptions = config . localAppServer ;
4346const failHard = config . failHard ;
Original file line number Diff line number Diff line change 33const markupService = require ( './services/markupService' ) ;
44const w3Service = require ( './services/w3Service' ) ;
55const Result = require ( './models/Result' ) ;
6- const mergeConfig = require ( './mergeConfig' ) ;
76
87module . exports = {
98_createPromise ( url , validatorUrl ) {
@@ -15,12 +14,8 @@ module.exports = {
1514} ,
1615
1716run ( config ) {
18- const mergedConfig = mergeConfig ( config ) ;
19- const promises = mergedConfig . urls . map ( url => this . _createPromise ( url , mergedConfig . validatorUrl ) ) ;
17+ const promises = config . urls . map ( url => this . _createPromise ( url , config . validatorUrl ) ) ;
2018
21- return Promise . all ( promises )
22- . catch ( e => {
23- console . error ( e ) ;
24- } ) ;
19+ return Promise . all ( promises ) ;
2520}
2621} ;
Original file line number Diff line number Diff line change 11{
22 "name" : " valimate" ,
3- "version" : " 2.2.1 " ,
3+ "version" : " 2.2.2 " ,
44 "description" : " Automated HTML validation tool." ,
55 "repository" : " https://github.com/jamesseanwright/valimate" ,
66
You can’t perform that action at this time.
0 commit comments