license-checker
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -17,14 +17,12 @@ | ||
var flatten = function(options) { | ||
var moduleInfo = {licenses: UNKNOWN}, | ||
var moduleInfo = { licenses: UNKNOWN }, | ||
json = options.deps, | ||
data = options.data, | ||
key = json.name + '@' + json.version, | ||
colorize = options.color, | ||
licenseData, files, licenseFile, key; | ||
licenseData, files, licenseFile; | ||
if (colorize) { | ||
moduleInfo = {licenses: chalk.bold.red(UNKNOWN)}; | ||
key = chalk.blue(json.name) + chalk.dim('@') + chalk.green(json.version); | ||
} else { | ||
moduleInfo = {licenses: UNKNOWN}; | ||
key = json.name + '@' + json.version; | ||
moduleInfo = { licenses: chalk.bold.red(UNKNOWN) }; | ||
key = chalk.blue(json.name) + chalk.dim('@') + chalk.green(json.version); | ||
} | ||
@@ -121,2 +119,3 @@ | ||
}), | ||
colorize = options.color, | ||
sorted = {}; | ||
@@ -127,3 +126,7 @@ Object.keys(data).sort().forEach(function(item) { | ||
if (data[item].licenses.indexOf('*') > -1) { | ||
delete data[item]; | ||
if (colorize) { | ||
data[item].licenses = chalk.bold.red(UNKNOWN); | ||
} else { | ||
data[item].licenses = UNKNOWN; | ||
} | ||
} | ||
@@ -130,0 +133,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Dav Glass <davglass@gmail.com>", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "chalk": "~0.5.1", |
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
16728
329