@@ -10,19 +10,18 @@ require('rxjs/add/operator/filter');
10
10
// Configure logger
11
11
const logger = new Logger ( 'test-licenses' ) ;
12
12
13
- logger
14
- . subscribe ( ( entry ) => {
15
- let color = chalk . white ;
16
- let output = process . stdout ;
17
- switch ( entry . level ) {
18
- case 'info' : color = chalk . white ; break ;
19
- case 'warn' : color = chalk . yellow ; break ;
20
- case 'error' : color = chalk . red ; output = process . stderr ; break ;
21
- case 'fatal' : color = ( x ) => chalk . bold ( chalk . red ( x ) ) ; output = process . stderr ; break ;
22
- }
13
+ logger . subscribe ( ( entry ) => {
14
+ let color = chalk . white ;
15
+ let output = process . stdout ;
16
+ switch ( entry . level ) {
17
+ case 'info' : color = chalk . white ; break ;
18
+ case 'warn' : color = chalk . yellow ; break ;
19
+ case 'error' : color = chalk . red ; output = process . stderr ; break ;
20
+ case 'fatal' : color = ( x ) => chalk . bold ( chalk . red ( x ) ) ; output = process . stderr ; break ;
21
+ }
23
22
24
- output . write ( color ( entry . message ) + '\n' ) ;
25
- } ) ;
23
+ output . write ( color ( entry . message ) + '\n' ) ;
24
+ } ) ;
26
25
27
26
logger
28
27
. filter ( ( entry ) => entry . level == 'fatal' )
@@ -81,7 +80,7 @@ const ignoredPackages = [
81
80
'[email protected] ' , // BSD, but doesn't list it in package.json
82
81
'[email protected] ' , // MIT, but doesn't list it in package.json
83
82
'undefined@undefined' , // Test package with no name nor version.
84
- '[email protected] ' , // Looks like MIT
83
+ '[email protected] ' // Looks like MIT
85
84
] ;
86
85
87
86
const root = path . resolve ( __dirname , '../' ) ;
0 commit comments