webpack-build-notifier
Advanced tools
Comparing version 1.1.1 to 1.2.1
# Changelog | ||
#### 1.2.1 | ||
###### _October 15, 2019_ | ||
- Added *showDuration* config option for [#48](/../../issues/48). | ||
#### 1.1.1 | ||
###### _August 29, 2019_ | ||
- Updated node-notifier dependency to latest version to fix #45. | ||
- Updated node-notifier dependency to latest version to fix [#45](/../../issues/45). | ||
@@ -21,3 +26,3 @@ #### 1.1.0 | ||
- Corrected *sound TS types. | ||
- Corrected *sound* TS types. | ||
@@ -24,0 +29,0 @@ #### 1.0.1 |
@@ -117,2 +117,6 @@ import { Plugin } from 'webpack'; | ||
/** | ||
* True to show the duration of a successful compilation, otherwise false (default). | ||
*/ | ||
showDuration?: boolean; | ||
/** | ||
* A function called when clicking on a warning or error notification. By default, it activates the Terminal application. | ||
@@ -119,0 +123,0 @@ * The function is passed two parameters: |
@@ -131,2 +131,7 @@ /** | ||
/** | ||
* @cfg {Boolean} [showDuration=false] | ||
* True to show the duration of a successful compilation, otherwise false (default). | ||
*/ | ||
this.showDuration = cfg.showDuration || false; | ||
/** | ||
* @cfg {Function} [onCompileStart=undefined] | ||
@@ -238,3 +243,3 @@ * A function which is invoked when compilation starts. Optional. The function is passed one parameter: | ||
title = this.title + ' - ', | ||
msg = 'Build successful!', | ||
msg = 'Build successful!' + (this.showDuration ? ` [${results.endTime - results.startTime} ms]` : ""), | ||
icon = this.successIcon, | ||
@@ -241,0 +246,0 @@ sound = this.successSound, |
{ | ||
"name": "webpack-build-notifier", | ||
"version": "1.1.1", | ||
"version": "1.2.1", | ||
"description": "A Webpack plugin that generates OS notifications for build steps using node-notifier.", | ||
@@ -45,2 +45,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
2
119537
16
559