
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Agent-based task flow framework for Node.js
npm install -save transgate
null indicates the terminator.If the agent receives null as an item, sends null to all next gates and closes itself.
receive Promise method that resolves an item.send Promise method with argument an item. send resolves when completes to write the item.Agent class and overrides async main(item, outGate) method to process an item and send it to outGate.new YourAgent(inGate, outGate). If the outGate is plural, it need be replaced with key-value-based { outGate1, outGate2 } in order to have async main(item, { outGate1, outGate2 }).async before() to launch it and async after() to shut down it.To start agents is calling Agent.all(...yourAgents) Promise method. If you use any daemons in some gates, They should be shut down after all Promise has done.
There are the following gates in this library.
ValueAdd1 : item.value + 1const {
Agent,
JointGate,
MemoryGate,
StdoutGate,
} = require('transgate');
class ValueAdd1 extends Agent {
async main(item, stdoutGate) {
item.value += 1;
stdoutGate.send(item);
}
}
const inputGate = new MemoryGate([
{ value: 1 }, { value: 2 }, { value: 3 }, { value: 4 }
]);
const joint = new JointGate();
const stdoutGate = new StdoutGate();
Agent.all(
Agent.create(inputGate, joint, async (item) => {
item.value *= 2;
return item;
}),
new ValueAdd1(joint, stdoutGate),
)
.catch(err => {
console.error(err);
});
{"value":3}
{"value":5}
{"value":7}
{"value":9}
FAQs
Agent-based task flow framework
We found that transgate 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.