Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: add methods for legacy support
  • Loading branch information
pi0 committed Nov 2, 2018
1 parent f10ba7b commit 4bdd034
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/consola.js
Expand Up @@ -246,3 +246,9 @@ export default class Consola {
)
}
}

// Legacy support
Consola.prototype.add = Consola.prototype.addReporter
Consola.prototype.remove = Consola.prototype.removeReporter
Consola.prototype.clear = Consola.prototype.removeReporter
Consola.prototype.withScope = Consola.prototype.withTag

0 comments on commit 4bdd034

Please sign in to comment.