lego-bigpipe
Advanced tools
Comparing version 0.1.1 to 0.1.2-1
@@ -18,3 +18,3 @@ 'use strict'; | ||
pagelet.js = data.js; | ||
bigpipe = '<script>lego.onPageletArrive(' + JSON.stringify(pagelet) + ')</script>'; | ||
bigpipe = '<script>lego.onPageletArrive(' + JSON.stringify(pagelet) + ');</script>'; | ||
} | ||
@@ -35,2 +35,5 @@ | ||
if (bigpipe) bigpipe += '\n'; | ||
if (quickling) quickling += '\n'; | ||
return { | ||
@@ -80,3 +83,3 @@ code: data.code, | ||
if (config.combo) { | ||
pre += ejs.render(styleLinkTpl, {locals: { | ||
pre += ejs.render(scriptLinkTpl, {locals: { | ||
url: genUrl(comboIds, '.css.js', config) | ||
@@ -86,3 +89,3 @@ }}); | ||
each(comboIds, function (id) { | ||
pre += ejs.render(styleLinkTpl, {locals: { | ||
pre += ejs.render(scriptLinkTpl, {locals: { | ||
url: genUrl(id, '.css.js', config) | ||
@@ -89,0 +92,0 @@ }}); |
{ | ||
"name": "lego-bigpipe", | ||
"version": "0.1.1", | ||
"version": "0.1.2-1", | ||
"description": "a bigpipe builder for scrat-lego", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -16,3 +16,3 @@ // (╯°□°)╯︵oƃǝ˥ | ||
r.should.have.property('code', u.code); | ||
r.should.have.property('bigpipe', '<h1>unit</h1><script>lego.onPageletArrive({"id":"unit","js":["c/c1/c1","c/c1/c11","c/c2/c2"]})</script>'); | ||
r.should.have.property('bigpipe', '<h1>unit</h1><script>lego.onPageletArrive({"id":"unit","js":["c/c1/c1","c/c1/c11","c/c2/c2"]});</script>'); | ||
r.should.have.property('quickling', 'lego.onPageletArrive({"id":"unit","js":["c/c1/c1","c/c1/c11","c/c2/c2"],"html":"<h1>unit</h1>","css":["c/c1/c1","c/c2/c2"]});'); | ||
@@ -39,3 +39,3 @@ }); | ||
r.should.have.property('code', u.code); | ||
r.should.have.property('bigpipe', '<script>lego.onPageletArrive({"id":"unit","js":["c/c1/c1","c/c1/c11","c/c2/c2"]})</script>'); | ||
r.should.have.property('bigpipe', '<script>lego.onPageletArrive({"id":"unit","js":["c/c1/c1","c/c1/c11","c/c2/c2"]});</script>'); | ||
r.should.have.property('quickling', 'lego.onPageletArrive({"id":"unit","js":["c/c1/c1","c/c1/c11","c/c2/c2"]});'); | ||
@@ -42,0 +42,0 @@ }); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11844
320
2
0