Skip to content

Commit

Permalink
Merge pull request #9 from Notificare/html-to-text-4
Browse files Browse the repository at this point in the history
Upgraded html-to-text dependency
  • Loading branch information
andris9 committed Jun 26, 2018
2 parents 291e6a1 + a309045 commit b6bea30
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
@@ -1,8 +1,8 @@
language: node_js
node_js:
- "0.10"
- 0.12
- iojs
- "4"
- "6"
- "8"

before_install:
- npm install -g grunt-cli
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# CHANGELOG

## v2.2.0 2018-06-26

Upgraded node-html-text to 4.0.0
Updated dev dependencies
Deprecate Node versions < 4

## v2.1.0 2016-04-11

Upgraded node-html-text
Expand Down
17 changes: 10 additions & 7 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "nodemailer-html-to-text",
"version": "2.1.0",
"version": "3.0.0",
"description": "Generate text content from html for Nodemailer e-mails",
"main": "src/nodemailer-html-to-text.js",
"directories": {
Expand All @@ -23,13 +23,16 @@
},
"homepage": "https://github.com/andris9/nodemailer-html-to-text",
"dependencies": {
"html-to-text": "^2.1.0"
"html-to-text": "^4.0.0"
},
"devDependencies": {
"chai": "~3.5.0",
"grunt": "~1.0.1",
"grunt-contrib-jshint": "~1.0.0",
"grunt-mocha-test": "~0.12.7",
"mocha": "^2.4.5"
"chai": "~4.1.2",
"grunt": "~1.0.3",
"grunt-contrib-jshint": "~1.1.0",
"grunt-mocha-test": "~0.13.3",
"mocha": "^5.2.0"
},
"engines": {
"node": ">= 4.0.0"
}
}
4 changes: 2 additions & 2 deletions src/nodemailer-html-to-text.js
@@ -1,12 +1,12 @@
'use strict';

var converter = require('html-to-text');
const converter = require('html-to-text');

module.exports.htmlToText = function(options) {
options = options || {};

return function(mail, done) {
var handler = new HTMLToText(options);
const handler = new HTMLToText(options);
handler.process(mail, done);
};
};
Expand Down

0 comments on commit b6bea30

Please sign in to comment.