diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-07-23 08:09:03 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-07-23 08:09:03 -0700 |
commit | 78f25a5b160b817b77d2d1ff32cdc6851eb2797d (patch) | |
tree | 2bbd35245d8b44cba151bc19ae8f8e3f12a5adea | |
parent | 26d9eacc9c8cea96b258a0073104d1141c82ad00 (diff) | |
download | sendgrid-nodejs-78f25a5b160b817b77d2d1ff32cdc6851eb2797d.zip sendgrid-nodejs-78f25a5b160b817b77d2d1ff32cdc6851eb2797d.tar.gz sendgrid-nodejs-78f25a5b160b817b77d2d1ff32cdc6851eb2797d.tar.bz2 |
Version Bump v3.0.10: Fix substitutions typo in Mail Helperv3.0.10
-rw-r--r-- | CHANGELOG.md | 5 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | lib/helpers/mail/mail.js | 10 | ||||
-rw-r--r-- | package.json | 2 |
4 files changed, 12 insertions, 7 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index def3f03..2f5df3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log All notable changes to this project will be documented in this file. +## [3.0.10] - 2016-07-23 +### Fixed +- Fixed type in Mail Helper per [pull request #250](https://github.com/sendgrid/sendgrid-nodejs/pull/250) +- Thanks to [Cameron Wilby](https://github.com/cameronoca) for finding the issue! + ## [3.0.9] - 2016-07-20 ### Added - README updates @@ -38,7 +38,7 @@ Add the following to your `package.json` file: ... "dependencies": { ... - "sendgrid": "^3.0.8" + "sendgrid": "^3.0.10" } } ``` diff --git a/lib/helpers/mail/mail.js b/lib/helpers/mail/mail.js index f0815be..0642993 100644 --- a/lib/helpers/mail/mail.js +++ b/lib/helpers/mail/mail.js @@ -618,15 +618,15 @@ function Personalization() { return this.headers } - this.addSubstitution = function(substition) { - if(this.substitions == undefined){ - this.substitions = {} + this.addSubstitution = function(substitution) { + if(this.substitutions == undefined){ + this.substitutions = {} } - this.substitions[Object.keys(substition)[0]] = substition[Object.keys(substition)[0]] + this.substitutions[Object.keys(substitution)[0]] = substitution[Object.keys(substitution)[0]] } this.getSubstitutions = function() { - return this.substitions + return this.substitutions } this.addCustomArg = function(custom_arg) { diff --git a/package.json b/package.json index d35bed2..a85d2d4 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ ], "name": "sendgrid", "description": "Official SendGrid NodeJS library.", - "version": "3.0.9", + "version": "3.0.10", "homepage": "https://sendgrid.com", "repository": { "type": "git", |