source:
frontend/node_modules/semver/functions/satisfies.js
| Last change on this file was 9af201e, checked in by , 2 weeks ago | |
|---|---|
|
|
| File size: 247 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | 'use strict' |
| 2 | ||
| 3 | const Range = require('../classes/range') | |
| 4 | const satisfies = (version, range, options) => { | |
| 5 | try { | |
| 6 | range = new Range(range, options) | |
| 7 | } catch (er) { | |
| 8 | return false | |
| 9 | } | |
| 10 | return range.test(version) | |
| 11 | } | |
| 12 | module.exports = satisfies |
Note:
See TracBrowser
for help on using the repository browser.
