Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: new LogLevel enum is not exported properly #95 #96

Merged
merged 2 commits into from
May 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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