unblock-event-loop
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "unblock-event-loop", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Unblock event loop with setImmediate", | ||
@@ -36,6 +36,15 @@ "main": "index.js", | ||
"homepage": "https://github.com/Gvozd/unblock-event-loop#readme", | ||
"devDependencies": { | ||
"@types/jest": "^29.4.0", | ||
"@types/node": "^18.14.2", | ||
"jest": "^29.4.3", | ||
"jest-expect-message": "^1.1.3", | ||
"ts-jest": "^29.0.5", | ||
"ts-node": "^10.9.1", | ||
"typescript": "4" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "jest" | ||
}, | ||
"readme": "# unblock-event-loop\nUnblock event loop with setImmediate\n" | ||
"readme": "# unblock-event-loop\nUnblock event loop with setImmediate\n\n# Usage\n\n```js\nimport {unblock} from 'unblock-event-loop';\n\nconst tasks = Array(1e3).fill().map(async () => {\n await unblock();\n // some code blocking the event loop\n});\n```\n" | ||
} |
# unblock-event-loop | ||
Unblock event loop with setImmediate | ||
# Usage | ||
```js | ||
import {unblock} from 'unblock-event-loop'; | ||
const tasks = Array(1e3).fill().map(async () => { | ||
await unblock(); | ||
// some code blocking the event loop | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
109958
13
383
1
14
7