Comparing version 3.0.2 to 3.0.3
@@ -0,1 +1,8 @@ | ||
## [3.0.3](https://github.com/ivangabriele/bhala/compare/v3.0.2...v3.0.3) (2022-02-15) | ||
### Bug Fixes | ||
* migrate from chalk to colorette ([246b506](https://github.com/ivangabriele/bhala/commit/246b506ebc71b69c1c9436e9445a159d21d0101e)) | ||
## [3.0.2](https://github.com/ivangabriele/bhala/compare/v3.0.1...v3.0.2) (2022-02-15) | ||
@@ -2,0 +9,0 @@ |
@@ -1,3 +0,3 @@ | ||
import chalk from 'chalk'; | ||
import childProcess from 'child_process'; | ||
import { cyan, gray, green, magenta, red, white, yellow } from 'colorette'; | ||
import os from 'os'; | ||
@@ -9,3 +9,3 @@ class Bhala { | ||
debug(...messages) { | ||
const output = this.generateOutput(messages, chalk.gray, '🔧', 'debug -'); | ||
const output = this.generateOutput(messages, gray, '🔧', 'debug -'); | ||
// eslint-disable-next-line no-console | ||
@@ -15,3 +15,3 @@ console.debug(output); | ||
error(...messages) { | ||
const output = this.generateOutput(messages, chalk.red, '❌', 'error -'); | ||
const output = this.generateOutput(messages, red, '❌', 'error -'); | ||
// eslint-disable-next-line no-console | ||
@@ -21,3 +21,3 @@ console.error(output); | ||
event(...messages) { | ||
const output = this.generateOutput(messages, chalk.magenta, '📅', 'event -'); | ||
const output = this.generateOutput(messages, magenta, '📅', 'event -'); | ||
// eslint-disable-next-line no-console | ||
@@ -27,3 +27,3 @@ console.log(output); | ||
info(...messages) { | ||
const output = this.generateOutput(messages, chalk.cyan, '📢', 'info -'); | ||
const output = this.generateOutput(messages, cyan, '📢', 'info -'); | ||
// eslint-disable-next-line no-console | ||
@@ -33,3 +33,3 @@ console.info(output); | ||
log(...messages) { | ||
const output = this.generateOutput(messages, chalk.white, '📝', 'log -'); | ||
const output = this.generateOutput(messages, white, '📝', 'log -'); | ||
// eslint-disable-next-line no-console | ||
@@ -39,3 +39,3 @@ console.log(output); | ||
success(...messages) { | ||
const output = this.generateOutput(messages, chalk.green, '🎉', 'success -'); | ||
const output = this.generateOutput(messages, green, '🎉', 'success -'); | ||
// eslint-disable-next-line no-console | ||
@@ -45,3 +45,3 @@ console.log(output); | ||
warn(...messages) { | ||
const output = this.generateOutput(messages, chalk.yellow, '🔔', 'warning -'); | ||
const output = this.generateOutput(messages, yellow, '🔔', 'warning -'); | ||
// eslint-disable-next-line no-console | ||
@@ -48,0 +48,0 @@ console.warn(output); |
{ | ||
"name": "bhala", | ||
"description": "A pretty (!), powerful and customizable logging library for Node.js.", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "type": "module", | ||
"dependencies": { | ||
"chalk": "^5.0.0" | ||
"colorette": "2.0.16" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
10078
+ Addedcolorette@2.0.16
+ Addedcolorette@2.0.16(transitive)
- Removedchalk@^5.0.0
- Removedchalk@5.4.1(transitive)