@nuxt/icon
Advanced tools
Comparing version 1.5.7 to 1.5.8
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.5.7", | ||
"version": "1.5.8", | ||
"builder": { | ||
@@ -10,0 +10,0 @@ "@nuxt/module-builder": "0.8.4", |
@@ -36,7 +36,9 @@ import { addIcon, getIcon as _getIcon } from "@iconify/vue"; | ||
}; | ||
for (const styleSheet of document.styleSheets) { | ||
try { | ||
const rules = styleSheet.cssRules || styleSheet.rules; | ||
scanCssRules(rules); | ||
} catch { | ||
if (typeof document !== "undefined") { | ||
for (const styleSheet of document.styleSheets) { | ||
try { | ||
const rules = styleSheet.cssRules || styleSheet.rules; | ||
scanCssRules(rules); | ||
} catch { | ||
} | ||
} | ||
@@ -93,5 +95,6 @@ } | ||
async function mountCSS(icon) { | ||
if (selectors.has(selector.value)) { | ||
if (selectors.has(selector.value)) | ||
return; | ||
} | ||
if (typeof document === "undefined") | ||
return; | ||
const style = document.createElement("style"); | ||
@@ -98,0 +101,0 @@ style.textContent = getCSS(icon); |
{ | ||
"name": "@nuxt/icon", | ||
"packageManager": "pnpm@9.12.2", | ||
"version": "1.5.7", | ||
"version": "1.5.8", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "type": "module", |
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
80341
1650