Socket
Socket
Sign inDemoInstall

email-templates

Package Overview
Dependencies
Maintainers
3
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-templates - npm Package Compare versions

Comparing version 2.0.0-beta.3 to 2.0.0-beta.4

7

lib/email-template.js

@@ -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');

2

package.json
{
"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'))

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc