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

postcss-merge-rules

Package Overview
Dependencies
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-merge-rules - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 2.0.6
* Fixes an issue where forward merging was not checking that the merge candidate
was safe to merge (either contains no vendor prefixes,
or the same vendor prefixes).
# 2.0.5

@@ -2,0 +8,0 @@

4

dist/index.js

@@ -94,3 +94,3 @@ 'use strict';

var nextRule = second.next();
if (nextRule && nextRule.type === 'rule') {
if (nextRule && nextRule.type === 'rule' && canMerge(second, nextRule)) {
var nextIntersection = intersect(getDecls(second), getDecls(nextRule));

@@ -191,5 +191,5 @@ if (nextIntersection.length > intersection.length) {

return function (css) {
css.walkRules(selectorMerger());
return css.walkRules(selectorMerger());
};
});
module.exports = exports['default'];
{
"name": "postcss-merge-rules",
"version": "2.0.5",
"version": "2.0.6",
"description": "Merge CSS rules with PostCSS.",

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

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