Skip to content

Commit

Permalink
fix(consola): type defaults overrides generic defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 10, 2023
1 parent d5ab97a commit d3d3c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consola.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export class Consola {
for (const type in types) {
const defaults: InputLogObject = {
type: type as LogType,
...types[type as LogType],
...this.options.defaults,
...types[type as LogType],
};
(this as any)[type] = this._wrapLogFn(defaults);
(this as any)[type].raw = this._wrapLogFn(defaults, true);
Expand Down

0 comments on commit d3d3c05

Please sign in to comment.