
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
throttle-messages-firebase
Advanced tools
Enables you to send notifications and emails throttled from firebase with simple Cloud Function implementation.
To queue the messages use:
const throttledMessages = require('../functions/npm-throttle-messages-firebase')
throttledMessages.queueMessage(admin, delay, type, address, payload, id)
.then(msgKey => {
console.log('message queued with key', msgKey)
process.exit();
})
It basically just creates an entry in Realtime Database under message_queue to be handled by cron.
queueMessage returns the id of the queued message and if you pass it as the id parameter next time you queue the message, it replaces the first one. Essencially throttling the message.
Here's an example of how to implement the Cloud Functions
export const messageQueueOnWrite = functions.database.ref('message_queue/{messageId}').onWrite((change, context) => throttledMessages.messageCreated(admin, change, context))
export const sendWithCron = functions.https.onRequest((req, res) => throttledMessages.cronCallback(admin, req, res))
Build process uses TypeScript
CC BY-SA
This project was brought to you by Makeable ApS
FAQs
Send messages throttled either as emails or notifications
We found that throttle-messages-firebase demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.