Skip to content

Commit 3f808e9

Browse files
committed
refactor: additionalStyle ~> additionalColor
BREAKING CHANGE: Use new additionalColor prop
1 parent dcf7d2f commit 3f808e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const consola = new Consola({
109109
new BasicReporter
110110
],
111111
defaults: {
112-
additionalStyle: 'white'
112+
additionalColor: 'white'
113113
}
114114
})
115115

@@ -158,7 +158,7 @@ Here are standard possible fields:
158158
Common fields:
159159

160160
- `additional`
161-
- `additionalStyle`
161+
- `additionalColor`
162162
- `args`
163163
- `date`
164164
- `message`

demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ for (const reporter of reporters) {
3131
consola.success({
3232
message: 'This is a fancy badge',
3333
additional: 'With some additional info',
34-
additionalStyle: 'brown',
34+
additionalColor: 'brown',
3535
badge: true
3636
})
3737
}

src/reporters/fancy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default class FancyReporter extends BasicReporter {
6969

7070
// Print additional args
7171
if (fields.args.length) {
72-
this.write('\n' + chalkColor(logObj.additionalStyle || 'grey')(fields.args.join(' ')))
72+
this.write('\n' + chalkColor(logObj.additionalColor || 'grey')(fields.args.join(' ')))
7373
}
7474

7575
// Newline

0 commit comments

Comments
 (0)