Socket
Socket
Sign inDemoInstall

critters-webpack-plugin

Package Overview
Dependencies
103
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 1.3.2

2

dist/critters.js

@@ -237,3 +237,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

rule.selectors = rule.selectors.filter(function (sel) {
sel = sel.replace(/::?[a-z-]+\s*{/gi, '{').trim();
sel = sel.replace(/::?[a-z-]+\s*(\{|$)/gi, '$1').trim();
try {

@@ -240,0 +240,0 @@ return document.querySelector(sel) != null;

{
"name": "critters-webpack-plugin",
"version": "1.3.1",
"version": "1.3.2",
"description": "Webpack plugin to inline critical CSS and lazy-load the rest.",

@@ -5,0 +5,0 @@ "main": "dist/critters.js",

@@ -300,3 +300,3 @@ /**

// This means any selector for a pseudo-element or having a pseudo-class will be inlined if the rest of the selector matches.
sel = sel.replace(/::?[a-z-]+\s*{/gi, '{').trim();
sel = sel.replace(/::?[a-z-]+\s*(\{|$)/gi, '$1').trim();
try {

@@ -303,0 +303,0 @@ return document.querySelector(sel) != null;

Sorry, the diff of this file is not supported yet

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