|
|
@ -108,12 +108,12 @@ |
|
|
|
for (var j = 0; j < modules.length; j++) { |
|
|
|
for (var j = 0; j < modules.length; j++) { |
|
|
|
var module = modules[i]; |
|
|
|
var module = modules[i]; |
|
|
|
if (module && dependencies[module.moduleId] && module.version === version) { |
|
|
|
if (module && dependencies[module.moduleId] && module.version === version) { |
|
|
|
var min = dependencies[module.moduleId].min, max = dependencies[module.moduleId].max; |
|
|
|
var minVersion = dependencies[module.moduleId].minVersion, maxVersion = dependencies[module.moduleId].maxVersion; |
|
|
|
if (min && module.version < min){ |
|
|
|
if (minVersion && module.version < minVersion){ |
|
|
|
findVersion = true; |
|
|
|
findVersion = true; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
if(max && module.version > max){ |
|
|
|
if(maxVersion && module.version > maxVersion){ |
|
|
|
findVersion = true; |
|
|
|
findVersion = true; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|