
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
await-task-queue
Advanced tools
Simple task queue that execute tasks consecutive but each add can be awaited to know when the added task is executed and get return data. A promise start to excecute when it is created that is why the promise itself is created by the queue.
import TaskQueue from './../src/task-queue.js';
let queue = TaskQueue();
async function example() {
queue.add((resolve) => resolve("Gris"))
.then((res) => console.log(res));
queue.add((resolve) => setTimeout(resolve, 200))
.then(() => console.log("Slept for 200ms"));
queue.add((resolve, reject) => reject("Failed"))
.then(()=>console.log("Shall never happen") )
.catch((e)=>console.log("Got error: ", e));
let result = await queue.add((resolve) => resolve("Await last"));
console.log(result);
}
example();
// Printout
// Gris
// Slept for 200ms
// Got error: Failed
// Await last
FAQs
Execute tasks consecutive while still being able to await
The npm package await-task-queue receives a total of 1 weekly downloads. As such, await-task-queue popularity was classified as not popular.
We found that await-task-queue 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
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.