Socket
Socket
Sign inDemoInstall

@dibs-tech/mail-client

Package Overview
Dependencies
17
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.2.4 to 4.2.5

39

lib/index.js

@@ -10,3 +10,3 @@ const axios = require('axios');

export default async function sendTemplatedEmailNew(dibsStudioId, userid, templateName) {
export const sendTemplatedEmailNew = async (dibsStudioId, userid, templateName) => {
const testing = getStatusTesting();

@@ -44,3 +44,38 @@ const url = '/api/v1/transmissions/';

return valuetosend;
}
};
// export default async function sendTemplatedEmailNew(dibsStudioId, userid, templateName) {
// const testing = getStatusTesting();
// const url = '/api/v1/transmissions/';
// // const templateName = 'friend-referral';
// // const url = getApiUrl('/send-email-template');
// // const urlreferrer = getApiUrl('/create-friend-referral');
// const userinfo = {
// userid,
// friendEmail,
// friendName,
// };
// const datatosend = {
// dibsId: dibsStudioId,
// recipientInfo: userinfo,
// templateName,
// testing,
// source: 'widget',
// };
// let valuetosend = {};
// await axios
// .post(url, datatosend)
// .then(async () => {
// // await axios.post(url, datatosend).then((res) => {
// // const { data } = res;
// // valuetosend = data;
// // });
// console.log('sent the email');
// })
// .catch((error) => {
// valuetosend = error;
// });
// return valuetosend;
// }

3

package.json
{
"name": "@dibs-tech/mail-client",
"version": "4.2.4",
"version": "4.2.5",
"description": "A mail client implementation, using sparkpost",

@@ -35,1 +35,2 @@ "main": "index.js",

}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc