update-notifier
Advanced tools
Comparing version 4.1.1 to 4.1.2
@@ -9,2 +9,3 @@ 'use strict'; | ||
const chalk = importLazy('chalk'); | ||
const semver = importLazy('semver'); | ||
const semverDiff = importLazy('semver-diff'); | ||
@@ -118,3 +119,3 @@ const latestVersion = importLazy('latest-version'); | ||
const suppressForNpm = !this.shouldNotifyInNpmScript && isNpm().isNpmOrYarn; | ||
if (!process.stdout.isTTY || suppressForNpm || !this.update || this.update.current === this.update.latest) { | ||
if (!process.stdout.isTTY || suppressForNpm || !this.update || !semver().gt(this.update.latest, this.update.current)) { | ||
return this; | ||
@@ -121,0 +122,0 @@ } |
{ | ||
"name": "update-notifier", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "Update notifications for your CLI app", | ||
@@ -48,2 +48,3 @@ "license": "BSD-2-Clause", | ||
"pupa": "^2.0.1", | ||
"semver": "^7.3.2", | ||
"semver-diff": "^3.1.1", | ||
@@ -50,0 +51,0 @@ "xdg-basedir": "^4.0.0" |
@@ -209,3 +209,2 @@ # update-notifier [![Build Status](https://travis-ci.org/yeoman/update-notifier.svg?branch=master)](https://travis-ci.org/yeoman/update-notifier) | ||
- [XO](https://github.com/xojs/xo) - JavaScript happiness style linter | ||
- [Pageres](https://github.com/sindresorhus/pageres) - Capture website screenshots | ||
- [Node GH](https://github.com/node-gh/gh) - GitHub command line tool | ||
@@ -212,0 +211,0 @@ |
180
15458
14
224
+ Addedsemver@^7.3.2
+ Addedsemver@7.6.2(transitive)