Skip to content

Commit

Permalink
fix(query-selector): don't look up private packages on :outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Feb 27, 2024
1 parent 686a622 commit ed17276
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions workspaces/arborist/lib/query-selector-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ class Results {
return false
}

// private packages can't be published, skip them
if (node.package.private) {
return false
}

// we cache the promise representing the full versions list, this helps reduce the
// number of requests we send by keeping population of the cache in a single tick
// making it less likely that multiple requests for the same package will be inflight
Expand Down

0 comments on commit ed17276

Please sign in to comment.