From a8d42008c121b440f20318710c69126f26bd8a42 Mon Sep 17 00:00:00 2001 From: spalger Date: Mon, 1 May 2017 16:49:18 -0700 Subject: [PATCH] remove debugger (cherry picked from commit 036fb89f747e2998508b3ac525d629d1a79ae922) --- scripts/Version.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/Version.js b/scripts/Version.js index e685ae393..b3bde3838 100644 --- a/scripts/Version.js +++ b/scripts/Version.js @@ -21,7 +21,7 @@ function nextMinorVersion(major) { // ensure all values in tuples are not NaN .filter(vt => vt.every(v => !isNaN(v))) // ensure that major version in tuple matches major (both as a string) - .filter(vt => `${vt[0]}` === `${major}`) + .filter(vt => vt[0] === parseFloat(major)) // sort by the minor version in each tuple .sort((vta, vtb) => vtb[1] - vta[1]) // get the minor version from the first tuple @@ -56,7 +56,6 @@ Version.prototype.increment = function (which) { }; Version.prototype.satisfies = function (range) { - debugger return semver.satisfies(this.version, range); };