postcss-reporter
Advanced tools
Comparing version 1.2.0 to 1.2.1
# Changelog | ||
## 1.2.1 | ||
- Handle variable and absent input sources. | ||
## 1.2.0 | ||
@@ -4,0 +7,0 @@ - Add `noIcon` and `noPlugin` options to both reporter and formatter. |
@@ -38,3 +38,5 @@ var chalk = require('chalk'); | ||
output += chalk.bold.underline(logFrom(source)) + '\n'; | ||
if (source) { | ||
output += chalk.bold.underline(logFrom(source)) + '\n'; | ||
} | ||
@@ -41,0 +43,0 @@ orderedMessages.forEach(function(w) { |
@@ -22,5 +22,8 @@ var chalk = require('chalk'); | ||
var source = (!result.root.source) ? undefined | ||
: result.root.source.input.file || result.root.source.input.id | ||
var report = formatter({ | ||
messages: messagesToLog, | ||
source: result.root.source.input.from, | ||
source: source, | ||
}); | ||
@@ -27,0 +30,0 @@ |
{ | ||
"name": "postcss-reporter", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Log PostCSS messages in the console", | ||
@@ -5,0 +5,0 @@ "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
10724
108