@squared-functions/module
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -170,3 +170,3 @@ /* @squared-functions/module 0.9.6 | ||
} | ||
writeMessage(title, value, message = '', options = {}) { | ||
writeMessage(title, value, message, options = {}) { | ||
const { titleColor = 'green', titleBgColor = 'bgBlack', valueColor, valueBgColor, messageColor, messageBgColor } = options; | ||
@@ -188,3 +188,3 @@ if (valueColor) { | ||
} | ||
console.log(chalk[titleBgColor].bold[titleColor](title.toUpperCase()) + chalk.blackBright(':') + ' ' + value + message); | ||
console.log(chalk[titleBgColor].bold[titleColor](title.toUpperCase()) + chalk.blackBright(':') + ' ' + value + (message || '')); | ||
} | ||
@@ -191,0 +191,0 @@ get logType() { |
{ | ||
"name": "@squared-functions/module", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "Module extension class for squared-functions", | ||
@@ -18,5 +18,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@squared-functions/types": "^0.9.6", | ||
"@squared-functions/types": "^0.9.7", | ||
"chalk": "^4.1.0" | ||
} | ||
} |
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
9052