cortexjs-legacy / cortex

The package manager for browsers
http://ctx.io
Other
224 stars 34 forks source link

if install 0.0.x, should save ~0.0.a into cortex.json #464

Closed kaelzhang closed 10 years ago

kaelzhang commented 10 years ago
require('semver').maxSatisfying(['0.1.3-beta'], '^0.1.3'); // 0.1.3-beta
require('semver').maxSatisfying(['0.0.3-beta'], '^0.0.3'); // null
require('semver').maxSatisfying(['0.0.3-beta'], '~0.0.3'); // 0.0.3-beta