Comparing version 0.2.4 to 0.3.0
@@ -17,2 +17,12 @@ "use strict"; | ||
import { pathToFileURL } from "url"; | ||
// src/utils.ts | ||
function stdout() { | ||
return console._stdout || process.stdout || void 0; | ||
} | ||
function stderr() { | ||
return console._stderr || process.stderr || void 0; | ||
} | ||
// src/worker.ts | ||
var [tinypoolPrivateData, workerData] = tinypoolData; | ||
@@ -110,6 +120,6 @@ process.__tinypool_state__ = { | ||
}; | ||
if (process.stdout.writableLength > 0) { | ||
if (stdout()?.writableLength > 0) { | ||
await new Promise((resolve) => process.stdout.write("", resolve)); | ||
} | ||
if (process.stderr.writableLength > 0) { | ||
if (stderr()?.writableLength > 0) { | ||
await new Promise((resolve) => process.stderr.write("", resolve)); | ||
@@ -116,0 +126,0 @@ } |
{ | ||
"name": "tinypool", | ||
"version": "0.2.4", | ||
"version": "0.3.0", | ||
"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", |
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
40157
1193