@wrongstack/tools 0.299.0 → 0.300.0
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/audit.js +6 -2
- package/dist/bash.js +6 -2
- package/dist/builtin.js +1473 -295
- package/dist/codebase-index/import-extractor.d.ts +39 -0
- package/dist/codebase-index/index.js +1396 -255
- package/dist/codebase-index/languages.d.ts +24 -0
- package/dist/codebase-index/module-resolver.d.ts +78 -0
- package/dist/codebase-index/module-roots.d.ts +81 -0
- package/dist/codebase-index/parser-output.d.ts +29 -0
- package/dist/codebase-index/project-server.js +1379 -236
- package/dist/codebase-index/rs-parser.d.ts +22 -0
- package/dist/codebase-index/schema.d.ts +24 -1
- package/dist/codebase-index/worker.js +1381 -238
- package/dist/codebase-index/writer-graph-helpers.d.ts +17 -5
- package/dist/codebase-index/writer-ref-mapper.d.ts +3 -0
- package/dist/codebase-index/writer-schema.d.ts +15 -3
- package/dist/codebase-index/writer.d.ts +76 -3
- package/dist/exec.js +35 -2
- package/dist/format.js +6 -2
- package/dist/index.js +1473 -295
- package/dist/install.js +6 -2
- package/dist/json.js +51 -2
- package/dist/languages/index.js +6 -2
- package/dist/lint.js +6 -2
- package/dist/outdated.js +6 -2
- package/dist/pack.js +1473 -295
- package/dist/process-registry.d.ts +6 -0
- package/dist/process-registry.js +6 -2
- package/dist/ps-slash.js +6 -2
- package/dist/read.js +1387 -244
- package/dist/test.js +6 -2
- package/dist/tool-tier.js +1473 -295
- package/dist/typecheck.js +6 -2
- package/package.json +3 -3
- package/dist/codebase-index/refs-extractor.d.ts +0 -11
package/dist/test.js
CHANGED
|
@@ -669,7 +669,7 @@ var ProcessRegistryImpl = class {
|
|
|
669
669
|
const p = this.processes.get(pid);
|
|
670
670
|
if (!p) return false;
|
|
671
671
|
if (p.killed) return true;
|
|
672
|
-
if (p.protected) return false;
|
|
672
|
+
if (p.protected && opts.includeProtected !== true) return false;
|
|
673
673
|
if (opts.preserveBackground && p.background) return false;
|
|
674
674
|
const { force = false, graceMs = DEFAULT_GRACE_MS } = opts;
|
|
675
675
|
const isWin2 = os.platform() === "win32";
|
|
@@ -720,9 +720,13 @@ var ProcessRegistryImpl = class {
|
|
|
720
720
|
killAll(opts = {}) {
|
|
721
721
|
const pids = Array.from(this.processes.keys());
|
|
722
722
|
const killed = [];
|
|
723
|
+
const includeProtected = opts.includeProtected === true;
|
|
723
724
|
for (const pid of pids) {
|
|
724
725
|
const p = this.processes.get(pid);
|
|
725
|
-
if (
|
|
726
|
+
if (!p) continue;
|
|
727
|
+
if (p.protected && !includeProtected) continue;
|
|
728
|
+
if (opts.preserveBackground && p.background) continue;
|
|
729
|
+
if (this.kill(pid, opts)) killed.push(pid);
|
|
726
730
|
}
|
|
727
731
|
return killed;
|
|
728
732
|
}
|