|
@ -64,7 +64,7 @@ function check ({ debug = false }) { |
|
|
const { latest } = data['dist-tags']; |
|
|
const { latest } = data['dist-tags']; |
|
|
const current = pkg.version; |
|
|
const current = pkg.version; |
|
|
|
|
|
|
|
|
if (latest !== pkg.version) { |
|
|
if (1 === compare(latest, pkg.version)) { |
|
|
if (debug) console.log(`> [debug] Needs update. Current ${current}, latest ${latest}`); |
|
|
if (debug) console.log(`> [debug] Needs update. Current ${current}, latest ${latest}`); |
|
|
resolve({ |
|
|
resolve({ |
|
|
latest, |
|
|
latest, |
|
|