Socket
Socket
Sign inDemoInstall

update-notifier

Package Overview
Dependencies
75
Maintainers
9
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.5.0

4

index.js

@@ -43,2 +43,3 @@ 'use strict';

isCi();
this.shouldNotifyInNpmScript = options.shouldNotifyInNpmScript;

@@ -112,3 +113,4 @@ if (!this.disabled && !this.hasCallback) {

notify(opts) {
if (!process.stdout.isTTY || isNpm() || !this.update) {
const suppressForNpm = !this.shouldNotifyInNpmScript && isNpm();
if (!process.stdout.isTTY || suppressForNpm || !this.update) {
return this;

@@ -115,0 +117,0 @@ }

{
"name": "update-notifier",
"version": "2.4.0",
"version": "2.5.0",
"description": "Update notifications for your CLI app",

@@ -5,0 +5,0 @@ "license": "BSD-2-Clause",

@@ -156,2 +156,9 @@ # update-notifier [![Build Status](https://travis-ci.org/yeoman/update-notifier.svg?branch=master)](https://travis-ci.org/yeoman/update-notifier)

##### shouldNotifyInNpmScript
Type: `boolean`<br>
Default: `false`
Allows notification to be shown when running as an npm script.
### User settings

@@ -158,0 +165,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