hyperstream
Advanced tools
Comparing version 1.1.0 to 1.2.0
11
index.js
@@ -102,3 +102,12 @@ var trumpet = require('trumpet'); | ||
} | ||
else elem.setAttribute(prop, value[prop]); | ||
else { | ||
var vp = value[prop]; | ||
if (vp && (vp.append || vp.prepend)) { | ||
var cur = elem.getAttribute(prop) || ''; | ||
if (vp.append) cur += vp.append; | ||
if (vp.prepend) cur = vp.prepend + cur; | ||
elem.setAttribute(prop, cur); | ||
} | ||
else elem.setAttribute(prop, vp); | ||
} | ||
}); | ||
@@ -105,0 +114,0 @@ } |
{ | ||
"name": "hyperstream", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "stream html into html at a css selector", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
29823
45
712
117