(a, b)
| 143 | } |
| 144 | |
| 145 | function compareSemver(a, b) { |
| 146 | return ( |
| 147 | compare(parseInt(a[0]), parseInt(b[0])) || |
| 148 | compare(parseInt(a[1] || '0'), parseInt(b[1] || '0')) || |
| 149 | compare(parseInt(a[2] || '0'), parseInt(b[2] || '0')) |
| 150 | ) |
| 151 | } |
| 152 | |
| 153 | // this follows the npm-like semver behavior |
| 154 | function semverFilterLoose(operator, range) { |
no test coverage detected
searching dependent graphs…