Comparing version 0.3.10 to 0.3.11
@@ -15,12 +15,2 @@ #!/usr/bin/nodejs | ||
let noop = function(arg){ return arg; }; | ||
let colors = { red: noop, green: noop, yellow: noop, blue: noop }; | ||
try | ||
{ | ||
// Try to import the optional packages. If the import fails... well, whatever. | ||
colors = require('colors'); | ||
} | ||
catch(e){} | ||
/** | ||
@@ -93,6 +83,4 @@ * The Execute class is used to execute one or more commands. It can also be made | ||
{ | ||
if(description) | ||
if(description || this._echo.beVerbose) | ||
this._echo.withPostfix.error(failmsg); | ||
else | ||
this._echo.ifDebug(colors.red(failmsg)); | ||
@@ -106,6 +94,4 @@ this._echo.toLog(failmsg); | ||
{ | ||
if(description) | ||
if(description || this._echo.beVerbose) | ||
this._echo.withPostfix.success(successmsg); | ||
else | ||
this._echo.ifDebug(colors.green(successmsg)); | ||
@@ -112,0 +98,0 @@ this._echo.toLog(successmsg); |
{ | ||
"name": "rejoinder", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"description": "A generator of smart, pretty, and organized output for Node/JS scripts in the terminal", | ||
@@ -28,4 +28,3 @@ "repository": { | ||
"optionalDependencies": { | ||
"shelljs": "^0.7.0", | ||
"colors": "^1.1.2" | ||
"shelljs": "^0.7.0" | ||
}, | ||
@@ -32,0 +31,0 @@ "devDependencies": { |
1
51963
1048