New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mqueue/null

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mqueue/null

Dead-end/testing MQueue adapter

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Dead-end (Null) Adapter for MQueue

A queue adapter for MQueue that goes nowhere - primarily intended for internal and testing purposes.

npm install --save @mqueue/queue @mqueue/null
# or use pnpm/yarn
import MQueue from "@mqueue/queue"; // or require("@mqueue/queue");
import { NullQueue } from "@mqueue/null"; // or require("@mqueue/null");

const outgoingQueue = new MQueue.Outgoing(new NullQueue.Outgoing());

outgoingQueue.sendMessage({
  headers: {
    "Account-ID": "123",
  },
  body: "...",
});

// ...

const incomingQueue = new MQueue.Incoming(new NullQueue.Incoming());

// Start listening to the queue
await incomingQueue.consume(async (payload) => {
  const topicOrQueueName = payload.transport.name;
  const headers = payload.message.headers;
  const data = await payload.message.json();
  await payload.accept(); // or await payload.reject();
  // ...
});

FAQs

Package last updated on 04 Oct 2025

Did you know?

Socket

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.

Install

Related posts