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

jsx-async-runtime

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-async-runtime - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0

9

dist/esm/index.js

@@ -12,4 +12,2 @@ // src/jsx/jsx-runtime.ts

props.children = finalChildren;
Object.freeze(finalChildren);
Object.freeze(props);
return {

@@ -136,2 +134,3 @@ type: "tag",

async function jsxToString(jsxElement) {
const $jsxToString = this?.jsxToString || jsxToString;
if (jsxElement === null) {

@@ -161,3 +160,3 @@ return "";

for (const child of element.children) {
const str = await jsxToString.call(this, child);
const str = await $jsxToString.call(this, child);
if (str.length > 0) {

@@ -176,3 +175,3 @@ result.push(str);

for (const child of element.children) {
const str = await jsxToString.call(this, child);
const str = await $jsxToString.call(this, child);
if (str.length > 0) {

@@ -187,3 +186,3 @@ children.push(str);

const jsxElementTag = await jsxElement.tag.call(this, jsxElement.props);
return await jsxToString.call(this, jsxElementTag);
return await $jsxToString.call(this, jsxElementTag);
}

@@ -190,0 +189,0 @@ return "";

@@ -12,4 +12,2 @@ // src/jsx/jsx-runtime.ts

props.children = finalChildren;
Object.freeze(finalChildren);
Object.freeze(props);
return {

@@ -16,0 +14,0 @@ type: "tag",

@@ -12,4 +12,2 @@ // src/jsx/jsx-runtime.ts

props.children = finalChildren;
Object.freeze(finalChildren);
Object.freeze(props);
return {

@@ -16,0 +14,0 @@ type: "tag",

{
"name": "jsx-async-runtime",
"version": "0.4.2",
"version": "0.5.0",
"description": "An asynchronous JSX runtime without dependencies to be used as html template engine.",

@@ -5,0 +5,0 @@ "keywords": [

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