Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
async-client
Advanced tools
NodeJS library to send or receive async messages (independently of the technology (redis, activemq))
Now only support to Redis. In the future we'll add support to amqp protocol.
npm install --save https://github.com/Vizzuality/async-client-nodejs.git
You have examples in examples
folder. To execute example: node example/redis.js
Code:
'use strict';
const CHANNEL = 'myChannel';
function* iter(number) {
for (var i = 0; i < number; i++) {
yield i;
}
}
function* gen(number) {
for (var val of iter(number)) {
console.log(val);
}
}
var AsyncClient = require('../index');
var asyncClientPublish = new AsyncClient(AsyncClient.REDIS, {
host: 'localhost' // redis url
});
var asyncClientSubscriber = new AsyncClient(AsyncClient.REDIS, {
host: 'localhost'// redis url
});
var channelSubscribe = asyncClientSubscriber.toChannel(CHANNEL);
channelSubscribe.on('message', function*(channel, message) {
console.log('Message received: ' + message);
yield gen(message);
console.log('Message completed');
});
channelSubscribe.subscribe();
asyncClientPublish.toChannel(CHANNEL).emit(2);
asyncClientPublish.toChannel(CHANNEL).emit(5);
FAQs
NodeJS library to send or receive async messages (independently of the technology (redis, activemq))
We found that async-client 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.