Skip to content

Commit ed17276

Browse files
committedFeb 27, 2024
fix(query-selector): don't look up private packages on :outdated
1 parent 686a622 commit ed17276

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎workspaces/arborist/lib/query-selector-all.js

+5
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,11 @@ class Results {
445445
return false
446446
}
447447

448+
// private packages can't be published, skip them
449+
if (node.package.private) {
450+
return false
451+
}
452+
448453
// we cache the promise representing the full versions list, this helps reduce the
449454
// number of requests we send by keeping population of the cache in a single tick
450455
// making it less likely that multiple requests for the same package will be inflight

0 commit comments

Comments
 (0)
Please sign in to comment.