|
Last change
on this file since cdcff72 was 9af201e, checked in by MBK <marija.karapandzova@…>, 3 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
247 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | 'use strict'
|
|---|
| 2 |
|
|---|
| 3 | const Range = require('../classes/range')
|
|---|
| 4 | const satisfies = (version, range, options) => {
|
|---|
| 5 | try {
|
|---|
| 6 | range = new Range(range, options)
|
|---|
| 7 | } catch (er) {
|
|---|
| 8 | return false
|
|---|
| 9 | }
|
|---|
| 10 | return range.test(version)
|
|---|
| 11 | }
|
|---|
| 12 | module.exports = satisfies
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.