@astrojs/preact
Advanced tools
Comparing version 2.2.0 to 2.2.1
import { h } from "preact"; | ||
const StaticHtml = ({ value, name, hydrate }) => { | ||
const StaticHtml = ({ value, name, hydrate = true }) => { | ||
if (!value) | ||
return null; | ||
const tagName = hydrate === false ? "astro-static-slot" : "astro-slot"; | ||
const tagName = hydrate ? "astro-slot" : "astro-static-slot"; | ||
return h(tagName, { name, dangerouslySetInnerHTML: { __html: value } }); | ||
@@ -7,0 +7,0 @@ }; |
{ | ||
"name": "@astrojs/preact", | ||
"description": "Use Preact components within Astro", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"type": "module", | ||
@@ -41,3 +41,3 @@ "types": "./dist/index.d.ts", | ||
"preact": "^10.7.3", | ||
"astro": "2.5.0", | ||
"astro": "2.5.6", | ||
"astro-scripts": "0.0.14" | ||
@@ -44,0 +44,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
22780