@josecarlosrz/logger
Advanced tools
Comparing version 1.0.11 to 1.0.12
12
index.js
@@ -9,3 +9,3 @@ const nodeConsole = require('console'); | ||
module.exports = { | ||
const Logger = { | ||
@@ -90,13 +90,15 @@ logger: function(message, ...args) { | ||
if (process.env.NODE_ENV === 'development') | ||
this.logger(message, ...args); | ||
Logger.logger(message, ...args); | ||
}, | ||
devSleep: function(seconds) { | ||
devSleep: async function(seconds) { | ||
if (process.env.NODE_ENV === 'development') | ||
this.sleep(seconds); | ||
await Logger.sleep(seconds); | ||
}, | ||
}; | ||
}; | ||
module.exports = Logger; |
{ | ||
"name": "@josecarlosrz/logger", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "Function to log each component of our application", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
2859
58