(version)
| 194 | |
| 195 | // if ANY of the sets match ALL of its comparators, then pass |
| 196 | test (version) { |
| 197 | if (!version) { |
| 198 | return false |
| 199 | } |
| 200 | |
| 201 | if (typeof version === 'string') { |
| 202 | try { |
| 203 | version = new SemVer(version, this.options) |
| 204 | } catch (er) { |
| 205 | return false |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | for (let i = 0; i < this.set.length; i++) { |
| 210 | if (testSet(this.set[i], version, this.options)) { |
| 211 | return true |
| 212 | } |
| 213 | } |
| 214 | return false |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | module.exports = Range |
no test coverage detected