@dev-pi2pie/word-counter 0.1.5-canary.5 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/bin.mjs
CHANGED
|
@@ -539,7 +539,7 @@ function resolveEnvConfig(env = process.env) {
|
|
|
539
539
|
if (contentGateMode !== void 0) {
|
|
540
540
|
config.contentGate = { mode: contentGateMode };
|
|
541
541
|
config.inspect = {
|
|
542
|
-
...config.inspect
|
|
542
|
+
...config.inspect,
|
|
543
543
|
contentGate: { mode: contentGateMode }
|
|
544
544
|
};
|
|
545
545
|
}
|
|
@@ -1271,7 +1271,7 @@ function meetsRequiredNodeVersion(version) {
|
|
|
1271
1271
|
return version.patch >= REQUIRED_NODE_VERSION.patch;
|
|
1272
1272
|
}
|
|
1273
1273
|
function resolveRuntimeSummary(overrides = {}) {
|
|
1274
|
-
const packageVersion = normalizePackageVersion(overrides.packageVersion ?? "0.1.5
|
|
1274
|
+
const packageVersion = normalizePackageVersion(overrides.packageVersion ?? "0.1.5");
|
|
1275
1275
|
const nodeVersion = overrides.nodeVersion ?? process.version;
|
|
1276
1276
|
const parsedNodeVersion = parseNodeVersion(nodeVersion);
|
|
1277
1277
|
return {
|
|
@@ -5362,7 +5362,7 @@ function normalizeVersion(value) {
|
|
|
5362
5362
|
return trimmed;
|
|
5363
5363
|
}
|
|
5364
5364
|
function resolvePackageVersion(options = {}) {
|
|
5365
|
-
const embeddedVersion = normalizeVersion(options.embeddedVersion ?? "0.1.5
|
|
5365
|
+
const embeddedVersion = normalizeVersion(options.embeddedVersion ?? "0.1.5");
|
|
5366
5366
|
if (embeddedVersion) return embeddedVersion;
|
|
5367
5367
|
const maxLevels = options.maxLevels ?? 8;
|
|
5368
5368
|
const resolveFromPath = options.resolveFromPath ?? resolveVersionFromPath;
|
|
@@ -5603,8 +5603,7 @@ function finalizeBatchSummaryFromFileResults(files, section, wcOptions, options
|
|
|
5603
5603
|
//#region src/cli/batch/jobs/queue.ts
|
|
5604
5604
|
async function runBoundedQueue(total, requestedJobs, worker) {
|
|
5605
5605
|
if (total === 0) return [];
|
|
5606
|
-
const
|
|
5607
|
-
const concurrency = Math.max(1, Math.min(total, safeRequestedJobs));
|
|
5606
|
+
const concurrency = Math.max(1, Math.min(total, Number.isFinite(requestedJobs) ? Math.floor(requestedJobs) : 1));
|
|
5608
5607
|
const results = Array.from({ length: total });
|
|
5609
5608
|
let nextIndex = 0;
|
|
5610
5609
|
const runWorker = async () => {
|