
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@brighthustle/adonis-jobs
Advanced tools
@brighthustle/adonis-jobs is a powerful queue system designed specifically for AdonisJS applications, leveraging the reliability and scalability of BullMQ, a Redis-based queue for Node.js. Inspired from @rocketseat/adonis-bull, it offers enhanced functionality tailored to AdonisJS's ecosystem.
Begin by installing @brighthustle/adonis-jobs using npm:
npm install @brighthustle/adonis-jobs
After installation, configure the package to adapt it to your AdonisJS project:
node ace configure @brighthustle/adonis-jobs
Utilize the addTask method provided by the bull provider to enqueue jobs.
Example:
Please note that #app is an alia that was created by me, and isn't in adonis by default... So if you want to use it, you will need to add it in your tsconfig and package.json
import app from '@adonisjs/core/services/app'
import queue from '@brighthustle/adonis-jobs/services/main'
Generate new job classes using the node ace make:job {job} command.
Example:
// app/jobs/register_stripe_customer.ts
import { JobHandlerContract, Job } from '@brighthustle/adonis-jobs/types'
export type RegisterStripeCustomerPayload = {
userId: string
}
export default class RegisterStripeCustomer
implements JobHandlerContract<RegisterStripeCustomerPayload>
{
public async handle(job: Job<RegisterStripeCustomerPayload>) {
// Logic to register a Stripe customer
const { userId } = job.data
// Perform Stripe registration process
}
public async failed(job: Job<RegisterStripeCustomerPayload>) {
// Logic to handle failed job attempts
const { userId } = job.data
// Send notification or log failure
}
}
Register the new job into start/jobs.ts
// start/jobs.ts
const jobs: Record<string, Function> = {}
export { jobs }
Define the handle method to execute job logic and the failed method to handle failed attempts.
config/queue.ts file.Initiate the queue worker using the node ace queue:listen command.
Kumar Yash
FAQs
Bull Job Wrapper for adonis v5
We found that @brighthustle/adonis-jobs 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.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.