@wrongstack/tools 0.41.0 → 0.51.3
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.map +1 -1
- package/dist/bash.js +3 -2
- package/dist/bash.js.map +1 -1
- package/dist/builtin.js +3 -2
- package/dist/builtin.js.map +1 -1
- package/dist/diff.js.map +1 -1
- package/dist/document.js.map +1 -1
- package/dist/edit.js.map +1 -1
- package/dist/exec.js +3 -2
- package/dist/exec.js.map +1 -1
- package/dist/fetch.js.map +1 -1
- package/dist/format.js +3 -2
- package/dist/format.js.map +1 -1
- package/dist/git.js +3 -2
- package/dist/git.js.map +1 -1
- package/dist/glob.js.map +1 -1
- package/dist/grep.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/install.js +3 -2
- package/dist/install.js.map +1 -1
- package/dist/lint.js +3 -2
- package/dist/lint.js.map +1 -1
- package/dist/logs.js.map +1 -1
- package/dist/outdated.js.map +1 -1
- package/dist/pack.js +3 -2
- package/dist/pack.js.map +1 -1
- package/dist/patch.js.map +1 -1
- package/dist/read.js.map +1 -1
- package/dist/replace.js.map +1 -1
- package/dist/scaffold.js.map +1 -1
- package/dist/test.js +3 -2
- package/dist/test.js.map +1 -1
- package/dist/tree.js.map +1 -1
- package/dist/typecheck.js +3 -2
- package/dist/typecheck.js.map +1 -1
- package/dist/write.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as fs4 from 'node:fs/promises';
|
|
2
2
|
import * as path from 'node:path';
|
|
3
3
|
import { resolve, sep, dirname } from 'node:path';
|
|
4
|
-
import
|
|
4
|
+
import * as Core from '@wrongstack/core';
|
|
5
|
+
import { atomicWrite, unifiedDiff, detectNewlineStyle, normalizeToLf, toStyle, compileGlob, buildChildEnv, loadPlan, emptyPlan, clearPlan, savePlan, getPlanTemplate, addPlanItem, deriveTodosFromPlanItem, removePlanItem, setPlanItemStatus, formatPlan, resolveWstackPaths } from '@wrongstack/core';
|
|
5
6
|
import { spawn, execFileSync, spawnSync } from 'node:child_process';
|
|
6
7
|
import * as os from 'node:os';
|
|
7
8
|
import * as dns from 'node:dns/promises';
|
|
@@ -154,7 +155,7 @@ ${tail}`;
|
|
|
154
155
|
}
|
|
155
156
|
function normalizeCommandOutput(raw, opts = {}) {
|
|
156
157
|
if (!raw) return raw;
|
|
157
|
-
let text = stripAnsi(raw);
|
|
158
|
+
let text = Core.stripAnsi(raw);
|
|
158
159
|
text = collapseCarriageReturns(text);
|
|
159
160
|
text = text.replace(/[ \t]+$/gm, "");
|
|
160
161
|
text = collapseConsecutiveDuplicates(text);
|