
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
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.
promises-limiter
Advanced tools
PromisesLimiter is a class for limiting concurrent asynchronous requests, allowing them to be executed in batches with control over progress, handling of successful and failed requests.
PromisesLimiter is a class for limiting concurrent asynchronous requests, allowing them to be executed in batches with control over progress, handling of successful and failed requests.
This class allows you to execute asynchronous functions with a limit on the number of concurrent executions. You can configure delays between batches, success and error handlers, and receive progress updates during execution.
npm install promises-limiter
import PromisesLimiter from 'promises-limiter';
new PromisesLimiter<T, E>(
requests: AsyncFunction<T>[],
config?: Partial<LimitConfig<T, E>>
);
requests: An array of asynchronous functions to be executed.config: A configuration object with the following parameters:
maxConcurrent: Maximum number of concurrent requests (default is 10).delayBetweenBatches: Delay between batch executions in milliseconds (default is 0).progressiveDelayStep: Delay step added after each batch (default is 0).maxProgressiveDelay: Maximum delay for batches (default is 0).onSuccess: Function to handle successful results.onError: Function to handle errors.onProgress: Function called to track progress.onComplete: Function called when all requests are completed.cancel(): Cancels all requests that have not yet completed.
run(): Promise<{ success: T[]; failed: E[] }>: Starts executing requests and returns an object containing arrays of successful and failed results.
const requests: AsyncFunction<number>[] = [
async (signal) => { /* ... */ },
async (signal) => { /* ... */ },
// Other requests
];
const limiter = new PromisesLimiter<number, Error>(requests, {
maxConcurrent: 5,
delayBetweenBatches: 1000,
onSuccess: (result) => console.log('Success:', result),
onError: (error) => console.error('Error:', error),
onProgress: (progress) => console.log('Progress:', progress),
onComplete: (results) => console.log('Completed:', results),
});
limiter.run().then(({ success, failed }) => {
console.log('Completed successfully:', success);
console.log('Failed requests:', failed);
});
FAQs
PromisesLimiter is a class for limiting concurrent asynchronous requests, allowing them to be executed in batches with control over progress, handling of successful and failed requests.
We found that promises-limiter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

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.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.