Socket
Socket
Sign inDemoInstall

stylecow-plugin-nested-rules

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylecow-plugin-nested-rules - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

11

index.js

@@ -154,2 +154,10 @@ module.exports = function (stylecow) {

function mergeMediaQuery (mediaQueries, appendedMediaQuery) {
mediaQueries.push((new stylecow.Keyword()).setName('and'));
if ((appendedMediaQuery.length === 1) && (appendedMediaQuery[0].type === 'ConditionalExpression')) {
mediaQueries.push(appendedMediaQuery[0]);
return mediaQueries;
}
var expression = new stylecow.ConditionalExpression();

@@ -161,5 +169,2 @@

var joinKeyword = (new stylecow.Keyword()).setName('and');
mediaQueries.push(joinKeyword);
mediaQueries.push(expression);

@@ -166,0 +171,0 @@

{
"name": "stylecow-plugin-nested-rules",
"description": "Stylecow plugin to add support for nested rules.",
"version": "4.2.1",
"version": "4.2.2",
"author": "Oscar Otero <oom@oscarotero.com>",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/stylecow/stylecow-plugin-nested-rules",

@@ -293,21 +293,16 @@ {

{
"class": "ConditionalExpression",
"class": "ConditionalFeature",
"name": "max-width",
"vendor": null,
"children": [
{
"class": "ConditionalFeature",
"name": "max-width",
"vendor": null,
"class": "Value",
"children": [
{
"class": "Value",
"class": "Unit",
"name": "px",
"children": [
{
"class": "Unit",
"name": "px",
"children": [
{
"class": "Number",
"name": 501
}
]
"class": "Number",
"name": 501
}

@@ -314,0 +309,0 @@ ]

@@ -350,21 +350,16 @@ {

{
"class": "ConditionalExpression",
"class": "ConditionalFeature",
"name": "max-width",
"vendor": null,
"children": [
{
"class": "ConditionalFeature",
"name": "max-width",
"vendor": null,
"class": "Value",
"children": [
{
"class": "Value",
"class": "Unit",
"name": "px",
"children": [
{
"class": "Unit",
"name": "px",
"children": [
{
"class": "Number",
"name": 899
}
]
"class": "Number",
"name": 899
}

@@ -371,0 +366,0 @@ ]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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