Socket
Socket
Sign inDemoInstall

postcss-reporter

Package Overview
Dependencies
38
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

3

CHANGELOG.md
# Changelog
## 1.2.0
- Add `noIcon` and `noPlugin` options to both reporter and formatter.
## 1.1.0

@@ -4,0 +7,0 @@ - Use PostCSS 5's line/column properties on warnings, instead of relying on the source node.

6

lib/formatter.js

@@ -61,3 +61,3 @@ var chalk = require('chalk');

if (message.type === 'warning') {
if (!options.noIcon && message.type === 'warning') {
str += chalk.yellow(symbols.warning + ' ');

@@ -67,3 +67,5 @@ }

str += message.text;
str += chalk.yellow(' [' + message.plugin + ']');
if (!options.noPlugin) {
str += chalk.yellow(' [' + message.plugin + ']');
}
return str;

@@ -70,0 +72,0 @@ }

@@ -11,2 +11,4 @@ var chalk = require('chalk');

positionless: options.positionless || 'first',
noIcon: options.noIcon,
noPlugin: options.noPlugin,
});

@@ -13,0 +15,0 @@

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

@@ -30,5 +30,5 @@ "main": "index.js",

"devDependencies": {
"eslint": "1.2.1",
"eslint": "1.3.1",
"lodash.clonedeep": "3.0.2",
"stylelint": "0.7.0",
"stylelint": "1.0.1",
"tape": "4.2.0"

@@ -35,0 +35,0 @@ },

@@ -90,2 +90,10 @@ # postcss-reporter [![Build Status](https://travis-ci.org/postcss/postcss-reporter.svg?branch=master)](https://travis-ci.org/postcss/postcss-reporter)

**noIcon** (boolean, default = `false`)
If `true`, no exclamatory triangle icons will be printed next to warnings.
**noPlugin** (boolean, default = `false`)
If `true`, plugin names will not be printed in brackets after messages.
## How to get output without colors

@@ -113,1 +121,3 @@

- sortByPosition (boolean, default = `true`)
- noIcon (boolean, default = `false`) - Do not print any warning exclamatory triangle icons
- noPlugin (boolean, default = `false`) - Do not print plugin names
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc