summaryrefslogtreecommitdiff
path: root/cli/npm/semver/mod.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-09-02 13:06:42 -0400
committerGitHub <noreply@github.com>2022-09-02 13:06:42 -0400
commit5262937285e72419c6576ae1595d43f23e0c7b9d (patch)
tree591e0732e9245a65232255954454682d510eea71 /cli/npm/semver/mod.rs
parent7d622a6643b3dddae4e2ff820f75ec67c8df7224 (diff)
fix(npm): respect `latest` dist tag for getting current version (#15746)
Diffstat (limited to 'cli/npm/semver/mod.rs')
-rw-r--r--cli/npm/semver/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/npm/semver/mod.rs b/cli/npm/semver/mod.rs
index 10a87a13f..53f0f199f 100644
--- a/cli/npm/semver/mod.rs
+++ b/cli/npm/semver/mod.rs
@@ -174,6 +174,10 @@ impl NpmVersionMatcher for NpmVersionReq {
self.satisfies(version)
}
+ fn is_latest(&self) -> bool {
+ false
+ }
+
fn version_text(&self) -> String {
self.raw_text.clone()
}