Skip to content

Commit 4bdd034

Browse files
committed
fix: add methods for legacy support
1 parent f10ba7b commit 4bdd034

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/consola.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,9 @@ export default class Consola {
246246
)
247247
}
248248
}
249+
250+
// Legacy support
251+
Consola.prototype.add = Consola.prototype.addReporter
252+
Consola.prototype.remove = Consola.prototype.removeReporter
253+
Consola.prototype.clear = Consola.prototype.removeReporter
254+
Consola.prototype.withScope = Consola.prototype.withTag

0 commit comments

Comments
 (0)