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

@promise-watch/smtp

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promise-watch/smtp - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

dist/index.d.ts

@@ -8,3 +8,3 @@ import { Notifier, SendOptions } from "@promise-watch/core";

constructor(transport: SMTPTransport | SMTPTransport.Options | string, sendInfo: Mail.Options);
send({ title, body }: SendOptions): Promise<void>;
send({ title, body, isSuccess }: SendOptions): Promise<void>;
}

@@ -10,7 +10,11 @@ "use strict";

}
async send({ title, body }) {
async send({ title, body, isSuccess }) {
const subject = isSuccess ? `${title} has recovered.` : `${title} seems down!`;
await this.transporter.sendMail({
subject: title,
text: body,
html: `<p>${body}</p>`,
subject,
text: `${subject}
${body}
`,
html: `<h2>${subject}</h2><p>${body}</p>`,
...this.sendInfo,

@@ -17,0 +21,0 @@ });

{
"name": "@promise-watch/smtp",
"version": "0.0.6",
"version": "0.0.7",
"main": "dist/index.js",

@@ -11,3 +11,3 @@ "author": "Jason Raimondi <jason@raimondi.us> (https://jasonraimondi.com)",

"dependencies": {
"@promise-watch/core": "^0.0.7",
"@promise-watch/core": "^0.0.8",
"nodemailer": "^6.7.2"

@@ -14,0 +14,0 @@ },

@@ -13,7 +13,11 @@ import { Notifier, SendOptions } from "@promise-watch/core";

async send({ title, body }: SendOptions): Promise<void> {
async send({ title, body, isSuccess }: SendOptions): Promise<void> {
const subject = isSuccess ? `${title} has recovered.` : `${title} seems down!`;
await this.transporter.sendMail({
subject: title,
text: body,
html: `<p>${body}</p>`,
subject,
text: `${subject}
${body}
`,
html: `<h2>${subject}</h2><p>${body}</p>`,
...this.sendInfo,

@@ -20,0 +24,0 @@ });

Sorry, the diff of this file is not supported yet

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