Socket
Socket
Sign inDemoInstall

update-notifier

Package Overview
Dependencies
77
Maintainers
9
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.1 to 4.1.2

3

index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc