Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxSatisfying returns minSatisfying #35

Closed
JackMorrissey opened this issue Jun 24, 2013 · 2 comments
Closed

maxSatisfying returns minSatisfying #35

JackMorrissey opened this issue Jun 24, 2013 · 2 comments

Comments

@JackMorrissey
Copy link

Using version 2.0.7. Tested a few versions back (all > 2.x) with the same result.

semver = require 'semver'

out = (input) ->
    console.log input

ranges = [
    '1.1.1-123'
    '1.1.1'
    '1.1.2'
    '2.0.0'
    '1.1.0'
]

out semver.maxSatisfying ranges, '~1.1.1'  #E: 1.1.2 A: 1.1.1-123
out semver.maxSatisfying ranges, '~1.1.x'  #E: 1.1.2 A: 1.1.0
out semver.maxSatisfying ranges, '<=2.0.0' #E: 2.0.0 A: 1.1.0
out semver.maxSatisfying ranges, '>=1.1.2' #E: 2.0.0 A: 1.1.2
@isaacs isaacs closed this as completed in 432f0f5 Jun 24, 2013
@JackMorrissey
Copy link
Author

You're the man.

@isaacs
Copy link
Contributor

isaacs commented Jun 24, 2013

Thanks. Not often that you get a bug that can be fixed with a 1-char diff ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants