Socket
Socket
Sign inDemoInstall

@sendgrid/helpers

Package Overview
Dependencies
Maintainers
2
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.3 to 6.1.5

classes/mail.spec.js

4

classes/mail.js

@@ -58,3 +58,3 @@ 'use strict';

data = deepClone(data);
data = toCamelCase(data, ['substitutions', 'customArgs']);
data = toCamelCase(data, ['substitutions', 'customArgs', 'headers']);

@@ -543,3 +543,3 @@ //Extract properties from data

//Return as snake cased object
return toSnakeCase(json, ['substitutions', 'customArgs']);
return toSnakeCase(json, ['substitutions', 'customArgs', 'headers']);
}

@@ -546,0 +546,0 @@

@@ -50,3 +50,3 @@ 'use strict';

data = deepClone(data);
data = toCamelCase(data, ['substitutions', 'customArgs']);
data = toCamelCase(data, ['substitutions', 'customArgs', 'headers']);

@@ -263,5 +263,6 @@ //Extract properties from data

setSubstitutionWrappers(wrappers) {
if (typeof wrappers === 'undefined') {
if (typeof wrappers === 'undefined' || wrappers === null) {
return;
}
if (!Array.isArray(wrappers) || wrappers.length !== 2) {

@@ -318,3 +319,3 @@ throw new Error(

//Return as snake cased object
return toSnakeCase(json, ['substitutions', 'customArgs']);
return toSnakeCase(json, ['substitutions', 'customArgs', 'headers']);
}

@@ -321,0 +322,0 @@ }

{
"name": "@sendgrid/helpers",
"description": "SendGrid NodeJS internal helpers",
"version": "6.1.3",
"version": "6.1.5",
"author": "SendGrid <dx@sendgrid.com> (sendgrid.com)",

@@ -6,0 +6,0 @@ "contributors": [

@@ -35,5 +35,5 @@ [![BuildStatus](https://travis-ci.org/sendgrid/sendgrid-nodejs.svg?branch=master)](https://travis-ci.org/sendgrid/sendgrid-nodejs)

* [Feature Request](https://github.com/sendgrid/sendgrid-nodejs/tree/master/CONTRIBUTING.md#feature_request)
* [Bug Reports](https://github.com/sendgrid/sendgrid-nodejs/tree/master/CONTRIBUTING.md#submit_a_bug_report)
* [Improvements to the Codebase](https://github.com/sendgrid/sendgrid-nodejs/tree/master/CONTRIBUTING.md#improvements_to_the_codebase)
* [Feature Request](https://github.com/sendgrid/sendgrid-nodejs/tree/master/CONTRIBUTING.md#feature-request)
* [Bug Reports](https://github.com/sendgrid/sendgrid-nodejs/tree/master/CONTRIBUTING.md#submit-a-bug-report)
* [Improvements to the Codebase](https://github.com/sendgrid/sendgrid-nodejs/tree/master/CONTRIBUTING.md#improvements-to-the-codebase)

@@ -40,0 +40,0 @@ <a name="about"></a>

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