Socket
Socket
Sign inDemoInstall

@sendgrid/helpers

Package Overview
Dependencies
Maintainers
13
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.5 to 6.2.0

helpers/html-to-plain-text.js

2

classes/response-error.js

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

let err = chalk.red(`${this.message} (${this.code})`);
if (Array.isArray(body.errors)) {
if (body && Array.isArray(body.errors)) {
body.errors.forEach(error => {

@@ -48,0 +48,0 @@ const message = chalk.yellow(error.message);

@@ -8,6 +8,4 @@ 'use strict';

return arr.map(item => {
if (typeof item === 'object' && item !== null) {
if (typeof item.toJSON === 'function') {
return item.toJSON();
}
if (typeof item === 'object' && item !== null && typeof item.toJSON === 'function') {
return item.toJSON();
}

@@ -14,0 +12,0 @@ return item;

{
"name": "@sendgrid/helpers",
"description": "SendGrid NodeJS internal helpers",
"version": "6.1.5",
"version": "6.2.0",
"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