campaign
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -0,1 +1,5 @@ | ||
# 4.1.3 Image Hero | ||
- Introduced ability to set `headerImage` on the `model` for individual emails | ||
# 4.1.2 Friendly Foe | ||
@@ -2,0 +6,0 @@ |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"licenses": "MIT", | ||
@@ -17,0 +17,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
![campaign.png][9] ![ga](https://ga-beacon.appspot.com/UA-35043128-6/campaign/readme?pixel) | ||
![campaign.png][9] | ||
@@ -3,0 +3,0 @@ [![help me on gittip](http://gbindex.ssokolow.com/img/gittip-43x20.png)](https://www.gittip.com/bevacqua/) [![flattr.png](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=nzgb&url=https%3A%2F%2Fgithub.com%2Fbevacqua%2Fcampaign) |
@@ -34,4 +34,5 @@ 'use strict'; | ||
encode(image.file, function (err, encoded) { | ||
if (err) { return transformed(err); } | ||
if (err) { | ||
transformed(err); return; | ||
} | ||
transformed(null, { | ||
@@ -64,5 +65,5 @@ name: image.name, | ||
contra.concurrent([ | ||
contra.curry(cacheHeader, model, options.headerImage), | ||
contra.curry(cacheHeader, model, 'headerImage' in model ? model.headerImage : options.headerImage), | ||
contra.curry(encodeImages, model) | ||
], done); | ||
}; |
@@ -9,6 +9,6 @@ 'use strict'; | ||
if (file in cache) { | ||
return next(); | ||
next(); return; | ||
} | ||
if (!file) { | ||
return done(); | ||
done(); return; | ||
} | ||
@@ -20,3 +20,3 @@ | ||
if (err) { | ||
return done(err); | ||
done(err); return; | ||
} | ||
@@ -23,0 +23,0 @@ cache[file] = { |
32463
291