Skip to content

Commit

Permalink
fix(resolver): PackageResolution::satisfies() should use the spec t…
Browse files Browse the repository at this point in the history
…arget
  • Loading branch information
zkat committed May 17, 2023
1 parent 135f53f commit 4f0fbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/nassun/src/resolver.rs
Expand Up @@ -70,7 +70,7 @@ impl PackageResolution {
pub fn satisfies(&self, spec: &PackageSpec) -> Result<bool, NassunError> {
use PackageResolution as PR;
use PackageSpec as PS;
Ok(match (self, spec) {
Ok(match (self, spec.target()) {
(PR::Npm { version, .. }, PS::Npm { requested, .. }) => {
match requested {
Some(VersionSpec::Version(v)) => version == v,
Expand Down

0 comments on commit 4f0fbba

Please sign in to comment.