Skip to content

Commit

Permalink
lib: compatibility with semver ≥ 7 (new for semver.Range)
Browse files Browse the repository at this point in the history
Fixes: #2005
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #2006
  • Loading branch information
guimard authored and rvagg committed Jan 6, 2020
1 parent 9a7dd16 commit f242ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/find-python.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ PythonFinder.prototype = {
}
this.addLog(`- version is "${version}"`)

const range = semver.Range(this.semverRange)
const range = new semver.Range(this.semverRange)
var valid = false
try {
valid = range.test(version)
Expand Down

0 comments on commit f242ce4

Please sign in to comment.