From e2d11bfb3790b28523c5f2fff4d626714c14c271 Mon Sep 17 00:00:00 2001 From: Alfreds Genkins Date: Tue, 1 Sep 2020 23:42:37 +0300 Subject: [PATCH] MinVersion failing for '^2.16.2 ^2.16' alike range Patch for issue #340 --- ranges/min-version.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranges/min-version.js b/ranges/min-version.js index 7118d237..d80e5691 100644 --- a/ranges/min-version.js +++ b/ranges/min-version.js @@ -33,7 +33,7 @@ const minVersion = (range, loose) => { /* fallthrough */ case '': case '>=': - if (!minver || gt(minver, compver)) { + if (!minver || gt(compver, minver)) { minver = compver } break