File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,12 @@ import chalk from 'chalk';
33const  DEFAULT_SIGNS  =  [ ' ' ,  '⚠' ,  '✖' ] ; 
44const  DEFAULT_COLORS  =  [ 'white' ,  'yellow' ,  'red' ] ; 
55
6- export  default  function  format ( report  =  { } ,  options  =  { } )  { 
6+ module . exports  =  format ; 
7+ module . exports . default  =  format ; 
8+ module . exports . format  =  format ; 
9+ module . exports . formatResult  =  formatResult ; 
10+ 
11+ function  format ( report  =  { } ,  options  =  { } )  { 
712	const  { results =  [ ] }  =  report ; 
813
914	if  ( results . length  >  0 )  { 
@@ -38,7 +43,7 @@ function formatInput(result = {}, options = {}) {
3843	return  `\n${ decoration }     input: ${ decoratedInput }  \n` ; 
3944} 
4045
41- export   function  formatResult ( result  =  { } ,  options  =  { } )  { 
46+ function  formatResult ( result  =  { } ,  options  =  { } )  { 
4247	const  { 
4348		signs =  DEFAULT_SIGNS , 
4449		colors =  DEFAULT_COLORS , 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments