Comparing version 1.1.2 to 1.2.0
@@ -8,3 +8,3 @@ declare global { | ||
type IntrinsicElements = { | ||
[key: string]: AttributesType | {}; | ||
[tag in keyof ElementTagNameMap]: AttributesType | {}; | ||
}; | ||
@@ -11,0 +11,0 @@ } |
@@ -7,3 +7,3 @@ "use strict"; | ||
var key = _a[0], value = _a[1]; | ||
return key + "=\"" + value.toString().replace(/&/g, '&').replace(/"/g, '"') + "\""; | ||
return typeof value === 'boolean' ? key : key + "=\"" + value.toString().replace(/&/g, '&').replace(/"/g, '"') + "\""; | ||
}) | ||
@@ -10,0 +10,0 @@ .join(' ')); }; |
{ | ||
"name": "html-tsx", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Transform tsx to HTML string", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4612