verimu 0.0.16 → 0.0.18
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/cli.mjs +6 -10
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -14093,7 +14093,6 @@ var require_lib3 = __commonJS({
|
|
|
14093
14093
|
// src/cli.ts
|
|
14094
14094
|
import { resolve } from "path";
|
|
14095
14095
|
import { createRequire } from "module";
|
|
14096
|
-
import { fileURLToPath } from "url";
|
|
14097
14096
|
|
|
14098
14097
|
// src/scan.ts
|
|
14099
14098
|
import { writeFile } from "fs/promises";
|
|
@@ -16940,7 +16939,7 @@ function detectSource() {
|
|
|
16940
16939
|
}
|
|
16941
16940
|
|
|
16942
16941
|
// src/context/snippet-extractor.ts
|
|
16943
|
-
import { relative } from "path";
|
|
16942
|
+
import { relative, sep } from "path";
|
|
16944
16943
|
var DEFAULT_NUM_CONTEXT_LINES = 4;
|
|
16945
16944
|
var MIN_CONTEXT_LINES = 0;
|
|
16946
16945
|
var MAX_CONTEXT_LINES = 20;
|
|
@@ -16970,7 +16969,7 @@ function buildSnippet(params) {
|
|
|
16970
16969
|
const endLine = Math.min(lines.length || 1, centerLine + numContextLines);
|
|
16971
16970
|
const code = lines.slice(startLine - 1, endLine).join("\n");
|
|
16972
16971
|
return {
|
|
16973
|
-
filePath: relative(projectPath, filePath),
|
|
16972
|
+
filePath: relative(projectPath, filePath).split(sep).join("/"),
|
|
16974
16973
|
startLine,
|
|
16975
16974
|
endLine,
|
|
16976
16975
|
code,
|
|
@@ -18121,13 +18120,10 @@ function printHelp() {
|
|
|
18121
18120
|
Dashboard: https://app.verimu.com
|
|
18122
18121
|
`);
|
|
18123
18122
|
}
|
|
18124
|
-
|
|
18125
|
-
|
|
18126
|
-
|
|
18127
|
-
|
|
18128
|
-
process.exit(2);
|
|
18129
|
-
});
|
|
18130
|
-
}
|
|
18123
|
+
main().catch((err) => {
|
|
18124
|
+
console.error("Fatal:", err);
|
|
18125
|
+
process.exit(2);
|
|
18126
|
+
});
|
|
18131
18127
|
export {
|
|
18132
18128
|
parseArgs
|
|
18133
18129
|
};
|