You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

jsx-dom

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-dom - npm Package Compare versions

Comparing version

to
8.0.1-beta.0

12

index.js

@@ -225,3 +225,3 @@ const keys = Object.keys

node = isComponentClass(tag)
? new tag({ ...tag.defaultProps, ...attr, children }).render()
? new tag({ ...attr, children }).render()
: tag({ ...attr, children })

@@ -377,9 +377,5 @@ }

node[key] = value
} else if (isBoolean(value)) {
if (value === true) {
attr(node, key, "")
}
node[key] = value
} else if (value != null) {
} else if (value === true) {
attr(node, key, "")
} else if (value !== false && value != null) {
if (node instanceof SVGElement && !nonPresentationSVGAttributes.test(key)) {

@@ -386,0 +382,0 @@ attr(node, normalizeAttribute(key, "-"), value)

@@ -105,3 +105,3 @@ const keys = Object.keys

node = isComponentClass(tag)
? new tag({ ...tag.defaultProps, ...attr, children }).render()
? new tag({ ...attr, children }).render()
: tag({ ...attr, children })

@@ -227,9 +227,5 @@ }

node[key] = value
} else if (isBoolean(value)) {
if (value === true) {
attr(node, key, "")
}
node[key] = value
} else if (value != null) {
} else if (value === true) {
attr(node, key, "")
} else if (value !== false && value != null) {
attr(node, key, value)

@@ -236,0 +232,0 @@ }

{
"name": "jsx-dom",
"version": "7.0.4",
"version": "8.0.1-beta.0",
"description": "JSX to document.createElement.",

@@ -5,0 +5,0 @@ "main": "index.js",