Skip to content

Commit

Permalink
chore: bump deps and removed auto-bind, core bug with juice and web-r…
Browse files Browse the repository at this point in the history
…esource-inliner has been resolved
  • Loading branch information
niftylettuce committed Nov 27, 2019
1 parent 065c5fb commit da1f184
Show file tree
Hide file tree
Showing 3 changed files with 1,226 additions and 1,546 deletions.
21 changes: 10 additions & 11 deletions package.json
Expand Up @@ -16,40 +16,39 @@
"Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com)"
],
"dependencies": {
"@ladjs/i18n": "^1.2.1",
"@ladjs/i18n": "^2.0.0",
"@sindresorhus/is": "^1.2.0",
"auto-bind": "^2.1.1",
"consolidate": "^0.15.1",
"debug": "^4.1.1",
"get-paths": "^0.0.7",
"html-to-text": "^5.1.1",
"juice": "^5.2.0",
"juice": "^6.0.0",
"lodash": "^4.17.15",
"nodemailer": "^6.3.1",
"pify": "^4.0.1",
"preview-email": "^1.0.2"
},
"devDependencies": {
"@babel/cli": "^7.6.4",
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"@babel/cli": "^7.7.4",
"@babel/core": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"ava": "^2.4.0",
"cheerio": "^1.0.0-rc.2",
"codecov": "^3.6.1",
"cross-env": "^6.0.3",
"ejs": "^2.7.1",
"eslint": "^6.5.1",
"ejs": "^3.0.1",
"eslint": "^6.7.1",
"eslint-config-xo-lass": "^1.0.3",
"eslint-plugin-node": "^10.0.0",
"fixpack": "^2.3.1",
"husky": "^3.0.8",
"lint-staged": "^9.4.2",
"husky": "^3.1.0",
"lint-staged": "^9.4.3",
"nodemailer-sendgrid": "^1.0.3",
"nyc": "^14.1.1",
"pug": "^2.0.4",
"remark-cli": "^7.0.0",
"remark-cli": "^7.0.1",
"remark-preset-github": "^0.0.16",
"xo": "^0.25.3"
},
Expand Down
9 changes: 7 additions & 2 deletions src/index.js
Expand Up @@ -2,7 +2,6 @@ const fs = require('fs');
const path = require('path');
const I18N = require('@ladjs/i18n');
const _ = require('lodash');
const autoBind = require('auto-bind');
const consolidate = require('consolidate');
const debug = require('debug')('email-templates');
const getPaths = require('get-paths');
Expand Down Expand Up @@ -112,7 +111,13 @@ class Email {

debug('transformed config %O', this.config);

autoBind(this);
this.juiceResources = this.juiceResources.bind(this);
this.getTemplatePath = this.getTemplatePath.bind(this);
this.templateExists = this.templateExists.bind(this);
this.checkAndRender = this.checkAndRender.bind(this);
this.render = this.render.bind(this);
this.renderAll = this.renderAll.bind(this);
this.send = this.send.bind(this);
}

// shorthand use of `juiceResources` with the config
Expand Down

0 comments on commit da1f184

Please sign in to comment.