Socket
Socket
Sign inDemoInstall

critical

Package Overview
Dependencies
496
Maintainers
3
Versions
109
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-17 to 2.0.0-18

2

package.json
{
"name": "critical",
"version": "2.0.0-17",
"version": "2.0.0-18",
"description": "Extract & Inline Critical-path CSS from HTML",

@@ -5,0 +5,0 @@ "author": "Addy Osmani",

@@ -211,4 +211,3 @@ const {EOL} = require('os');

if (target.uncritical) {
const uncriticalHref = normalizePath(path.relative(document.cwd, target.uncritical));
const uncriticalHref = normalizePath(path.relative(document.cwd, path.resolve(base, target.uncritical)));
// Only replace stylesheets if the uncriticalHref is inside document.cwd and replaceStylesheets is not set via options

@@ -215,0 +214,0 @@ if (!/^\.\.\//.test(uncriticalHref) && replaceStylesheets === undefined) {

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