@thi.ng/hiccup
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="1.0.1"></a> | ||
## [1.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.0.0...@thi.ng/hiccup@1.0.1) (2018-02-08) | ||
**Note:** Version bump only for package @thi.ng/hiccup | ||
<a name="1.0.0"></a> | ||
@@ -8,0 +16,0 @@ # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@0.1.7...@thi.ng/hiccup@1.0.0) (2018-02-03) |
{ | ||
"name": "@thi.ng/hiccup", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "HTML/SVG/XML serialization of nested data structures, iterables & closures", | ||
@@ -29,3 +29,3 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@thi.ng/checks": "^1.1.6" | ||
"@thi.ng/checks": "^1.2.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "keywords": [ |
@@ -89,9 +89,11 @@ "use strict"; | ||
tag = tree[0]; | ||
let attribs = tree[1], body = tree[2], res = `<${tag}`; | ||
let attribs = tree[1]; | ||
let body = tree[2]; | ||
let res = `<${tag}`; | ||
for (let a in attribs) { | ||
if (attribs.hasOwnProperty(a)) { | ||
let v = attribs[a], isEvent = /^on\w+/.test(a); | ||
let v = attribs[a]; | ||
if (v != null) { | ||
if (is_function_1.isFunction(v)) { | ||
if (isEvent || (v = v(attribs)) == null) { | ||
if (/^on\w+/.test(a) || (v = v(attribs)) == null) { | ||
continue; | ||
@@ -98,0 +100,0 @@ } |
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
35781
307
Updated@thi.ng/checks@^1.2.0