#2308 check if latest is greater by semver

v1.18.x
barisusakli 10 years ago
parent 25c7dfbc12
commit 9e77960ee1

@ -659,7 +659,7 @@ var fs = require('fs'),
pluginMap[plugin.id].active = plugin.active;
pluginMap[plugin.id].version = plugin.version;
pluginMap[plugin.id].latest = pluginMap[plugin.id].latest || plugin.version;
pluginMap[plugin.id].outdated = pluginMap[plugin.id].latest !== pluginMap[plugin.id].version;
pluginMap[plugin.id].outdated = semver.gt(pluginMap[plugin.id].latest, pluginMap[plugin.id].version);
next();
}, function(err) {
if (err) {

Loading…
Cancel
Save