lody 0.63.2 → 0.64.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/chunks/{diff-line-counts-BLxwWP6r.js → diff-line-counts-ftjiViPL.js} +2 -2
- package/dist/chunks/directory-handle-GsTHlZO7.js +5809 -0
- package/dist/chunks/{review-viewer-doJoIJ3d.js → review-viewer-DB_tqQOE.js} +3 -3
- package/dist/diff-worker.js +1 -1
- package/dist/file-index-scan-worker.js +208 -0
- package/dist/index.js +71850 -89453
- package/package.json +10 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
2
|
import { mkdtempSync, writeFileSync, rmSync } from "node:fs";
|
|
3
|
-
import
|
|
3
|
+
import os from "node:os";
|
|
4
4
|
import path__default from "node:path";
|
|
5
5
|
function Diff() {
|
|
6
6
|
}
|
|
@@ -617,7 +617,7 @@ function gitNumstatLineCounts(oldText, newText) {
|
|
|
617
617
|
}
|
|
618
618
|
let dir;
|
|
619
619
|
try {
|
|
620
|
-
dir = mkdtempSync(path__default.join(
|
|
620
|
+
dir = mkdtempSync(path__default.join(os.tmpdir(), "lody-diff-"));
|
|
621
621
|
const oldPath = path__default.join(dir, "old");
|
|
622
622
|
const newPath = path__default.join(dir, "new");
|
|
623
623
|
writeFileSync(oldPath, oldText);
|