Skip to content

Commit

Permalink
Update to semver ≥ 7 (Fixes: nodejs#2005)
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed Dec 29, 2019
1 parent 26cd6ea commit 89e182f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"npmlog": "^4.1.2",
"request": "^2.88.0",
"rimraf": "^2.6.3",
"semver": "^5.7.1",
"semver": "^7.1.1",
"tar": "^4.4.12",
"which": "^1.3.1"
},
Expand Down

0 comments on commit 89e182f

Please sign in to comment.