From f242ce4d2c93d38fd91af77880e971e7bbfe8eaf Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Sun, 29 Dec 2019 09:15:08 +0100 Subject: [PATCH] =?UTF-8?q?lib:=20compatibility=20with=20semver=20?= =?UTF-8?q?=E2=89=A5=207=20(`new`=20for=20semver.Range)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: #2005 Reviewed-By: Rod Vagg PR-URL: https://github.com/nodejs/node-gyp/pull/2006 --- lib/find-python.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/find-python.js b/lib/find-python.js index 9d918a881b..43bf85985a 100644 --- a/lib/find-python.js +++ b/lib/find-python.js @@ -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)