PHP 8.2.30
Preview: max-satisfying.js Size: 593 B
//home/byroehnu/easepay.easetack.com/node_modules/semver/ranges/max-satisfying.js

'use strict'

const SemVer = require('../classes/semver')
const Range = require('../classes/range')

const maxSatisfying = (versions, range, options) => {
  let max = null
  let maxSV = null
  let rangeObj = null
  try {
    rangeObj = new Range(range, options)
  } catch (er) {
    return null
  }
  versions.forEach((v) => {
    if (rangeObj.test(v)) {
      // satisfies(v, range, options)
      if (!max || maxSV.compare(v) === -1) {
        // compare(max, v, true)
        max = v
        maxSV = new SemVer(max, options)
      }
    }
  })
  return max
}
module.exports = maxSatisfying

Directory Contents

Dirs: 0 × Files: 12

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:21
Edit Download
231 B lrw-r--r-- 2026-02-03 15:06:18
Edit Download
224 B lrw-r--r-- 2026-02-03 15:06:18
Edit Download
227 B lrw-r--r-- 2026-02-03 15:06:18
Edit Download
593 B lrw-r--r-- 2026-02-03 15:06:18
Edit Download
591 B lrw-r--r-- 2026-02-03 15:06:18
Edit Download
1.48 KB lrw-r--r-- 2026-02-03 15:06:18
Edit Download
2.15 KB lrw-r--r-- 2026-02-03 15:06:18
Edit Download
1.32 KB lrw-r--r-- 2026-02-03 15:06:20
Edit Download
7.35 KB lrw-r--r-- 2026-02-03 15:06:20
Edit Download
282 B lrw-r--r-- 2026-02-03 15:06:20
Edit Download
326 B lrw-r--r-- 2026-02-03 15:06:20
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).