Skip to content

Commit

Permalink
feat: support compare version range
Browse files Browse the repository at this point in the history
Former-commit-id: 65aab7c
  • Loading branch information
ci010 committed Jul 15, 2019
1 parent bece862 commit 262dfa5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/universal/utils/versionCompatible.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { VersionRange, ArtifactVersion } from 'maven-artifact-version';

export default function compatible(range, version) {
return VersionRange.createFromVersionSpec(range).containsVersion(ArtifactVersion.of(version));
}

0 comments on commit 262dfa5

Please sign in to comment.