Skip to content

Commit d3be064

Browse files
committed
feat(main): export Emoji from index.js
1 parent 38eb6db commit d3be064

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/index.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import config from './config';
2-
31
import { intercept } from './utils';
42

3+
export { default as Emoji } from './emoji';
4+
55
export default class Logger {
66
static success(args) {
77
return intercept(this.success.name, args);
@@ -12,22 +12,18 @@ export default class Logger {
1212
}
1313

1414
static warn(args) {
15-
return intercept('warn', args);
15+
return intercept(this.warn.name, args);
1616
}
1717

1818
static error(args) {
19-
return intercept('error', args);
19+
return intercept(this.error.name, args);
2020
}
2121

2222
static trace(args) {
23-
return intercept('trace', args);
23+
return intercept(this.trace.name, args);
2424
}
2525

2626
static debug(args) {
27-
return intercept('debug', args);
28-
}
29-
30-
static setEmoji(...args) {
31-
return config.setEmoji(...args);
27+
return intercept(this.debug.name, args);
3228
}
3329
}

0 commit comments

Comments
 (0)