inline-critical
Advanced tools
Comparing version 12.0.0 to 12.0.1
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26682
Updated@adobe/css-tools@^4.3.3
Updatedmeow@^13.2.0
Updatedpostcss@^8.4.38