@njakob/cli-utils
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.3.0"></a> | ||
# [1.3.0](https://github.com/njakob/cli-utils/compare/v1.2.1...v1.3.0) (2017-05-01) | ||
### Features | ||
* Make initial message of activities optional ([3007146](https://github.com/njakob/cli-utils/commit/3007146)) | ||
<a name="1.2.1"></a> | ||
@@ -7,0 +17,0 @@ ## [1.2.1](https://github.com/njakob/cli-utils/compare/v1.2.0...v1.2.1) (2017-04-25) |
/* | ||
cli-utils v1.2.1 | ||
Tue Apr 25 2017 09:58:28 GMT+0200 (CEST) - commit 65f1fdce54d4f397f947f908f30f5fef67edfa86 | ||
cli-utils v1.3.0 | ||
Mon May 01 2017 16:50:42 GMT+0200 (CEST) - commit 520510dc1f345168940faa9a7e27b16b48fc5a4f | ||
@@ -423,3 +423,3 @@ https://github.com/njakob/cli-utils | ||
key: 'activity', | ||
value: function activity(message) { | ||
value: function activity(initialMessage) { | ||
var _this2 = this; | ||
@@ -429,9 +429,11 @@ | ||
spinner.start(); | ||
spinner.setText(this.format(message)); | ||
if (initialMessage) { | ||
spinner.setText(this.format(initialMessage)); | ||
} | ||
return new Activity(function () { | ||
spinner.stop(); | ||
}, function (innerMessage) { | ||
if (innerMessage) { | ||
spinner.setText(_this2.format(innerMessage)); | ||
}, function (message) { | ||
if (message) { | ||
spinner.setText(_this2.format(message)); | ||
} | ||
@@ -438,0 +440,0 @@ }); |
/* | ||
cli-utils v1.2.1 | ||
Tue Apr 25 2017 09:58:28 GMT+0200 (CEST) - commit 65f1fdce54d4f397f947f908f30f5fef67edfa86 | ||
cli-utils v1.3.0 | ||
Mon May 01 2017 16:50:42 GMT+0200 (CEST) - commit 520510dc1f345168940faa9a7e27b16b48fc5a4f | ||
@@ -426,3 +426,3 @@ https://github.com/njakob/cli-utils | ||
key: 'activity', | ||
value: function activity(message) { | ||
value: function activity(initialMessage) { | ||
var _this2 = this; | ||
@@ -432,9 +432,11 @@ | ||
spinner.start(); | ||
spinner.setText(this.format(message)); | ||
if (initialMessage) { | ||
spinner.setText(this.format(initialMessage)); | ||
} | ||
return new Activity(function () { | ||
spinner.stop(); | ||
}, function (innerMessage) { | ||
if (innerMessage) { | ||
spinner.setText(_this2.format(innerMessage)); | ||
}, function (message) { | ||
if (message) { | ||
spinner.setText(_this2.format(message)); | ||
} | ||
@@ -441,0 +443,0 @@ }); |
{ | ||
"name": "@njakob/cli-utils", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Collection of utils to build CLI Node based applications", | ||
@@ -5,0 +5,0 @@ "author": "Nicolas Jakob <nicow.jakob@gmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
55620
1
753
0