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

postcss-discard-empty

Package Overview
Dependencies
Maintainers
5
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-discard-empty - npm Package Compare versions

Comparing version 4.0.0-rc.2 to 4.0.0

11

dist/index.js

@@ -13,11 +13,8 @@ 'use strict';

var plugin = 'postcss-discard-empty';
const plugin = 'postcss-discard-empty';
function discardAndReport(css, result) {
function discardEmpty(node) {
var type = node.type,
sub = node.nodes,
params = node.params;
const { type, nodes: sub, params } = node;
if (sub) {

@@ -41,5 +38,3 @@ node.each(discardEmpty);

exports.default = _postcss2.default.plugin(plugin, function () {
return discardAndReport;
});
exports.default = _postcss2.default.plugin(plugin, () => discardAndReport);
module.exports = exports['default'];
{
"name": "postcss-discard-empty",
"version": "4.0.0-rc.2",
"version": "4.0.0",
"description": "Discard empty rules and values with PostCSS.",

@@ -28,5 +28,5 @@ "main": "dist/index.js",

"babel-cli": "^6.0.0",
"cross-env": "^3.0.0"
"cross-env": "^5.0.0"
},
"homepage": "https://github.com/ben-eb/cssnano",
"homepage": "https://github.com/cssnano/cssnano",
"author": {

@@ -37,9 +37,9 @@ "name": "Ben Briggs",

},
"repository": "ben-eb/cssnano",
"repository": "cssnano/cssnano",
"bugs": {
"url": "https://github.com/ben-eb/cssnano/issues"
"url": "https://github.com/cssnano/cssnano/issues"
},
"engines": {
"node": ">=4"
"node": ">=6.9.0"
}
}

@@ -41,3 +41,3 @@ # [postcss][postcss]-discard-empty

See [CONTRIBUTORS.md](https://github.com/ben-eb/cssnano/blob/master/CONTRIBUTORS.md).
See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).

@@ -44,0 +44,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