File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,8 @@ const DEFAULTS = {
12
12
const TYPE_ICONS = {
13
13
info : figures ( 'ℹ' ) ,
14
14
success : figures ( '✔' ) ,
15
- error : figures ( '✖' ) ,
16
- fatal : figures ( '✖' ) ,
17
- warn : figures ( '⚠' ) ,
18
- debug : figures ( '→' ) ,
19
- trace : figures ( '→' ) ,
20
- log : figures ( '›' )
15
+ debug : figures ( '›' ) ,
16
+ trace : figures ( '›' )
21
17
}
22
18
23
19
export default class FancyReporter extends BasicReporter {
@@ -55,7 +51,7 @@ export default class FancyReporter extends BasicReporter {
55
51
formatLogObj ( logObj , { width } ) {
56
52
const [ message , ...additional ] = this . formatArgs ( logObj . args ) . split ( '\n' )
57
53
58
- const isBadge = logObj . badge || logObj . level < 2
54
+ const isBadge = typeof logObj . badge !== 'undefined' ? Boolean ( logObj . badge ) : logObj . level < 2
59
55
60
56
const secondaryColor = chalkColor ( this . options . secondaryColor )
61
57
You can’t perform that action at this time.
0 commit comments