@self-review/core 1.43.3 → 1.43.4
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/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1462,7 +1462,7 @@ function reconcileGuide(guide, diffFilePaths) {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
|
|
1464
1464
|
// src/git.ts
|
|
1465
|
-
import { execSync, exec, execFile } from "child_process";
|
|
1465
|
+
import { execSync, exec, execFile, execFileSync } from "child_process";
|
|
1466
1466
|
import { promisify } from "util";
|
|
1467
1467
|
|
|
1468
1468
|
// src/synthetic-diff.ts
|
|
@@ -1510,6 +1510,7 @@ new file mode 100644
|
|
|
1510
1510
|
|
|
1511
1511
|
// src/git.ts
|
|
1512
1512
|
var execAsync = promisify(exec);
|
|
1513
|
+
var execFileAsync = promisify(execFile);
|
|
1513
1514
|
function runGitDiff(args) {
|
|
1514
1515
|
try {
|
|
1515
1516
|
try {
|
|
@@ -1526,7 +1527,7 @@ function runGitDiff(args) {
|
|
|
1526
1527
|
);
|
|
1527
1528
|
process.exit(1);
|
|
1528
1529
|
}
|
|
1529
|
-
const result =
|
|
1530
|
+
const result = execFileSync("git", ["diff", ...args], {
|
|
1530
1531
|
encoding: "utf-8",
|
|
1531
1532
|
maxBuffer: 50 * 1024 * 1024
|
|
1532
1533
|
// 50MB buffer for large diffs
|
|
@@ -1591,7 +1592,7 @@ async function getRepoRootAsync(cwd) {
|
|
|
1591
1592
|
}
|
|
1592
1593
|
async function runGitDiffAsync(args, cwd) {
|
|
1593
1594
|
try {
|
|
1594
|
-
const { stdout } = await
|
|
1595
|
+
const { stdout } = await execFileAsync("git", ["diff", ...args], {
|
|
1595
1596
|
maxBuffer: 50 * 1024 * 1024,
|
|
1596
1597
|
// 50MB buffer
|
|
1597
1598
|
timeout: 3e4,
|