diff --git a/README.md b/README.md index 90bc990..c920efb 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ npm install term-logger@latest - `error` - `success` - `warn` -- `await` +- `waiting` - `complete` - `debug` - `fatal` diff --git a/logger/Logger.js b/logger/Logger.js index dd77575..a40c4d7 100644 --- a/logger/Logger.js +++ b/logger/Logger.js @@ -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}:${ @@ -205,7 +205,7 @@ module.exports = { critical, success, warn, - await, + waiting, complete, debug, fatal, diff --git a/package.json b/package.json index f82b088..265088f 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/test/index.js b/test/index.js index 3322f82..fa94b87 100644 --- a/test/index.js +++ b/test/index.js @@ -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');