@jsenv/utils
Advanced tools
Comparing version 1.7.4 to 1.7.5
{ | ||
"name": "@jsenv/utils", | ||
"version": "1.7.4", | ||
"version": "1.7.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
import cluster from "node:cluster" | ||
import { fileURLToPath } from "node:url" | ||
import { parentPort } from "node:worker_threads" | ||
import { createLogger } from "@jsenv/logger" | ||
@@ -44,2 +45,7 @@ import { Abort, raceProcessTeardownEvents } from "@jsenv/abort" | ||
} | ||
const logger = createLogger({ logLevel }) | ||
if (parentPort) { | ||
enabled = false | ||
logger.warn(`Cannot make process reloadable as it is a worker`) | ||
} | ||
if (!enabled) { | ||
@@ -53,3 +59,2 @@ return { | ||
const logger = createLogger({ logLevel }) | ||
const startWorker = () => { | ||
@@ -56,0 +61,0 @@ cluster.fork() |
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
207377
95
6180