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 1.1.2 to 1.2.0

.envrc

9

CHANGELOG.md

@@ -13,7 +13,14 @@ [antoinepairet]: https://github.com/antoinepairet

[anotherjazz]: https://github.com/anotherjazz
[jeduan]: https://github.com/jeduan
## 1.2.0 (2015-02-17)
* enhancement: [@jeduan][jeduan] Migrates back to Juice to support Node.js 0.12
* enhancement: [@jeduan][jeduan] Uses consolidate.js
* enhancement: [@gierschv][gierschv] Uses node-sass 2.0
*
## 1.1.0 (2014-07-05)
* enhancement: [@DesignByOnyx][DesignByOnyx]: Add support for filename prefix
* enhancement: [@skimmmer][skimmmer]: Add dust-linkedin template engine
* enhancement: [@anotherjazz][anotherjazz]: Add emblem template engine
* enhancement: [@anotherjazz][anotherjazz]: Add emblem template engine
* development: [@jksdua][jksdua]: Update node-sass version

@@ -20,0 +27,0 @@

4

lib/main.js

@@ -16,3 +16,3 @@ // node-email-templates

, async = require('async')
, juice = require('juice2')
, juice = require('juice')
, glob = require('glob')

@@ -79,3 +79,3 @@ , zlib = require('zlib')

// Inject available styles into HTML.
html = (stylesheet) ? juice(html, stylesheet) : html
html = (stylesheet) ? juice(html, {extraCss: stylesheet}) : html

@@ -82,0 +82,0 @@ // Return a compressed buffer if needed.

@@ -84,3 +84,3 @@ /**

function errorHandler(err) { cb(err) }
function successHandler(css) { cb(null, css)}
function successHandler(data) { cb(null, data.css)}

@@ -87,0 +87,0 @@ locals.data = source

{
"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": "1.1.2",
"version": "1.2.0",
"author": "Nick Baugh <niftylettuce@gmail.com>",

@@ -59,4 +59,4 @@ "contributors": [

"dependencies": {
"juice2": "^0.6.0",
"consolidate": "^0.10.0",
"juice": "^1.0.0",
"consolidate": "^0.11.0",
"async": "^0.9.0",

@@ -69,4 +69,4 @@ "underscore": "^1.6.0",

"postmark": "^0.1.8",
"mocha": "^1.19.0",
"chai": "^1.9.1",
"mocha": "^2.1.0",
"chai": "^2.0.0",
"mkdirp": "^0.3.5",

@@ -83,5 +83,5 @@ "rimraf": "^2.2.8",

"styl": "^0.2.7",
"node-sass": "^0.9.3",
"node-sass": "^2.0.1",
"sinon": "^1.10.2",
"sinon-chai": "^2.5.0",
"sinon-chai": "^2.7.0",
"istanbul": "^0.3.2"

@@ -88,0 +88,0 @@ },

@@ -8,2 +8,3 @@

[![Test Coverage][coveralls-image]][coveralls-url]
[![Static Analysis][codeclimate-image]][codeclimate-url]
[![MIT License][license-image]][license-url]

@@ -27,3 +28,2 @@ [![Gitter][gitter-image]][gitter-url]

* [Postmark](#postmark)
* [Lazyweb Requests](#lazyweb-requests)
* [Changelog](#changelog)

@@ -92,9 +92,14 @@ * [Contributors](#contributors)

2. Install the template engine you intend to use:
- `ejs`
- `jade`
- `swig`
- `handlebars`
- `emblem `
- `dust-linkedin`
- `ejs@^1.0.0`
- `jade@^1.3.1`
- `swig@^1.3.2`
- `handlebars@^1.3.0`
- `emblem@~0.3.16`
- `dust-linkedin@^2.4.0`
- `less@^1.7.0`
- `stylus@^^0.45.1`
- `styl@^0.2.7`
- `node-sass@^0.9.3`
```bash

@@ -193,3 +198,3 @@ npm install -S <engine>

this.batch = function(batch) {
batch(this.locals, this.send);
batch(this.locals, templatesDir, this.send);
};

@@ -500,3 +505,3 @@ };

[ejs]: https://github.com/visionmedia/ejs
[juice]: https://github.com/LearnBoost/juice
[juice]: https://github.com/Automattic/juice
[nodemailer]: https://github.com/andris9/Nodemailer

@@ -525,2 +530,4 @@ [postmark]: http://postmarkapp.com/

[travis-image]: http://img.shields.io/travis/niftylettuce/node-email-templates.svg?style=flat
[codeclimate-image]: http://img.shields.io/codeclimate/github/niftylettuce/node-email-templates.svg?style=flat
[codeclimate-url]: https://codeclimate.com/github/niftylettuce/node-email-templates?branch=master
[coveralls-image]: https://img.shields.io/coveralls/niftylettuce/node-email-templates.svg?style=flat

@@ -527,0 +534,0 @@ [coveralls-url]: https://coveralls.io/r/niftylettuce/node-email-templates?branch=master

@@ -97,3 +97,3 @@ var emailTemplates = require('../lib/main')

expect(html).to.equal(
'<html><body><h4 style=\"color: #ccc;\">test</h4></body></html>')
'<h4 style=\"color: #ccc;\">test</h4>')
done()

@@ -117,3 +117,3 @@ })

expect(html).to.equal(
'<html><body><h4 style=\"color: #ccc;\">test</h4></body></html>')
'<h4 style=\"color: #ccc;\">test</h4>')
done()

@@ -140,3 +140,3 @@ })

expect(html).to.equal(
'<html><body><h4 style=\"color: #ccc;\">test</h4></body></html>')
'<h4 style=\"color: #ccc;\">test</h4>')
done()

@@ -143,0 +143,0 @@ })

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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