Skip to content

Commit

Permalink
Fix: Allow excluding packages and private packages together
Browse files Browse the repository at this point in the history
  • Loading branch information
theboolean committed Nov 13, 2018
1 parent 98c4dc6 commit f5c9008
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 f5c9008

Please sign in to comment.