UNPKG

pink-bears

Version:

Intelligent rate limiting middleware with MongoDB integration and caching for Node.js applications

13 lines (9 loc) 256 B
const { pushError } = require('./sqs'); const emitEvent = async (type, error) => { try { await pushError(type, error); } catch (error) { console.log(`Error while pushing ${type} `, error); } } module.exports = { emitEvent };