Skip to content

Commit

Permalink
Version Bump v3.0.10: Fix substitutions typo in Mail Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingserious committed Jul 23, 2016
1 parent 26d9eac commit 78f25a5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Add the following to your `package.json` file:
...
"dependencies": {
...
"sendgrid": "^3.0.8"
"sendgrid": "^3.0.10"
}
}
```
Expand Down
10 changes: 5 additions & 5 deletions lib/helpers/mail/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 78f25a5

Please sign in to comment.