Socket
Socket
Sign inDemoInstall

tinypool

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinypool - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

9

dist/esm/index.js

@@ -168,3 +168,3 @@ import {

minThreads: Math.max(cpuCount / 2, 1),
maxThreads: cpuCount * 1.5,
maxThreads: cpuCount,
idleTimeout: 0,

@@ -473,2 +473,7 @@ maxQueue: Infinity,

}
_ensureMaximumWorkers() {
while (this.workers.size < this.options.maxThreads) {
this._addNewWorker();
}
}
_ensureMinimumWorkers() {

@@ -623,3 +628,3 @@ while (this.workers.size < this.options.minThreads) {

this._removeWorker(taskInfo.workerInfo);
this._ensureMinimumWorkers();
this._ensureMaximumWorkers();
}

@@ -626,0 +631,0 @@ }

{
"name": "tinypool",
"version": "0.1.1",
"version": "0.1.2",
"description": "A minimal and tiny Node.js Worker Thread Pool implementation, a fork of piscina, but with fewer features",

@@ -5,0 +5,0 @@ "type": "module",

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