verimu 0.0.19 → 0.0.21

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 CHANGED
@@ -14472,9 +14472,10 @@ var NpmScanner = class {
14472
14472
  if (lockfile.packages) {
14473
14473
  for (const [pkgPath, pkgInfo] of Object.entries(lockfile.packages)) {
14474
14474
  if (pkgPath === "") continue;
14475
+ if (!pkgPath.startsWith("node_modules/")) continue;
14476
+ if (pkgInfo.link) continue;
14475
14477
  const name = this.extractPackageName(pkgPath);
14476
14478
  if (!name || !pkgInfo.version) continue;
14477
- if (pkgInfo.link) continue;
14478
14479
  deps.push({
14479
14480
  name,
14480
14481
  version: pkgInfo.version,
@@ -17072,7 +17073,8 @@ var VerimuApiClient = class {
17072
17073
  name: opts.name,
17073
17074
  ecosystem: this.mapEcosystem(opts.ecosystem),
17074
17075
  repository_url: opts.repositoryUrl ?? null,
17075
- platform: opts.platform ?? null
17076
+ platform: opts.platform ?? null,
17077
+ group_name: opts.groupName ?? null
17076
17078
  })
17077
17079
  });
17078
17080
  if (!res.ok) {
@@ -17224,6 +17226,8 @@ function buildSnippet(params) {
17224
17226
  const startLine = Math.max(1, centerLine - numContextLines);
17225
17227
  const endLine = Math.min(lines.length || 1, centerLine + numContextLines);
17226
17228
  const code = lines.slice(startLine - 1, endLine).join("\n");
17229
+ const highlightOffset = centerLine - startLine;
17230
+ const highlight = [highlightOffset, highlightOffset];
17227
17231
  return {
17228
17232
  filePath: (0, import_path14.relative)(projectPath, filePath).split(import_path14.sep).join("/"),
17229
17233
  startLine,
@@ -17231,7 +17235,8 @@ function buildSnippet(params) {
17231
17235
  code,
17232
17236
  matchKind,
17233
17237
  calledSymbol,
17234
- confidence
17238
+ confidence,
17239
+ highlight
17235
17240
  };
17236
17241
  }
17237
17242
  function dedupeSnippets(snippets) {
@@ -18990,7 +18995,8 @@ async function uploadToVerimu(report, config) {
18990
18995
  const projectName = (0, import_path17.basename)(config.projectPath);
18991
18996
  const upsertRes = await client.upsertProject({
18992
18997
  name: projectName,
18993
- ecosystem: report.project.ecosystem
18998
+ ecosystem: report.project.ecosystem,
18999
+ groupName: config.groupName
18994
19000
  });
18995
19001
  const projectId = upsertRes.project.id;
18996
19002
  const scanRes = await client.uploadSbom(projectId, buildUploadPayload(report));