diff options
Diffstat (limited to 'together/node_modules/semver/ranges/to-comparators.js')
-rw-r--r-- | together/node_modules/semver/ranges/to-comparators.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/together/node_modules/semver/ranges/to-comparators.js b/together/node_modules/semver/ranges/to-comparators.js new file mode 100644 index 0000000..6c8bc7e --- /dev/null +++ b/together/node_modules/semver/ranges/to-comparators.js @@ -0,0 +1,8 @@ +const Range = require('../classes/range') + +// Mostly just for testing and legacy API reasons +const toComparators = (range, options) => + new Range(range, options).set + .map(comp => comp.map(c => c.value).join(' ').trim().split(' ')) + +module.exports = toComparators |