sendgrid-nodejs
sendgrid-nodejs copied to clipboard
The Official Twilio SendGrid Led, Community Driven Node.js API Library
## Use case Sending a transactional email (saved as Dynamic Template in SendGrid) with inlined images (to avoid remote images getting blocked by default on virtually 100% of modern email...
# Fixes # **Motivation** This PR addresses an inconsistency in the TypeScript type definition for the Attachment model that prevents proper use of TypeScript with the library. **Issue** The Attachment...
Is there a way using this API to remove an email from the global suppression list?
Hello, Currently I want to use @sendgrid/mail in [Bun environment](https://bun.sh) but it's impossible to do it. When I import the package it fires immediately an error : Bun version: 1.1.10...
# Fixes # - Made request function generic, so we can get correct response body type definitions. - Made ClientResponse generic. - Made ClientRequest generic. ### Checklist - [x] I...
Using this package with the latest axios with webpack results in an error, using a `.default` import which is officially supported by axios fixes that issue. For more context, we...
``` const signature = req.headers[ EventWebhookHeader.SIGNATURE().toLowerCase() ] as string; const timestamp = req.headers[ EventWebhookHeader.TIMESTAMP().toLowerCase() ] as string; const payload = JSON.stringify(req.body).split('},{').join('},\r\n{') + '\r\n'; if (!signature || !timestamp) { res.status(401).json(UNAUTHORIZED); return;...
# Fixes # - this fixes recent CVE-2024-39338 Server-Side Request Forgery in axios (https://github.com/advisories/GHSA-8hc4-vh64-cxmj) ### Checklist - [x] I acknowledge that all my contributions will be made under the project's...
The npm package [axios](https://www.npmjs.com/package/axios), versions `1.3.2` to `1.7.3`, has been reported to have a high-severity vulnerability - [Server-Side Request Forgery](https://github.com/advisories/GHSA-8hc4-vh64-cxmj). `sendgrid-client` is currently configured with `axios 1.6.8`  To avoid...
# Fixes # this PR updates the types for the ResponseError class. Previously, this caused typescript compiler failures that require casting this to any type. ``` Type error: Property 'toJSON'...