Socket
Socket
Sign inDemoInstall

update-notifier

Package Overview
Dependencies
Maintainers
6
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

update-notifier - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

4

index.js

@@ -110,6 +110,6 @@ 'use strict';

opts = opts || {};
opts = Object.assign({isGlobal: true}, opts);
opts.message = opts.message || 'Update available ' + chalk().dim(this.update.current) + chalk().reset(' → ') +
chalk().green(this.update.latest) + ' \nRun ' + chalk().cyan('npm i -g ' + this.packageName) + ' to update';
chalk().green(this.update.latest) + ' \nRun ' + chalk().cyan('npm i ' + (opts.isGlobal ? '-g ' : '') + this.packageName) + ' to update';

@@ -116,0 +116,0 @@ opts.boxenOpts = opts.boxenOpts || {

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

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

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

##### isGlobal
Type: `boolean`<br>
Default: `true`
Include the `-g` argument in the default message's `npm i` recommendation. You may want to change this if your CLI package can be installed as a dependency of another project, and don't want to recommend a global installation. This option is ignored if you supply your own `message` (see above).
##### boxenOpts

@@ -136,0 +143,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc