Comparing version 0.2.1 to 0.2.2
@@ -6,4 +6,4 @@ { | ||
"dependencies": { | ||
"lodash": "0.10.x", | ||
"colors": "0.6.x" | ||
"colors": "^1.1.2", | ||
"lodash": "^4.13.1" | ||
}, | ||
@@ -24,3 +24,3 @@ "devDependencies": { | ||
"main": "sanity.js", | ||
"version": "0.2.1" | ||
"version": "0.2.2" | ||
} |
'use strict'; | ||
var _ = require('lodash'), | ||
var assign = require('lodash/assign'), | ||
forEach = require('lodash/forEach'), | ||
isEmpty = require('lodash/isEmpty'), | ||
os = require('os'), | ||
colors = require('colors'); | ||
colors = require('colors/safe'); | ||
@@ -13,3 +15,3 @@ var sanity = { | ||
defined: function(value) { | ||
return !_.isEmpty(value); | ||
return !isEmpty(value); | ||
}, | ||
@@ -26,3 +28,3 @@ truthy: function(value) { | ||
message = ''; | ||
options = _.extend({ | ||
options = assign({ | ||
gagged: false, | ||
@@ -55,5 +57,5 @@ goodBook: null, | ||
var heading = 'ERROR: Required settings are not correct!', | ||
errs = [(options.zazz ? heading.red : heading)]; | ||
errs = [(options.zazz ? colors.red(heading) : heading)]; | ||
failures.forEach(function(failure) { | ||
errs.push(' ' + (options.zazz ? failure.key.bold : failure.key) + ': ' + failure.value); | ||
errs.push(' ' + (options.zazz ? colors.bold(failure.key) : failure.key) + ': ' + failure.value); | ||
}); | ||
@@ -80,3 +82,3 @@ | ||
preach: function(insights, audience) { | ||
_.forEach(insights, function(commandment, word) { | ||
forEach(insights, function(commandment, word) { | ||
audience[word] = commandment; | ||
@@ -83,0 +85,0 @@ }); |
6850
78
+ Addedcolors@1.4.0(transitive)
+ Addedlodash@4.17.21(transitive)
- Removedcolors@0.6.2(transitive)
- Removedlodash@0.10.0(transitive)
Updatedcolors@^1.1.2
Updatedlodash@^4.13.1