From de8e3e03cd445a1e50687660030a97e841ca23eb Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Sat, 30 Jul 2016 17:30:48 -0700 Subject: [PATCH] check-update: only warn about truly new versions --- lib/check-update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/check-update.js b/lib/check-update.js index 6fccca7..f64afc9 100644 --- a/lib/check-update.js +++ b/lib/check-update.js @@ -64,7 +64,7 @@ function check ({ debug = false }) { const { latest } = data['dist-tags']; 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}`); resolve({ latest,