From 79bcef0698aea475b26649794f1000358a69e998 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Mon, 11 Jan 2021 15:05:03 +0100 Subject: [PATCH] Remove unused console output --- jsx/meta.json | 19 ++++++++++++------- jsx/mod.ts | 3 --- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/jsx/meta.json b/jsx/meta.json index cb23bf3..9581233 100644 --- a/jsx/meta.json +++ b/jsx/meta.json @@ -1,9 +1,14 @@ { - "name": "@denreg-jsx", - "version": "0.1.0", - "description": "Denreg JSX renderer", - "author": "Fabian Stamm ", - "contributors": [], - "deprecated": false, - "files": ["**/*.ts", "**/*.js", "tsconfig.json", "README.md"] + "name": "@denreg-jsx", + "version": "0.1.1", + "description": "Denreg JSX renderer", + "author": "Fabian Stamm ", + "contributors": [], + "deprecated": false, + "files": [ + "**/*.ts", + "**/*.js", + "tsconfig.json", + "README.md" + ] } diff --git a/jsx/mod.ts b/jsx/mod.ts index 36c0320..8838e0f 100644 --- a/jsx/mod.ts +++ b/jsx/mod.ts @@ -83,7 +83,6 @@ async function renderHTML(element: Element) { if (typeof element.component !== "string") throw new Error("Internal consistency error"); - console.log("Element:", element.component); let props = ""; for (const key in element.props) { @@ -101,7 +100,6 @@ async function renderHTML(element: Element) { inner = element.props["innerHTML"]; } else { const children = cleanChildren(element.children); - if (tag == "body") console.log(element.children, children); inner = ( await Promise.all(children.map((child) => renderSSR(child))) ).join(""); @@ -114,7 +112,6 @@ async function renderCustom(element: Element) { if (typeof element.component === "string") throw new Error("Internal consistency error"); - console.log("Component:", element.component); const res = await Promise.resolve( element.component( {