eslintwork/node_modules/semver/functions/satisfies.js
Martin Donnelly 9cbf1eea5b init
2021-06-24 09:26:17 +01:00

11 lines
233 B
JavaScript

const Range = require('../classes/range')
const satisfies = (version, range, options) => {
try {
range = new Range(range, options)
} catch (er) {
return false
}
return range.test(version)
}
module.exports = satisfies