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

nodemailer-sequelize-queue

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemailer-sequelize-queue - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

4

dist/index.js

@@ -29,3 +29,2 @@ "use strict";

}
console.log('initScheduler - - - --- - --', this.scheduled);
if (this.scheduled) {

@@ -41,2 +40,3 @@ return;

await this.queueModel.sync({
// eslint-disable-next-line no-console
logging: console.log,

@@ -59,2 +59,2 @@ force: false,

exports.default = NodemailerSequelizeQueue;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw4REFBa0c7QUFDbEcseUNBQXFEO0FBQ3JELDREQUFtQztBQUVuQyxNQUFxQix3QkFBd0I7SUFRM0MsWUFBWSxnQkFBa0MsRUFBRSxlQUFvQixFQUFFLE9BQWlCO1FBQ3JGLElBQUksQ0FBQyxZQUFZLENBQUMsZ0JBQWdCLENBQUMsQ0FBQTtRQUNuQyxJQUFJLENBQUMsZUFBZSxHQUFHLGVBQWUsQ0FBQTtRQUN0QyxJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQTtRQUN0QixJQUFJLENBQUMsU0FBUyxHQUFHLEtBQUssQ0FBQTtJQUN4QixDQUFDO0lBRU8sS0FBSyxDQUFDLFlBQVksQ0FBQyxnQkFBa0M7UUFDM0QsSUFBSSxDQUFDLFNBQVMsR0FBRyxnQkFBZ0IsQ0FBQyxTQUFTO1lBQ3pDLENBQUMsQ0FBQyxnQkFBZ0IsQ0FBQyxTQUFTO1lBQzVCLENBQUMsQ0FBQyxJQUFJLHFCQUFTL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ge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKCdFcnJvciBxdWV1ZWluZyBlbWFpbCcpXG4gICAgfVxuICAgIHJldHVybiBxdWV1ZUVudGl0eVxuICB9XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgSU5vZGVtYWlsZXJTZXF1ZWxpemVRdWV1ZSB7XG4gIHF1ZXVlTWFpbChkYXRhOiBBZGRRdWV1ZU1vZGVsQXR0cmlidXRlcyk6IFByb21pc2U8TW9kZWw8YW55LCBhbnk+PlxuICBpbml0U2NoZWR1bGVyKCk6IFByb21pc2U8dm9pZD5cbn1cblxuZXhwb3J0IHR5cGUgRGJDb25maWcgPSB7XG4gIHVzZXJuYW1lOiBzdHJpbmdcbiAgcGFzc3dvcmQ6IHN0cmluZ1xuICBkYXRhYmFzZTogc3RyaW5nXG4gIGhvc3Q6IHN0cmluZ1xuICBkaWFsZWN0OiBEaWFsZWN0XG4gIGxvZ2dpbmc/OiBib29sZWFuIHwgKChzcWw6IHN0cmluZywgdGltaW5nPzogbnVtYmVyKSA9PiB2b2lkKVxufVxuXG5leHBvcnQgdHlwZSBEYkNvbmdpZkluc3RhbmNlID0ge1xuICBjb25maWc/OiBEYkNvbmZpZ1xuICBzZXF1ZWxpemU/OiBTZXF1ZWxpemVcbn1cblxuZXhwb3J0IHR5cGUgT3B0aW9ucyA9IHtcbiAgbWF4QXR0ZW1wdHM/OiBudW1iZXJcbiAgZXhwcmVzc2lvbj86IHN0cmluZ1xuICBsb2dnaW5nPzogYm9vbGVhblxufVxuIl19

@@ -14,5 +14,3 @@ "use strict";

async sendMail(message) {
console.log('Sending mail', message);
const mailResult = await this.transporter.sendMail(message);
console.log('mailResult', mailResult);
return mailResult;

@@ -22,2 +20,2 @@ }

exports.default = Mailer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWFpbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL01haWxlci50cyJdL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kIGF1dG9tYXRpY2FsbHkgKi9cbiAgZmlsZW5hbWU/OiBzdHJpbmcgfCBmYWxzZVxuICAvKiogcGF0aCB0byBhIGZpbGUgb3IgYW4gVVJMIChkYXRhIHVyaXMgYXJlIGFsbG93ZWQgYXMgd2VsbCkgaWYgeW91IHdhbnQgdG8gc3RyZWFtIHRoZSBmaWxlIGluc3RlYWQgb2YgaW5jbHVkaW5nIGl0IChiZXR0ZXIgZm9yIGxhcmdlciBhdHRhY2htZW50cykgKi9cbiAgcGF0aD86IHN0cmluZyB8IFVybFxuICB1cmw/OiBzdHJpbmcgfCBVcmxcbn1cblxuZXhwb3J0IHR5cGUgTWVzc2FnZSA9IHtcbiAgZnJvbTogc3RyaW5nXG4gIHRvOiBzdHJpbmdcbiAgc3ViamVjdDogc3RyaW5nXG4gIGh0bWw6IHN0cmluZ1xuICBhdHRhY2htZW50cz86IEF0dGFjaG1lbnRbXVxufVxuIl19

@@ -20,3 +20,2 @@ "use strict";

this.logging = logging;
console.log('Scheduler - - - --- - --', this.expression);
this.runJobs();

@@ -39,3 +38,2 @@ this.queueModel = queueModel;

});
console.log('After job instantiation');
job.start();

@@ -66,6 +64,4 @@ // cron.schedule(this.expression, async () => {

}
console.log('processQueueMails - - - --- - --');
const mails = await this.queueModel.findAll(options);
// Remove from queue(prevents duplicate sends with multiple workers)
this.log(`Sending queued mail, number: ${mails?.length}`);
const models = [];

@@ -80,3 +76,2 @@ for (const mail of mails) {

catch (e) {
console.log(e);
await transaction.rollback();

@@ -93,3 +88,2 @@ throw e;

}
console.log(`Mail sent to ${model.email_to}`, 'debug');
// Remove from queue

@@ -138,2 +132,2 @@ await this.queueModel.destroy({

exports.default = Scheduler;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2NoZWR1bGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1NjaGVkdWxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpb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OV18NVswLTldKXxcXCpcXC8oWzAtOV18MVswLTldfDJbMC05XXwzWzAtOV18NFswLTldfDVbMC05XSkpIChcXCp8KFswLTldfDFbMC05XXwyWzAtM10pfFxcKlxcLyhbMC05XXwxWzAtOV18MlswLTNdKSkgKFxcKnwoWzEtOV18MVswLTldfDJbMC05XXwzWzAtMV0pfFxcKlxcLyhbMS05XXwxWzAtOV18MlswLTldfDNbMC0xXSkpIChcXCp8KFsxLTldfDFbMC0yXSl8XFwqXFwvKFsxLTldfDFbMC0yXSkpIChcXCp8KFswLTZdKXxcXCpcXC8oWzAtNl0pKSQvXG4gIClcbiAgcmV0dXJuIGNyb25yZWdleC50ZXN0KGZyZXEpXG59XG5cbmV4cG9ydCB0eXBlIExvY2tUeXBlID0gJ3RyYW5zYWN0aW9uJ1xuXG5leHBvcnQgZGVmYXVsdCBTY2hlZHVsZXJcbiJdfQ==
{
"name": "nodemailer-sequelize-queue",
"version": "0.0.17",
"version": "0.0.18",
"description": "Queue for mails with nodemailer and cron scheduler",

@@ -5,0 +5,0 @@ "main": "./dist/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