hyperx-to-snabbdom
Advanced tools
Comparing version 0.2.1 to 0.2.2
module.exports = function (h) { | ||
return function (tagName, attrs, children) { | ||
var data = { | ||
class: {}, | ||
props: {}, | ||
@@ -9,3 +8,4 @@ style: {}, | ||
hook: {}, | ||
on: {} | ||
on: {}, | ||
"class": {}, | ||
} | ||
@@ -22,3 +22,3 @@ | ||
for (var i = 0; i < cls.length; i++) { | ||
data.class[cls[i]] = true | ||
data["class"][cls[i]] = true | ||
} | ||
@@ -25,0 +25,0 @@ } else if (key === "style") { |
{ | ||
"name": "hyperx-to-snabbdom", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Hyperx to Snabbdom transform function.", | ||
@@ -20,2 +20,2 @@ "main": "index.js", | ||
"license": "MIT" | ||
} | ||
} |
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
2126