@josecarlosrz/logger
Advanced tools
Comparing version 1.0.23 to 1.0.24
17
index.js
@@ -77,3 +77,3 @@ const nodeConsole = require('console'); | ||
args.forEach(arg => console.log(arg)); | ||
args.forEach(console.log); | ||
@@ -89,8 +89,7 @@ console.groupEnd(); | ||
static sleep(seconds) | ||
static sleep(milliseconds) | ||
{ | ||
return new Promise((resolve, reject) => { | ||
setTimeout(resolve, seconds * 1000); | ||
}); | ||
return new Promise((resolve, reject) => | ||
setTimeout(resolve, milliseconds)); | ||
@@ -112,7 +111,7 @@ } | ||
static async sleep(seconds) | ||
static async sleep(milliseconds) | ||
{ | ||
if (!Logger.isSleepDisabled()) | ||
await TmpLogger.sleep(seconds); | ||
await TmpLogger.sleep(milliseconds); | ||
@@ -129,7 +128,7 @@ } | ||
static async devSleep(seconds) | ||
static async devSleep(milliseconds) | ||
{ | ||
if (!Logger.isSleepDisabled() && Logger.isDev()) | ||
await TmpLogger.sleep(seconds); | ||
await TmpLogger.sleep(milliseconds); | ||
@@ -136,0 +135,0 @@ } |
{ | ||
"name": "@josecarlosrz/logger", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"description": "Function to log each component of our application", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,4 @@ const Logger = require('./'); | ||
Logger.log('Hello!'); | ||
Logger.sleep(5000).then(() => Logger.log('World')); | ||
Logger.log('Hello'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3788