1
0
mirror of synced 2025-12-22 19:34:15 -05:00
Files
docs/lib/version-satisfies-range.js
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

10 lines
342 B
JavaScript

const semver = require('semver')
// workaround for Enterprise Server 11.10.340 because we can't use semver to
// compare it to 2.x like we can with 2.0+
module.exports = function versionSatisifiesRange (version, range) {
if (version === '11.10.340') return range.startsWith('<')
return semver.satisfies(semver.coerce(version), range)
}