UNPKG
@lando/drupal
Version:
edge (1.13.0)
latest (1.13.0)
1.13.0
1.12.0
1.11.0
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.0
1.7.0
1.6.1
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
0.12.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.3
0.5.1
0.5.0
A Lando plugin that provides a tight integration with Drupal.
github.com/lando/drupal
lando/drupal
@lando/drupal
/
node_modules
/
semver
/
ranges
/
to-comparators.js
9 lines
(6 loc)
•
268 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
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