Comparing version 4.5.0 to 4.5.1
21
index.js
@@ -122,10 +122,13 @@ module.exports = licensee | ||
isString(configuration.license) && | ||
configuration.license.length > 0 && | ||
// Validate `whitelist` property. | ||
configuration.hasOwnProperty('whitelist') && | ||
isObject(configuration.whitelist) && | ||
Object.keys(configuration.whitelist) | ||
.every(function (key) { | ||
return isString(configuration.whitelist[key]) | ||
}) | ||
configuration.license.length > 0 && ( | ||
configuration.hasOwnProperty('whitelist') | ||
? ( | ||
// Validate `whitelist` property. | ||
isObject(configuration.whitelist) && | ||
Object.keys(configuration.whitelist) | ||
.every(function (key) { | ||
return isString(configuration.whitelist[key]) | ||
}) | ||
) : true | ||
) | ||
) | ||
@@ -172,3 +175,3 @@ } | ||
var licenseExpression = configuration.license | ||
var whitelist = configuration.whitelist | ||
var whitelist = configuration.whitelist || {} | ||
var result = { | ||
@@ -175,0 +178,0 @@ name: tree.package.name, |
{ | ||
"name": "licensee", | ||
"description": "check dependency licenses against rules", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com/)", | ||
"contributors": [ | ||
"Jakob Krigovsky <jakob@krigovsky.com>" | ||
], | ||
"dependencies": { | ||
@@ -26,4 +29,4 @@ "docopt": "^0.6.2", | ||
"spawn-sync": "^1.0.15", | ||
"standard": "^10.0.2", | ||
"tap": "^10.3.2" | ||
"standard": "^11.0.1", | ||
"tap": "^12.0.1" | ||
}, | ||
@@ -30,0 +33,0 @@ "license": "Apache-2.0", |
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
27742
199