Comparing version 1.1.0 to 1.2.0
@@ -22,8 +22,7 @@ const chalk = require('chalk'); | ||
const error = (err, silent) => { | ||
console.log(); | ||
const error = (err, options = {exit: true}) => { | ||
print('error', 'ERROR', err); | ||
if (!silent) throw(new Error(err)); | ||
if (options.exit) throw(new Error(err)); | ||
}; | ||
module.exports = {info, loading, warn, error, command, link}; |
{ | ||
"name": "prettycli", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Pretty print messages on the terminal", | ||
@@ -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
72801
21