license-checker
Advanced tools
Comparing version 20.1.0 to 20.2.0
## Change Log | ||
### v20.2.0 (2018/07/30 13:51 +00:00) | ||
- [#169](https://github.com/davglass/license-checker/pull/169) Merge pull request #169 from codepunkt/restrict_packages (@codepunkt) | ||
- [5e4b274](https://github.com/davglass/license-checker/commit/5e4b274e955485fb2aba37e65fec913b8042f38d) refactor: restore previous code style (@codepunkt) | ||
- [ed25d68](https://github.com/davglass/license-checker/commit/ed25d6829602793e13233d3da2d97b92ee2044c6) test: add test for --packages flag (@codepunkt) | ||
- [0f53922](https://github.com/davglass/license-checker/commit/0f53922088be0b0dfd4f8db7ea884b53d0137e45) feat: allow restricting output to specified packages (@codepunkt) | ||
- [5f63f87](https://github.com/davglass/license-checker/commit/5f63f8766a17e589b57db99bda4eb54d91b85b77) changes and contrib (@davglass) | ||
### v20.1.0 (2018/06/07 14:33 +00:00) | ||
- [970882a](https://github.com/davglass/license-checker/commit/970882a09b345c7f32496431e5ca4c069ad7e320) 20.1.0 (@davglass) | ||
- [#165](https://github.com/davglass/license-checker/pull/165) Merge pull request #165 from santiagocanti/fix-exclude-not-adding-custom-licenses (@santiagocanti) | ||
@@ -60,5 +68,5 @@ - [89e48a9](https://github.com/davglass/license-checker/commit/89e48a9d3d0c9f2e48bfcee0dc3563ce4b652e22) Fix exclude not including custom licenses (@santiagocanti) | ||
- [2075208](https://github.com/davglass/license-checker/commit/20752083c6029823fb389a30a1ed4d7d90fa9297) contrib and changelog (@davglass) | ||
- [6c5274c](https://github.com/davglass/license-checker/commit/6c5274c6064d318844cf36185dea395e0893ff08) [fixes #132] - Fixed issue with asFiles and path issues (@davglass) | ||
- [a46c448](https://github.com/davglass/license-checker/commit/a46c4483f872c3db9498a65b7ae3dc6d8164de0a) 16.0.0 (@davglass) | ||
- [38d63e2](https://github.com/davglass/license-checker/commit/38d63e2c2c3fd6c11012fb69b1470b2ba06d5554) [fixes #128] - Added --onlyAllow option (@davglass) | ||
- [6c5274c](https://github.com/davglass/license-checker/commit/6c5274c6064d318844cf36185dea395e0893ff08) [fixes #132] - Fixed issue with asFiles and path issues (@davglass) | ||
@@ -181,3 +189,3 @@ ### v16.0.0 (2018/01/18 15:02 +00:00) | ||
- [b704bc1](https://github.com/davglass/license-checker/commit/b704bc18a43de246302b8ff6933f8fe5f96ee3a6) guess BSD-Source-Code license (@drewfish) | ||
- [8d31eab](https://github.com/davglass/license-checker/commit/8d31eabfb671d32e6f3e63215d6530d7fb4acc59) Add docs about customFormat option (@Pawamoy) | ||
- [8d31eab](https://github.com/davglass/license-checker/commit/8d31eabfb671d32e6f3e63215d6530d7fb4acc59) Add docs about customFormat option (@pawamoy) | ||
- [2529d31](https://github.com/davglass/license-checker/commit/2529d3118dfae53f1e01056ec99f5c542cb8d63e) changes (@davglass) | ||
@@ -184,0 +192,0 @@ |
@@ -30,3 +30,4 @@ /* | ||
failOn: String, | ||
onlyAllow: String | ||
onlyAllow: String, | ||
packages: String | ||
}, | ||
@@ -33,0 +34,0 @@ shorts = { |
@@ -425,2 +425,15 @@ /* | ||
var restricted; | ||
if (options.packages) { | ||
var packages = options.packages.split(';'); | ||
restricted = {}; | ||
Object.keys(filtered).map(function(key) { | ||
if (packages.includes(key)) { | ||
restricted[key] = filtered[key]; | ||
} | ||
}); | ||
} else { | ||
restricted = filtered; | ||
} | ||
if (!Object.keys(sorted).length) { | ||
@@ -437,3 +450,3 @@ err = new Error('No packages found in this path..'); | ||
//Return the callback and variables nicely | ||
callback(inputError, filtered); | ||
callback(inputError, restricted); | ||
}); | ||
@@ -598,2 +611,2 @@ }; | ||
}); | ||
}; | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"author": "Dav Glass <davglass@gmail.com>", | ||
"version": "20.1.0", | ||
"version": "20.2.0", | ||
"contributors": [ | ||
@@ -12,2 +12,3 @@ "Adam Weber <adamweber01@gmail.com>", | ||
"Bryan English <bryan@bryanenglish.com>", | ||
"Christoph Werner <christoph@codepunkt.de>", | ||
"Cory Reed <creed@mrn.org>", | ||
@@ -14,0 +15,0 @@ "Damien Larmine <damien.larmine@gmail.com>", |
@@ -86,2 +86,3 @@ NPM License Checker | ||
* `--onlyAllow [list]` fail (exit with code 1) on the first occurrence of the licenses not in the semicolon-seperated list | ||
* `--packages [list]` restrict output to the packages (package@version) in the semicolon-seperated list | ||
@@ -106,2 +107,3 @@ Exclusions | ||
license-checker --exclude 'MIT, MIT OR X11, BSD, ISC' | ||
license-checker --packages 'react@16.3.0;react-dom@16.3.0;lodash@4.3.1' | ||
license-checker --onlyunknown | ||
@@ -108,0 +110,0 @@ ``` |
Sorry, the diff of this file is not supported yet
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
134645
32
1752
177
3