
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
promise-settled-aggregate
Advanced tools
Works like Promise.allSettled except it will reject with an AggregateError if some of the promises rejected, otherwise resolves with the fulfilled values.
Await an array of promises to be settled, then reject with an AggregateError upon failure, or resolve with an array of values upon success.
It works like Promise.allSettled except it will reject with an AggregateError if some of the promises are rejected, otherwise it resolves with the fulfilled values like Promise.all.
try {
const [a, b, c, d] = await promiseSettledAggregate([
Promise.reject(new Error("Boom")),
Promise.resolve(2),
Promise.resolve(true),
Promise.reject(new Error("Pow")),
]);
} catch (err) {
err.errors.forEach(console.error);
}
You may copy the source code (see dist for JS) directly into your project as this library is published under the Unlicense license.
You can also install it as a npm dependency:
npm install promise-settled-aggregate
FAQs
Works like Promise.allSettled except it will reject with an AggregateError if some of the promises rejected, otherwise resolves with the fulfilled values.
We found that promise-settled-aggregate 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.