@siteone/builder-logger
Advanced tools
Comparing version 0.0.22 to 0.0.23
12
index.js
@@ -8,8 +8,14 @@ const chalk = require('chalk') | ||
function print(color, msg) { | ||
console.log(chalk[color](BLDR), msg.includes('\n') ? msg.replace(/(\r?\n)/g, `$1${SPACER}`) : msg) | ||
console.log( | ||
chalk[color](BLDR), | ||
msg.includes('\n') ? msg.replace(/(\r?\n)/g, `$1${SPACER}`) : msg, | ||
) | ||
} | ||
module.exports = (msg) => { | ||
module.exports.info(msg.includes('@bldr') ? msg.replace(RGX, chalk.magenta.underline('$1')) : msg) | ||
module.exports.info( | ||
msg.includes('@bldr') | ||
? msg.replace(RGX, chalk.magenta.underline('$1')) | ||
: msg, | ||
) | ||
} | ||
@@ -16,0 +22,0 @@ |
{ | ||
"name": "@siteone/builder-logger", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "Logging utility package", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "faeb12da4a84aa2bd6de54fecf5b6515458fd0d3" | ||
"gitHead": "0e0288ef4f2ec702a2b8741426d45dd62becfb83" | ||
} |
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
1138
22