Comparing version 8.0.1 to 8.0.2
@@ -160,3 +160,3 @@ module.exports = licensee | ||
function isObject (argument) { | ||
return typeof argument === 'object' | ||
return argument && typeof argument === 'object' | ||
} | ||
@@ -163,0 +163,0 @@ |
{ | ||
"name": "licensee", | ||
"description": "check dependency licenses against rules", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com/)", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -48,3 +48,3 @@ # licensee | ||
You can specify a minimum Blue Oak Council [license | ||
For example, you can specify a minimum Blue Oak Council [license | ||
rating]---lead, bronze, silver, or gold---like so: | ||
@@ -62,22 +62,9 @@ | ||
You can also whitelist all [OSI]-approved licenses: | ||
You can combine categories and specific license identifiers, too: | ||
[osi]: https://opensource.org | ||
```json | ||
{ | ||
"licenses": { | ||
"osi": true | ||
} | ||
} | ||
``` | ||
All of these can be combined: | ||
```json | ||
{ | ||
"licenses": { | ||
"spdx": ["CC-BY-4.0"], | ||
"blueOak": "gold", | ||
"osi": true | ||
"blueOak": "gold" | ||
} | ||
@@ -154,2 +141,13 @@ } | ||
To check only production dependencies, ignoring development dependencies, | ||
use `--production` flag: | ||
```json | ||
{ | ||
"scripts": { | ||
"posttest": "licensee --production" | ||
} | ||
} | ||
``` | ||
For output as newline-delimited JSON objects, for further processing: | ||
@@ -156,0 +154,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
35183
212