
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Rabbitode is a probject created to provide a simple interface in order to work with the AMQP interface to rabbitmq. RabbitMQ is an events broker that allows us to send a recieve events between producers and consumers via an event queue.
npm install rabbitodeIn order for this project to run you must have a working instance of rabbitmq on your machine or server.
I reccomend docker for local development.
docker run -p 5672:5672 -d --rm --name rabbit rabbitmq:3
import { RabbitMqInterface } from 'rabbitode';
const myConnection = new RabbitMqInterface();
myConnection.setRabbitUri('http://myconnection')
const handleConsume = channel => msg => {
console.log(myConnection.decodeToString(msg))
channel.ack(msg);
};
myConnection.sendDirect({
exchangeName: 'direct_test_exchange',
routingKey: `direct_test_queue`,
content: {
message: `this is a direct test message`
}
});
myConnection.startDirectConsumer({
exchangeName: 'direct_test_exchange',
exchangeType: 'direct',
queueName: 'direct_test_queue',
consumerCallback: handleConsume,
});
rabbitInterface.sendDirect({
exchangeName: 'direct_test_exchange',
routingKey: `direct_test_queue`,
content: {
message: `this is a test message for direct stuff ${variable}`
}
});
rabbitInterface.sendFanout({
exchangeName: 'fanout_test_exchange',
routingKey: ``, // leave this blank with a fanour
content: `this is a test message for fanouts: ${count}`
// will return undefined with decodeToJSON as its a string
});
rabbitInterface.sendTopic({
exchangeName: 'topic_test_exchange',
routingKey: `test.test`,
content: `this is a test message for topics: ${count}`
});
rabbitInterface
.startDirectConsumer({
exchangeName: 'direct_test_exchange',
exchangeType: 'direct',
queueName: 'direct_test_queue',
consumerCallback: handleConsume,
});
rabbitInterface
.startFanoutConsumer({
exchangeName: 'fanout_test_exchange',
exchangeType: 'fanout',
queueName: '',
consumerCallback: handleConsume,
});
// the topics this consumer will listen for given in the routing key
const myTopics = ['test.*', '*.test'];
rabbitInterface
.startTopicConsumer({
exchangeName: 'topic_test_exchange',
exchangeType: 'topic',
consumerCallback: handleConsume,
}, myTopics);
//MUST CONTAIN CALLBACKS
const handleConsume = channel => msg => {
console.log(rabbitInterface.decodeToString(msg));
console.log(rabbitInterface.decodeToJson(msg));
//console.log(msg.fields.routingKey); topics only really
channel.ack(msg);
};
myConnection.setRabbitUri('http://mylocation');
myConnection.enableDebugging();
myConnection.disableDebugging();
myConnection.decodeToJson(message);
myConnection.decodeToString(message);
Copyright 2018 Evan Burbidge
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A client wrapper to allow the usage of rabbitmq, amqplib with nodejs
The npm package rabbitode receives a total of 25 weekly downloads. As such, rabbitode popularity was classified as not popular.
We found that rabbitode 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
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.