update-notifier
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11568
176