Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unblock-event-loop

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unblock-event-loop - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

jest.config.ts

15

package.json
{
"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
});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc