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

@techie04/xpresser-mailer

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@techie04/xpresser-mailer - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

3

package.json
{
"name": "@techie04/xpresser-mailer",
"version": "0.1.2",
"version": "0.1.3",
"description": "Mailer Plugin for xpresser",

@@ -17,3 +17,2 @@ "main": "index.js",

"dependencies": {
"local-pkg": "^0.4.0",
"nodemailer": "^6.7.0"

@@ -20,0 +19,0 @@ },

import { MailProvider } from "../MailProvider";
import nodemailer from "nodemailer";
import nodemailer, { SendMailOptions } from "nodemailer";
declare const AwsSesProvider: MailProvider<nodemailer.Transporter<any>, import("nodemailer/lib/mailer").Options>;
export = AwsSesProvider;
export default AwsSesProvider;
/**
* Send mail via Aws-SES
* Helper function with types.
* @param message
*/
export declare function sendMailViaAwsSES(message: SendMailOptions): Promise<any>;

@@ -5,4 +5,7 @@ "use strict";

};
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendMailViaAwsSES = void 0;
const MailProvider_1 = require("../MailProvider");
const nodemailer_1 = __importDefault(require("nodemailer"));
const index_1 = require("../index");
// -------- Creating a provider. ---------

@@ -46,2 +49,11 @@ const AwsSesProvider = new MailProvider_1.MailProvider("aws", {

});
module.exports = AwsSesProvider;
exports.default = AwsSesProvider;
/**
* Send mail via Aws-SES
* Helper function with types.
* @param message
*/
function sendMailViaAwsSES(message) {
return (0, index_1.sendMail)(message, AwsSesProvider.name);
}
exports.sendMailViaAwsSES = sendMailViaAwsSES;
import { MailProvider } from "../MailProvider";
import { Message, ServerClient } from "postmark";
declare const _default: MailProvider<ServerClient, Message>;
export default _default;
declare const PostmarkProvider: MailProvider<ServerClient, Message>;
export default PostmarkProvider;
/**
* Send mail via Postmark
* Helper function with types.
* @param message
*/
export declare function sendMailViaPostmark(message: Message): Promise<any>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendMailViaPostmark = void 0;
const MailProvider_1 = require("../MailProvider");
exports.default = new MailProvider_1.MailProvider("postmark", {
const index_1 = require("../index");
const PostmarkProvider = new MailProvider_1.MailProvider("postmark", {
initialize(config) {

@@ -19,1 +21,11 @@ config.removeNullOrUndefined();

});
exports.default = PostmarkProvider;
/**
* Send mail via Postmark
* Helper function with types.
* @param message
*/
function sendMailViaPostmark(message) {
return (0, index_1.sendMail)(message, PostmarkProvider.name);
}
exports.sendMailViaPostmark = sendMailViaPostmark;
import { MailProvider } from "../MailProvider";
import nodemailer from "nodemailer";
import nodemailer, { SendMailOptions } from "nodemailer";
declare const SmtpProvider: MailProvider<nodemailer.Transporter<any>, import("nodemailer/lib/mailer").Options>;
export = SmtpProvider;
export default SmtpProvider;
/**
* Send mail via smtp
* Helper function with types.
* @param message
*/
export declare function sendMailViaSmtp(message: SendMailOptions): Promise<any>;

@@ -5,4 +5,7 @@ "use strict";

};
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendMailViaSmtp = void 0;
const MailProvider_1 = require("../MailProvider");
const nodemailer_1 = __importDefault(require("nodemailer"));
const index_1 = require("../index");
// -------- Creating a provider. ---------

@@ -39,2 +42,11 @@ const SmtpProvider = new MailProvider_1.MailProvider("smtp", {

});
module.exports = SmtpProvider;
exports.default = SmtpProvider;
/**
* Send mail via smtp
* Helper function with types.
* @param message
*/
function sendMailViaSmtp(message) {
return (0, index_1.sendMail)(message, SmtpProvider.name);
}
exports.sendMailViaSmtp = sendMailViaSmtp;
{
"xpresser": ">=0.24.0",
"namespace": "mailer",
"use_index": "plugin-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