🚀 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
8
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
5.0.5

2

dist/index.js

@@ -86,3 +86,3 @@ "use strict";

if (parent && name && ~name.indexOf('keyframes')) {
if (parent && name && name.includes('keyframes')) {
return false;

@@ -89,0 +89,0 @@ }

@@ -177,7 +177,7 @@ "use strict";

if (type === 'combinator') {
if (~value.indexOf('~')) {
if (value.includes('~')) {
compatible = isSupportedCached(cssSel3, browsers);
}
if (~value.indexOf('>') || ~value.indexOf('+')) {
if (value.includes('>') || value.includes('+')) {
compatible = isSupportedCached(cssSel2, browsers);

@@ -195,3 +195,3 @@ }

// [foo="bar"], [foo~="bar"], [foo|="bar"]
if (~['=', '~=', '|='].indexOf(node.operator)) {
if (['=', '~=', '|='].includes(node.operator)) {
compatible = isSupportedCached(cssSel2, browsers);

@@ -201,3 +201,3 @@ } // [foo^="bar"], [foo$="bar"], [foo*="bar"]

if (~['^=', '$=', '*='].indexOf(node.operator)) {
if (['^=', '$=', '*='].includes(node.operator)) {
compatible = isSupportedCached(cssSel3, browsers);

@@ -204,0 +204,0 @@ }

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

@@ -27,3 +27,3 @@ "main": "dist/index.js",

"caniuse-api": "^3.0.0",
"cssnano-utils": "^3.0.0",
"cssnano-utils": "^3.0.1",
"postcss-selector-parser": "^6.0.5"

@@ -39,3 +39,3 @@ },

"postcss": "^8.2.15",
"postcss-discard-comments": "^5.0.1"
"postcss-discard-comments": "^5.0.2"
},

@@ -42,0 +42,0 @@ "peerDependencies": {