diff options
Diffstat (limited to 'together/node_modules/semver/functions/satisfies.js')
-rw-r--r-- | together/node_modules/semver/functions/satisfies.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/together/node_modules/semver/functions/satisfies.js b/together/node_modules/semver/functions/satisfies.js new file mode 100644 index 0000000..50af1c1 --- /dev/null +++ b/together/node_modules/semver/functions/satisfies.js @@ -0,0 +1,10 @@ +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 |