Skip to content

Commit

Permalink
await log fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devdeem committed Jan 7, 2024
1 parent d66b6ca commit b953b91
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ npm install term-logger@latest
- `error`
- `success`
- `warn`
- `await`
- `waiting`
- `complete`
- `debug`
- `fatal`
Expand Down
4 changes: 2 additions & 2 deletions logger/Logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const warn = (data) => {
);
};

const await = (data) => {
const waiting = (data) => {
return console.log(
`${chalk.grey(`>`)} ${chalk.underline.cyan(`WAITING`)} ${chalk.grey(
`[${hours < 10 ? '0' + hours : hours}:${minutes < 10 ? 'O' + minutes : minutes}:${
Expand Down Expand Up @@ -205,7 +205,7 @@ module.exports = {
critical,
success,
warn,
await,
waiting,
complete,
debug,
fatal,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "term-logger",
"version": "1.2.6",
"version": "1.2.7",
"description": "A simple node logger with custom formatted console logs!",
"main": "main.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ console.log('---------------------- LOGGER ----------------------');
Logger.error('ERROR event test');
Logger.success('SUCCESS event test');
Logger.warn('WARN event test');
Logger.await('AWAIT event test');
Logger.waiting('WAITING event test');
Logger.complete('COMPLETE event test');
Logger.debug('DEBUG event test');
Logger.fatal('FATAL event test');
Expand Down

0 comments on commit b953b91

Please sign in to comment.