(version, alternatives)
| 3575 | return { operator: operator, operand: operand }; |
| 3576 | } |
| 3577 | function testDisjunction(version, alternatives) { |
| 3578 | // an empty disjunction is treated as "*" (all versions) |
| 3579 | if (alternatives.length === 0) |
| 3580 | return true; |
| 3581 | for (var _i = 0, alternatives_1 = alternatives; _i < alternatives_1.length; _i++) { |
| 3582 | var alternative = alternatives_1[_i]; |
| 3583 | if (testAlternative(version, alternative)) |
| 3584 | return true; |
| 3585 | } |
| 3586 | return false; |
| 3587 | } |
| 3588 | function testAlternative(version, comparators) { |
| 3589 | for (var _i = 0, comparators_1 = comparators; _i < comparators_1.length; _i++) { |
| 3590 | var comparator = comparators_1[_i]; |
no test coverage detected
searching dependent graphs…