@bikeshaving/crank
Advanced tools
Comparing version 0.4.1 to 0.4.2
13
html.js
@@ -56,15 +56,18 @@ /// <reference types="html.d.ts" /> | ||
break; | ||
case name === "style": | ||
case name === "style": { | ||
if (typeof value === "string") { | ||
attrs.push(`style="${escape(value)}"`); | ||
} | ||
else { | ||
else if (typeof value === "object") { | ||
attrs.push(`style="${escape(printStyleObject(value))}"`); | ||
} | ||
break; | ||
case name === "className": | ||
if (!("class" in props)) { | ||
attrs.push(`class="${escape(value)}"`); | ||
} | ||
case name === "className": { | ||
if ("class" in props || typeof value !== "string") { | ||
continue; | ||
} | ||
attrs.push(`class="${escape(value)}"`); | ||
break; | ||
} | ||
case typeof value === "string": | ||
@@ -71,0 +74,0 @@ attrs.push(`${escape(name)}="${escape(value)}"`); |
{ | ||
"name": "@bikeshaving/crank", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Write JSX-driven components with functions, promises and generators.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://crank.js.org", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
666629
6573