1
0
mirror of https://github.com/dzeiocom/libs.git synced 2025-07-29 16:29:52 +00:00

feat: Move to colorette

Signed-off-by: Avior <github@avior.me>
This commit is contained in:
2023-06-28 20:01:31 +02:00
parent ec78032aa1
commit 231309ae7a
3 changed files with 13 additions and 13 deletions

View File

@ -1,5 +1,5 @@
import colors, { black, white, blue, yellow, green } from 'ansi-colors'
import { theme, logType, ObjectArray } from '../typing/types'
import { black, blue, green, white, yellow } from 'colorette'
import { ObjectArray, logType, theme } from '../typing/types'
export default class Logger implements Console {
@ -66,12 +66,6 @@ export default class Logger implements Console {
public prefix: string = 'Logger'
) {
Logger.loggers.push(this)
// If Firefox disable colors
// @ts-ignore
if (typeof InstallTrigger !== 'undefined') {
colors.enabled = false
}
}
/**