@sendgrid/helpers
Advanced tools
Comparing version 6.1.3 to 6.1.5
@@ -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> |
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
98424
66
3350