
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Start/stop/pause/repeat: task runner in Javascript
//Condition: iterate 10 times
function condition(state){
//In 'state.index' is contained iteration
//number '0-based'
return state.index < 10;
}
//Task: do some work, then invoke "done"
function longTask(done, state){
//Do some stuff here...
console.log("Doing some stuff...");
//Argument "state" => ex: {
// iterations: 5, //Current iteration number
// delay: 10 //Delay (in ms) between iterations
//}
setTimeout(function(){
//Task completed: remember to invoke ALWAYS "done"
console.log("Task completed!");
done();
}, 1000);
}
//Setup: Create a "whiletrue" runner with 10 ms delay
var runner = whiletrue(condition, longTask, 10);
//Start execution
runner.run()
.then(function(){
console.log("Job completed");
});
//Start execution
runner.runParallel()
.then(function(){
console.log("Job completed");
});
FAQs
Start/stop/pause/repeat: task runner in Javascript
We found that whiletrue 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.