Socket
Socket
Sign inDemoInstall

postcss-critical-css

Package Overview
Dependencies
93
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.4 to 2.1.5

7

lib/getChildRules.js

@@ -44,4 +44,7 @@ 'use strict';

});
// Should append even if parent selector
if (rule.selector === parent.selector || childRule) {
/**
* Should append even if parent selector, but make sure the two rules
* aren't identical.
*/
if ((rule.selector === parent.selector || childRule) && _postcss2.default.parse(rule).toString() !== _postcss2.default.parse(parent).toString()) {
var clone = rule.clone();

@@ -48,0 +51,0 @@ criticalAtRule.append(clone);

{
"name": "postcss-critical-css",
"version": "2.1.4",
"version": "2.1.5",
"description": "Generate critical CSS using PostCSS",

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

@@ -34,4 +34,10 @@ // @flow

})
// Should append even if parent selector
if (rule.selector === parent.selector || childRule) {
/**
* Should append even if parent selector, but make sure the two rules
* aren't identical.
*/
if (
(rule.selector === parent.selector || childRule) &&
postcss.parse(rule).toString() !== postcss.parse(parent).toString()
) {
const clone = rule.clone()

@@ -38,0 +44,0 @@ criticalAtRule.append(clone)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc