@njakob/cli-utils
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -89,3 +89,7 @@ 'use strict'; | ||
value: function info(message) { | ||
this.stdout.write(this.format(this.styles.dim(_templateObject, message))); | ||
var verbose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
if (this.verbose >= verbose) { | ||
this.stdout.write(this.format(this.styles.dim(_templateObject, message))); | ||
} | ||
} | ||
@@ -95,3 +99,7 @@ }, { | ||
value: function success(message) { | ||
this.stdout.write(this.format(this.parse(_templateObject2, message, this.styles.bold.green(_templateObject3)))); | ||
var verbose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
if (this.verbose >= verbose) { | ||
this.stdout.write(this.format(this.parse(_templateObject2, message, this.styles.bold.green(_templateObject3)))); | ||
} | ||
} | ||
@@ -101,3 +109,7 @@ }, { | ||
value: function warning(message) { | ||
this.stdout.write(this.format(this.styles.bold.yellow(_templateObject4, message))); | ||
var verbose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
if (this.verbose >= verbose) { | ||
this.stdout.write(this.format(this.styles.bold.yellow(_templateObject4, message))); | ||
} | ||
} | ||
@@ -107,3 +119,7 @@ }, { | ||
value: function failure(message) { | ||
this.stderr.write(this.format(this.styles.bold.red(_templateObject5, message))); | ||
var verbose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
if (this.verbose >= verbose) { | ||
this.stderr.write(this.format(this.styles.bold.red(_templateObject5, message))); | ||
} | ||
} | ||
@@ -110,0 +126,0 @@ }, { |
@@ -71,3 +71,5 @@ 'use strict'; | ||
key: 'info', | ||
value: function info(message) {} | ||
value: function info(message) { | ||
var verbose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
} | ||
@@ -78,3 +80,5 @@ // eslint-disable-next-line no-unused-vars | ||
key: 'success', | ||
value: function success(message) {} | ||
value: function success(message) { | ||
var verbose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
} | ||
@@ -85,3 +89,5 @@ // eslint-disable-next-line no-unused-vars | ||
key: 'warning', | ||
value: function warning(message) {} | ||
value: function warning(message) { | ||
var verbose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
} | ||
@@ -92,3 +98,5 @@ // eslint-disable-next-line no-unused-vars | ||
key: 'failure', | ||
value: function failure(message) {} | ||
value: function failure(message) { | ||
var verbose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
} | ||
@@ -95,0 +103,0 @@ // eslint-disable-next-line no-unused-vars |
{ | ||
"name": "@njakob/cli-utils", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Collection of utils to build CLI Node based applications", | ||
@@ -5,0 +5,0 @@ "author": "Nicolas Jakob <nicow.jakob@gmail.com>", |
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
20111
361