10
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2026-04-05 22:36:55 +00:00
setup-helm/node_modules/node-notifier/node_modules/semver/ranges/to-comparators.js
github-actions[bot] a517f2ff65
Add node modules and new code for release (#57)
Co-authored-by: taakleton <taakleton@users.noreply.github.com>
2022-01-26 17:16:26 -05:00

8 lines
268 B
JavaScript

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