postcss-discard-empty
Advanced tools
Comparing version 4.0.0-rc.2 to 4.0.0
@@ -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 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
4274
26
1