@techie04/xpresser-mailer
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
29247
1
497
0
- Removedlocal-pkg@^0.4.0
- Removedlocal-pkg@0.4.3(transitive)