Skip to content

Commit

Permalink
feat: Use new 'limitAttributes' flag
Browse files Browse the repository at this point in the history
  • Loading branch information
RSeidelsohn committed Feb 3, 2022
1 parent c02e181 commit 02f9d00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/license-checker-rseidelsohn
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ function filterJson(limitAttributes, json) {
}

function getFormattedOutput(json, args) {
const jsonCopy = cloneDeep(json);
let filteredJson = filterJson(args.limitAttributes, json);
const jsonCopy = cloneDeep(filteredJson);
filteredJson = null;

if (args.files) {
Object.keys(jsonCopy).forEach((moduleName) => {
Expand Down
1 change: 1 addition & 0 deletions lib/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const knownOpts = {
includeLicenses: String,
includePackages: String,
json: Boolean,
limitAttributes: String,
markdown: Boolean,
nopeer: Boolean,
onlyAllow: String,
Expand Down

0 comments on commit 02f9d00

Please sign in to comment.