Skip to content

Commit

Permalink
fix: new LogLevel enum is not exported properly unjs#95 (unjs#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
regevbr authored and nevilm-lt committed Apr 22, 2022
1 parent 7258975 commit cbb8143
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/browser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Consola from './consola.js'
import BrowserReporter from './reporters/browser.js'
import { LogLevel } from './logLevels'

function createConsola () {
const consola = new Consola({
Expand All @@ -10,6 +11,7 @@ function createConsola () {

// Expose constructors
consola.Consola = Consola
consola.LogLevel = LogLevel
consola.BrowserReporter = BrowserReporter

return consola
Expand Down
3 changes: 2 additions & 1 deletion src/node.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import env from 'std-env'
import { Consola, BasicReporter, FancyReporter, JSONReporter, WinstonReporter } from '.'
import { Consola, BasicReporter, FancyReporter, JSONReporter, WinstonReporter, LogLevel } from '.'

function createConsola () {
// Log level
Expand All @@ -24,6 +24,7 @@ function createConsola () {
consola.FancyReporter = FancyReporter
consola.JSONReporter = JSONReporter
consola.WinstonReporter = WinstonReporter
consola.LogLevel = LogLevel

return consola
}
Expand Down

0 comments on commit cbb8143

Please sign in to comment.