@sendgrid/helpers
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -228,2 +228,9 @@ 'use strict'; | ||
addPersonalization(personalization) { | ||
//Convert to class if needed | ||
if (!(personalization instanceof Personalization)) { | ||
personalization = new Personalization(personalization); | ||
} | ||
//Apply substitutions and push to array | ||
this.applySubstitutions(personalization); | ||
@@ -279,4 +286,6 @@ this.personalizations.push(personalization); | ||
applySubstitutions(personalization) { | ||
personalization.reverseMergeSubstitutions(this.substitutions); | ||
personalization.setSubstitutionWrappers(this.substitutionWrappers); | ||
if (personalization instanceof Personalization) { | ||
personalization.reverseMergeSubstitutions(this.substitutions); | ||
personalization.setSubstitutionWrappers(this.substitutionWrappers); | ||
} | ||
} | ||
@@ -283,0 +292,0 @@ |
{ | ||
"name": "@sendgrid/helpers", | ||
"description": "SendGrid NodeJS internal helpers", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"author": "SendGrid <dx@sendgrid.com> (sendgrid.com)", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87755
2957