@gera2ld/jsx-dom
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -1,2 +0,2 @@ | ||
/*! @gera2ld/jsx-dom v1.2.0 | ISC License */ | ||
/*! @gera2ld/jsx-dom v1.2.1 | ISC License */ | ||
'use strict'; | ||
@@ -84,2 +84,7 @@ | ||
if (Array.isArray(child)) { | ||
renderChildren(el, child); | ||
return; | ||
} | ||
if (typeof child !== 'object') { | ||
@@ -86,0 +91,0 @@ el.appendChild(document.createTextNode("" + child)); |
@@ -1,2 +0,2 @@ | ||
/*! @gera2ld/jsx-dom v1.2.0 | ISC License */ | ||
/*! @gera2ld/jsx-dom v1.2.1 | ISC License */ | ||
var propRules = ['innerHTML', 'innerText', 'textContent', { | ||
@@ -80,2 +80,7 @@ key: 'value', | ||
if (Array.isArray(child)) { | ||
renderChildren(el, child); | ||
return; | ||
} | ||
if (typeof child !== 'object') { | ||
@@ -82,0 +87,0 @@ el.appendChild(document.createTextNode("" + child)); |
@@ -1,2 +0,2 @@ | ||
/*! @gera2ld/jsx-dom v1.2.0 | ISC License */ | ||
/*! @gera2ld/jsx-dom v1.2.1 | ISC License */ | ||
(function (exports) { | ||
@@ -83,2 +83,7 @@ 'use strict'; | ||
if (Array.isArray(child)) { | ||
renderChildren(el, child); | ||
return; | ||
} | ||
if (typeof child !== 'object') { | ||
@@ -85,0 +90,0 @@ el.appendChild(document.createTextNode("" + child)); |
{ | ||
"name": "@gera2ld/jsx-dom", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Use JSX for HTML elements.", | ||
@@ -31,3 +31,4 @@ "author": "Gerald <i@gerald.top>", | ||
"publishConfig": { | ||
"access": "public" | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
@@ -41,11 +42,11 @@ "main": "dist/index.common.js", | ||
"devDependencies": { | ||
"@gera2ld/plaid": "~2.0.0", | ||
"@gera2ld/plaid-common-ts": "^2.0.5", | ||
"@gera2ld/plaid-rollup": "~2.0.0", | ||
"@gera2ld/plaid": "~2.0.7", | ||
"@gera2ld/plaid-common-ts": "~2.1.2", | ||
"@gera2ld/plaid-rollup": "~2.1.1", | ||
"del-cli": "^3.0.1", | ||
"husky": "^4.2.5" | ||
"husky": "^4.3.0" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.11.0" | ||
"@babel/runtime": "^7.11.2" | ||
} | ||
} |
@@ -9,3 +9,4 @@ interface JSXComponent { | ||
export declare type JSXElement = HTMLElement | DocumentFragment; | ||
export declare type JSXChild = string | boolean | JSXElement; | ||
export declare type JSXSingleChild = string | boolean | JSXElement; | ||
export declare type JSXChild = JSXSingleChild | JSXSingleChild[]; | ||
export declare function createElement(tag: string | JSXComponent, props?: JSXProps, ...children: JSXChild[]): JSXElement; | ||
@@ -12,0 +13,0 @@ export declare namespace createElement { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12012
280
0
Updated@babel/runtime@^7.11.2