Skip to content

Commit

Permalink
Merge pull request #185 from theboolean/fix/exclude-packages-and-private
Browse files Browse the repository at this point in the history
Fix: Allow excluding packages and private packages together (fixes #183)
  • Loading branch information
davglass authored Jan 10, 2019
2 parents 5a22c13 + f5c9008 commit d6ea08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ exports.init = function(options, callback) {

if (options.excludePrivatePackages) {
Object.keys(filtered).forEach(function(key) {
if (restricted[key].private) {
if (restricted[key] && restricted[key].private) {
delete restricted[key];
}
});
Expand Down

0 comments on commit d6ea08c

Please sign in to comment.