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

@astrojs/preact

Package Overview
Dependencies
Maintainers
4
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrojs/preact - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

4

dist/static-html.js
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 @@ },

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