🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

postcss-merge-rules

Package Overview
Dependencies
Maintainers
1
Versions
79
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

to
1.2.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.2.2
* Fixed an issue where the plugin crashed if node.parent was undefined.
# 1.2.1

@@ -2,0 +6,0 @@

2

index.js

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

// If an at rule, ensure that the parameters are the same
if (ruleA.parent.type !== 'root' && ruleB.parent.type !== 'root') {
if (hasParent && ruleA.parent.type !== 'root' && ruleB.parent.type !== 'root') {
sameType = sameType && ruleA.parent.params === ruleB.parent.params;

@@ -49,0 +49,0 @@ }

{
"name": "postcss-merge-rules",
"version": "1.2.1",
"version": "1.2.2",
"description": "Merge CSS rules with PostCSS.",

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