postcss-reporter
Advanced tools
Comparing version 2.0.0 to 3.0.0
# Changelog | ||
## 3.0.0 | ||
- Replace `clearMessages` option with `clearReportedMessages` and `clearAllMessages`. | ||
## 2.0.0 | ||
@@ -4,0 +8,0 @@ |
@@ -54,6 +54,12 @@ var chalk = require('chalk'); | ||
if (options.clearMessages) { | ||
if (options.clearReportedMessages) { | ||
result.messages = _.difference(result.messages, messagesToLog); | ||
} | ||
if (options.clearAllMessages) { | ||
var messagesToClear = result.messages.filter(pluginFilter); | ||
result.messages = _.difference(result.messages, messagesToClear); | ||
} | ||
if (!report) return; | ||
@@ -60,0 +66,0 @@ |
{ | ||
"name": "postcss-reporter", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Log PostCSS messages in the console", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# postcss-reporter | ||
[![Build Status](https://travis-ci.org/postcss/postcss-reporter.svg?branch=master)](https://travis-ci.org/postcss/postcss-reporter)[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/davidtheclark/postcss-reporter/master.svg?label=windows%20build)](https://ci.appveyor.com/project/davidtheclark/postcss-reporter) | ||
[![Build Status](https://travis-ci.org/postcss/postcss-reporter.svg?branch=master)](https://travis-ci.org/postcss/postcss-reporter) | ||
[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/davidtheclark/postcss-reporter/master.svg?label=windows%20build)](https://ci.appveyor.com/project/davidtheclark/postcss-reporter) | ||
@@ -51,3 +52,3 @@ A PostCSS plugin to `console.log()` the messages (warnings, etc.) registered by other PostCSS plugins. | ||
**clearMessages** (boolean, default = `false`) | ||
**clearReportedMessages** (boolean, default = `false`) | ||
@@ -94,2 +95,6 @@ If true, the plugin will clear the result's messages after it logs them. This prevents other plugins, or the whatever runner you use, from logging the same information again and causing confusion. | ||
**clearAllMessages** (boolean, default = `false`) | ||
If `true`, not pass any messages into other plugins, or the whatever runner you use, for logging. | ||
**throwError** (boolean, default = `false`) | ||
@@ -96,0 +101,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
14173
148
144