source: trip-planner-front/node_modules/semver/ranges/to-comparators.js@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 268 bytes
Line 
1const Range = require('../classes/range')
2
3// Mostly just for testing and legacy API reasons
4const toComparators = (range, options) =>
5 new Range(range, options).set
6 .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))
7
8module.exports = toComparators
Note: See TracBrowser for help on using the repository browser.