From 7801d5bc181a7dc8219da8c832bbfe275203a88e Mon Sep 17 00:00:00 2001 From: nobody42 <5514211-nobody42@users.noreply.gitlab.com> Date: Tue, 5 May 2020 07:40:09 +0200 Subject: [PATCH] Version selection of AngularUI Router improved --- modules/internal/helpers.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/internal/helpers.js b/modules/internal/helpers.js index 870b1ec1..2a3f9c2b 100644 --- a/modules/internal/helpers.js +++ b/modules/internal/helpers.js @@ -461,10 +461,9 @@ helpers.setLastVersion = function (type, version) { version = '0.14.3'; } else if (type.includes('/angular-ui-bootstrap/1.')) { version = '1.3.3'; - } else if (type.includes('/angular-ui-router/0.')) { - version = '0.4.3'; - } else if (type.includes('/angular-ui-router/1.')) { - version = '1.0.25'; + } else if (type.includes('/angular-ui-router/')) { + if (helpers.compareVersion('0.4.3', requestVersion)) version = '0.4.3'; // <= 0.4.3 + else version = '1.0.25'; // > 0.4.3 } else if (type.includes('/angular-ui-select/0.')) { version = '0.20.0'; } else if (type.includes('/angucomplete-alt/3.')) {