jsx-async-runtime
Advanced tools
Comparing version 0.4.2 to 0.5.0
@@ -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": [ |
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
36669
1038