Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
communication-service
Advanced tools
A central communication jobs service for sending emails and SMS
A central communication jobs service for sending emails and SMS.
The service uses agenda to manage the jobs queue, set jobs, read jobs and execute any service can set a job on the agenda jobs queue (on mongodb-> jobs)
// interfaces
export interface ISendMailPayload {
from: string;
to: string;
subject: string;
template: string;
'h:X-Mailgun-Variables': indexedObject | string;
}
export interface ITwilioSMSPayload {
message: string;
phoneNumber: string;
}
// Exemple of a mail payload
const followerDataExemplePrm = {
to: user.email,
template: 'interview_edited',
subject:
'Interview edited by ' + (editor.name || editor.email) + ' on myInterview ',
'h:X-Mailgun-Variables': dataPrms
};
// Function that create a new job in the DB
(async function () {
const dataPrms = ISendMailPayload | ITwilioSMSPayload;
await agenda.start();
// add schedule to init job with data
await agenda.schedule(0 + 'days', 'NAME OF JOB', dataPrms);
})();
You can initialize the job from any project and the handler will execute the job.
mongodb+srv://dbdev:@myinterview-dev.jmzgt.mongodb.net/myinterview-dev?retryWrites=true&w=majority
mongo "mongodb+srv://myinterview-dev.jmzgt.mongodb.net/myinterview-dev" --username dbdev
FAQs
Pacote de comunicação entre a API com Aplicativos
The npm package communication-service receives a total of 0 weekly downloads. As such, communication-service popularity was classified as not popular.
We found that communication-service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.