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 1.3.2 to 1.3.3

6

CHANGELOG.md

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

# 1.3.3
* Fixes an issue where the wildcard hack (`*zoom: 1`) was being propagated to
other properties erroneously.
* Better merging logic in some cases.
# 1.3.2

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

12

index.js

@@ -103,3 +103,4 @@ 'use strict';

firstClone.eachDecl(moveDecl(function (decl) {
decl.moveTo(recievingBlock);
decl.removeSelf();
recievingBlock.append(decl);
}));

@@ -119,2 +120,5 @@ secondClone.eachDecl(moveDecl(function (decl) {

});
if (!secondClone.parent) {
return recievingBlock;
}
return secondClone;

@@ -136,2 +140,8 @@ } else {

}
// Ensure that we don't deduplicate the same rule; this is sometimes
// caused by a partial merge
if (cache === rule) {
cache = rule;
return;
}
var cacheDecls = getDeclarations(cache);

@@ -138,0 +148,0 @@ var ruleDecls = getDeclarations(rule);

2

package.json
{
"name": "postcss-merge-rules",
"version": "1.3.2",
"version": "1.3.3",
"description": "Merge CSS rules with PostCSS.",

@@ -5,0 +5,0 @@ "main": "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