1 const SemVer = require('../classes/semver')
2 const Range = require('../classes/range')
4 const maxSatisfying = (versions, range, options) => {
9 rangeObj = new Range(range, options)
13 versions.forEach((v) => {
14 if (rangeObj.test(v)) {
15 // satisfies(v, range, options)
16 if (!max || maxSV.compare(v) === -1) {
17 // compare(max, v, true)
19 maxSV = new SemVer(max, options)
25 module.exports = maxSatisfying