
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.
discrete-queue
Advanced tools
Execute ordered list of functions. Add data-arguments and they will be passed to each function in the list:
import dQ from 'discrete-queue'
const car = { ... }; // Car object definition
dQ ( [ getTheCar, washIt, driveToTheGarage], car ).then ( result => .... )
/* ^ ^ ^
/* | Extra data argument |
| |
| Array of function returns -------+
|
+---> list of tasks ( functions )
*/
Install by writing in your terminal:
npm install discrete-queue --save
Once it has been installed, it can be used by writing this line of JavaScript:
import dQ from 'discrete-queue'
Every task function will receive two arguments. Task is an ask-for-promise object and controls execution of queue. Resolving the promise will start next task. Data is available for all functions in task list.
let myTask = ( task, data ) => {
// ... do something here
task.done ( 'myTaskResult' ) // finishing the task. Provide result if needed
// return task.promise // --> if function has asynchronous code and we have to wait until it is done
}
Find some examples in ./test folder.
(Nothing yet)
'discrete-queue' was created by Peter Naydenov.
'discrete-queue' is released under the MIT License.
FAQs
Execute list of asynchronous functions in order.
We found that discrete-queue demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

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.