Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'workspaces/arborist/lib/query-selector-all.js')
-rw-r--r--workspaces/arborist/lib/query-selector-all.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/workspaces/arborist/lib/query-selector-all.js b/workspaces/arborist/lib/query-selector-all.js
index 87a67bbed..5d21c92df 100644
--- a/workspaces/arborist/lib/query-selector-all.js
+++ b/workspaces/arborist/lib/query-selector-all.js
@@ -120,13 +120,13 @@ class Results {
this.#pendingCombinator = combinators[String(this.currentAstNode)]
}
- // name selectors (i.e. #foo, #foo@1.0.0)
+ // name selectors (i.e. #foo)
// css calls this id, we interpret it as name
idType () {
- const spec = npa(this.currentAstNode.value)
+ const name = this.currentAstNode.value
const nextResults = this.initialItems.filter(node =>
- (node.name === spec.name || node.package.name === spec.name) &&
- (semver.satisfies(node.version, spec.fetchSpec) || !spec.rawSpec))
+ (name === node.name) || (name === node.package.name)
+ )
this.processPendingCombinator(nextResults)
}