(a, b, options)
| 236 | |
| 237 | // <=1.2.3 is higher than <1.2.3 |
| 238 | const lowerLT = (a, b, options) => { |
| 239 | if (!a) { |
| 240 | return b |
| 241 | } |
| 242 | const comp = compare(a.semver, b.semver, options) |
| 243 | return comp < 0 ? a |
| 244 | : comp > 0 ? b |
| 245 | : b.operator === '<' && a.operator === '<=' ? b |
| 246 | : a |
| 247 | } |
| 248 | |
| 249 | module.exports = subset |
no test coverage detected