email-templates
Advanced tools
Comparing version 2.0.0-beta.3 to 2.0.0-beta.4
@@ -129,11 +129,6 @@ 'use strict'; | ||
if (!style) return html; | ||
var juiceOptions = { | ||
extraCss: style | ||
}; | ||
if (_this4.options.juiceOptions) { | ||
debug('Using juice options ', _this4.options.juiceOptions); | ||
juiceOptions = _this4.options.juiceOptions || {}; | ||
juiceOptions.extraCss = (_this4.options.juiceOptions.extraCss || '') + style; | ||
} | ||
return (0, _juice2['default'])(html, juiceOptions); | ||
return _juice2['default'].inlineContent(html, style, _this4.options.juiceOptions || {}); | ||
}).tap(function () { | ||
@@ -140,0 +135,0 @@ return debug('Finished rendering HTML'); |
{ | ||
"name": "email-templates", | ||
"description": "Node.js module for rendering beautiful emails with ejs, jade, swig, hbs, or handlebars templates and email-friendly inline CSS using juice.", | ||
"version": "2.0.0-beta.3", | ||
"version": "2.0.0-beta.4", | ||
"author": "Nick Baugh <niftylettuce@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -86,11 +86,6 @@ import P from 'bluebird' | ||
if (!style) return html | ||
let juiceOptions = { | ||
extraCss: style | ||
} | ||
if (this.options.juiceOptions) { | ||
debug('Using juice options ', this.options.juiceOptions) | ||
juiceOptions = this.options.juiceOptions || {} | ||
juiceOptions.extraCss = (this.options.juiceOptions.extraCss || '') + style | ||
} | ||
return juice(html, juiceOptions) | ||
return juice.inlineContent(html, style, this.options.juiceOptions || {}) | ||
}) | ||
@@ -97,0 +92,0 @@ .tap(() => debug('Finished rendering HTML')) |
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
238291
1835