diff options
author | isaacs <i@izs.me> | 2013-06-21 01:01:21 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-06-21 01:01:21 +0400 |
commit | b8db927278023c68ec1fa82895390d2491dfc554 (patch) | |
tree | 59be9d7cd9940612a6466666d25d17de514d4cc9 /lib/dedupe.js | |
parent | 41353f852c161948b212b140614b717517a6f7a4 (diff) |
Update everything to work with semver@2
Diffstat (limited to 'lib/dedupe.js')
-rw-r--r-- | lib/dedupe.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dedupe.js b/lib/dedupe.js index bd0056e99..648397b7a 100644 --- a/lib/dedupe.js +++ b/lib/dedupe.js @@ -258,9 +258,9 @@ function findVersions (npm, summary, cb) { function bestMatch (versions, ranges) { return versions.filter(function (v) { return !ranges.some(function (r) { - return !semver.satisfies(v, r) + return !semver.satisfies(v, r, true) }) - }).sort(semver.compare).pop() + }).sort(semver.compareLoose).pop() } |