Skip to content

Commit

Permalink
fix: new LogLevel enum is not exported properly #95 (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
regevbr committed May 7, 2020
1 parent 5746723 commit fafbec2
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
@@ -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
@@ -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 fafbec2

Please sign in to comment.