Socket
Socket
Sign inDemoInstall

@sendgrid/helpers

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sendgrid/helpers - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

13

classes/mail.js

@@ -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 @@

2

package.json
{
"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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc