Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dibs-tech/mail-client

Package Overview
Dependencies
Maintainers
4
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dibs-tech/mail-client - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

8

index.js

@@ -153,3 +153,3 @@ const SparkPost = require('sparkpost');

*/
MailClient.prototype.sendCustomTemplatedEmail = function(recipient, subject, templateLink, data, options, cb) {
MailClient.prototype.sendCustomTemplatedEmail = function sendCustomTemplatedEmail(recipient, subject, templateLink, data, options, cb) {
axios

@@ -178,3 +178,3 @@ .get(templateLink)

* @instance
* @param {string} recepient the recip
* @param {string} recipient the recip
* @param {string} subject the subject

@@ -188,5 +188,3 @@ * @param {string} templateName the template name

*/
MailClient.prototype.sendTemplatedEmail = function sendTemplatedEmail(isCustomTemplate = false, recipient, subject, templateLink, data, options, cb) { // eslint-disable-line max-len
if (isCustomTemplate) return this.sendCustomTemplatedEmail(recipient, subject, templateLink, data, options, cb);
MailClient.prototype.sendTemplatedEmail = function sendTemplatedEmail(recipient, subject, templateName, data, options, cb) { // eslint-disable-line max-len
const source = fs.readFileSync(path.join(path.resolve('.'), 'email/templates/', `${templateName}.hbs`), 'utf-8');

@@ -193,0 +191,0 @@ const template = handlebars.compile(source);

{
"name": "@dibs-tech/mail-client",
"version": "1.5.2",
"version": "1.5.3",
"description": "A mail client implementation, using sparkpost",

@@ -5,0 +5,0 @@ "main": "index.js",

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