Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.catch(function (err) {
if (err instanceof pAny.AggregateError) {
for (const e of err) {
throw e;
}
} else {
throw err;
}
});