
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
promise-with-tracking
Advanced tools
A promise monkeypatch to provide functionality to keep track of how many promises are still pending.
Install it:
yarn add promise-with-tracking
or npm install promise-with-tracking
Pull it into your app. Monkeypatching will happen when the module is evaluated, so import it near the entrypoint.
require('promise-with-tracking');
Check in on some promise counts in your app:
if (Promise.getPendingPromises() > 0) {
console.log(`Uh oh, something isn't done`);
} else {
console.log(`All done`);
}
It can be notoriously tricky to track down when promises haven't resolved, and if so why. This module is useful for giving you a sense of code chunks that you need to take a closer look at. Here are some use cases for Promise.getPendingPromises()
:
FAQs
Monkeypatch to track pending promises
The npm package promise-with-tracking receives a total of 1 weekly downloads. As such, promise-with-tracking popularity was classified as not popular.
We found that promise-with-tracking 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.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.