Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-reporter

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-reporter - npm Package Compare versions

Comparing version 7.0.2 to 7.0.3

2

lib/formatter.js

@@ -1,2 +0,2 @@

var { bold, underline, yellow } = require('colorette');
var { bold, underline, yellow } = require('nanocolors');
var path = require('path');

@@ -3,0 +3,0 @@ var sortBy = require('lodash.sortby');

var defaultFormatter = require('./formatter');
var { red, bold } = require('colorette');
var { red, bold } = require('nanocolors');
var util = require('./util');

@@ -4,0 +4,0 @@ var groupBy = require('lodash.groupby');

{
"name": "postcss-reporter",
"version": "7.0.2",
"version": "7.0.3",
"description": "Log PostCSS messages in the console",

@@ -28,3 +28,2 @@ "main": "index.js",

"dependencies": {
"colorette": "^1.2.1",
"lodash.difference": "^4.5.0",

@@ -34,4 +33,5 @@ "lodash.forown": "^4.4.0",

"lodash.groupby": "^4.6.0",
"lodash.sortby": "^4.7.0"
"lodash.sortby": "^4.7.0",
"nanocolors": "^0.2.6"
}
}
# 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)

@@ -16,7 +14,7 @@ A PostCSS plugin to `console.log()` the messages (warnings, etc.) registered by other PostCSS plugins.

As of PostCSS 4.1, a single PostCSS process can accumulate messages from all of the plugins it uses.
Most of these messages are [warnings](https://github.com/postcss/postcss/blob/master/docs/guidelines/plugin.md#32-use-resultwarn-for-warnings).
Most of these messages are [warnings](https://github.com/postcss/postcss/blob/main/docs/guidelines/plugin.md#32-use-resultwarn-for-warnings).
Presumably, plugin authors want you to see those messages.
So this plugin exists to read the accumulated messages (or messages from only the plugins you've specified), format them, and print them to the console.
By default, the messages are formatted for human legibility and sorted according to the line/column positions attached to the messages. But another formatting function can be passed in with an option, and sorting can be turned of with an option.
By default, the messages are formatted for human legibility and sorted according to the line/column positions attached to the messages. But another formatting function can be passed in with an option, and sorting can be turned off with an option.

@@ -61,4 +59,6 @@ *By default, only warnings are logged*. If you would like to see more messages, you can change the `filter` function.

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.
If true, the plugin will clear the result's messages after it logs them. This prevents other plugins, or the task runner you use, from logging the same information again and causing confusion.
See also `clearAllMessages`.
**formatter** (function, default = the default formatter)

@@ -98,10 +98,12 @@

By default, only messages with `type: "warning"` warnings are logged. (These are the messages produced when the plugin author uses PostCSS's `warn()` function.)
By default, only messages with `type: "warning"` are logged. (These are the messages produced when the plugin author uses PostCSS's `warn()` function.)
For example, `function(message) { return true }` will only every message, regardless of the plugin or whether it's a warning or not.
For example, `function(message) { return true }` will return every message, regardless of whether or not the plugin declares it as a warning.
**clearAllMessages** (boolean, default = `false`)
If `true`, not pass any messages into other plugins, or the whatever runner you use, for logging.
If `true`, the plugin won't pass any messages into other plugins, or the task runner you use.
See also `clearReportedMessages`.
**throwError** (boolean, default = `false`)

@@ -108,0 +110,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc