Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sanity

Package Overview
Dependencies
Maintainers
1
Versions
1007
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sanity - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

6

package.json

@@ -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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc