Comparing version 0.2.3 to 0.2.4
@@ -728,2 +728,8 @@ "use strict"; | ||
constructor(options = {}) { | ||
if (options.minThreads !== void 0 && options.minThreads > 0 && options.minThreads < 1) { | ||
options.minThreads = Math.max(1, Math.floor(options.minThreads * cpuCount)); | ||
} | ||
if (options.maxThreads !== void 0 && options.maxThreads > 0 && options.maxThreads < 1) { | ||
options.maxThreads = Math.max(1, Math.floor(options.maxThreads * cpuCount)); | ||
} | ||
super({ ...options, name: "Tinypool" }); | ||
@@ -730,0 +736,0 @@ __privateAdd(this, _pool, void 0); |
{ | ||
"name": "tinypool", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"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", |
@@ -16,5 +16,5 @@ # Tinypool - the node.js worker pool ๐งต | ||
*In case you need more tiny libraries like tinypool or tinyspy, please consider submitting an [RFC](https://github.com/tinylibs/rfcs)* | ||
_In case you need more tiny libraries like tinypool or tinyspy, please consider submitting an [RFC](https://github.com/tinylibs/rfcs)_ | ||
## Docs | ||
Read **[full docs](https://github.com/aslemammad/tinypool#readme)** on GitHub. |
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
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
39980
1185