Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inline-critical

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inline-critical - npm Package Compare versions

Comparing version 12.0.0 to 12.0.1

4

index.js

@@ -100,3 +100,3 @@ /**

// Detect links to be removed
const [ref] = links;
const [reference] = links;
const removable = [...document.querySelectorAll('link[rel="stylesheet"], link[rel="preload"][as="style"]')].filter(

@@ -116,3 +116,3 @@ (link) => {

link.setAttribute('href', href);
ref.before(link);
reference.before(link);

@@ -119,0 +119,0 @@ if (noscriptFallback) {

{
"name": "inline-critical",
"version": "12.0.0",
"version": "12.0.1",
"description": "Inline critical-path css and load the existing stylesheets asynchronously",

@@ -41,3 +41,3 @@ "main": "index.js",

"dependencies": {
"@adobe/css-tools": "^4.3.1",
"@adobe/css-tools": "^4.3.3",
"clean-css": "^5.3.3",

@@ -53,6 +53,6 @@ "detect-indent": "^7.0.1",

"lodash.isstring": "^4.0.1",
"meow": "^13.1.0",
"meow": "^13.2.0",
"normalize-newline": "^4.1.0",
"picocolors": "^1.0.0",
"postcss": "^8.4.33",
"postcss": "^8.4.38",
"postcss-discard": "^2.0.0",

@@ -65,7 +65,7 @@ "reaver": "^2.0.0",

"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"fs-extra": "^11.2.0",
"jest": "^29.7.0",
"read-pkg-up": "^11.0.0",
"xo": "^0.56.0"
"xo": "^0.58.0"
},

@@ -99,4 +99,4 @@ "xo": {

"engines": {
"node": ">=18"
"node": ">=18.18"
}
}

@@ -63,3 +63,3 @@ import {readFileSync} from 'node:fs';

*/
const replacePartials = (source, dest, tag) => {
const replacePartials = (source, destination, tag) => {
if (!Array.isArray(tag)) {

@@ -71,3 +71,3 @@ tag = [tag];

// Only replace head so we don't mess with the orignal markup
const newTags = getPartials(dest, tag);
const newTags = getPartials(destination, tag);
const oldTags = getPartials(result, tag);

@@ -74,0 +74,0 @@

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