verimu 0.0.16 → 0.0.17
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 +2 -2
- 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
|
@@ -16940,7 +16940,7 @@ function detectSource() {
|
|
|
16940
16940
|
}
|
|
16941
16941
|
|
|
16942
16942
|
// src/context/snippet-extractor.ts
|
|
16943
|
-
import { relative } from "path";
|
|
16943
|
+
import { relative, sep } from "path";
|
|
16944
16944
|
var DEFAULT_NUM_CONTEXT_LINES = 4;
|
|
16945
16945
|
var MIN_CONTEXT_LINES = 0;
|
|
16946
16946
|
var MAX_CONTEXT_LINES = 20;
|
|
@@ -16970,7 +16970,7 @@ function buildSnippet(params) {
|
|
|
16970
16970
|
const endLine = Math.min(lines.length || 1, centerLine + numContextLines);
|
|
16971
16971
|
const code = lines.slice(startLine - 1, endLine).join("\n");
|
|
16972
16972
|
return {
|
|
16973
|
-
filePath: relative(projectPath, filePath),
|
|
16973
|
+
filePath: relative(projectPath, filePath).split(sep).join("/"),
|
|
16974
16974
|
startLine,
|
|
16975
16975
|
endLine,
|
|
16976
16976
|
code,
|