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

honox

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

honox - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

22

dist/client/runtime.js
import { Suspense, use } from "hono/jsx/dom";
const buildCreateChildrenFn = (createElement) => {
const createElementFromHTMLElement = async (element) => {
const props = {
children: await createChildren(element.childNodes)
};
const attributes = element.attributes;
for (let i = 0; i < attributes.length; i++) {
props[attributes[i].name] = attributes[i].value;
}
return createElement(element.nodeName, props);
};
const createChildren = async (childNodes) => {

@@ -35,7 +45,3 @@ const children = [];

} else {
fallback.push(
await createElement(child2.nodeName, {
children: await createChildren(child2.childNodes)
})
);
fallback.push(await createElementFromHTMLElement(child2));
}

@@ -69,7 +75,3 @@ }

} else {
children.push(
await createElement(child.nodeName, {
children: await createChildren(child.childNodes)
})
);
children.push(await createElementFromHTMLElement(child));
}

@@ -76,0 +78,0 @@ }

{
"name": "honox",
"version": "0.1.2",
"version": "0.1.3",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "type": "module",

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