Only notify of an update if the new version is actually newer

Change-type: patch
This commit is contained in:
Pagan Gazzard 2020-04-28 14:19:45 +01:00 committed by Balena CI
parent 7311cfa755
commit 4ae91ef846

View File

@ -40,7 +40,10 @@ export function notify() {
}
}
const up = notifier.update;
if (up) {
if (
up &&
(require('semver') as typeof import('semver')).lt(up.current, up.latest)
) {
notifier.notify({
defer: false,
message: `Update available ${up.current}${up.latest}\n