@profullstack/threatcrush 0.13.54 → 0.13.55

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.js CHANGED
@@ -50275,7 +50275,9 @@ async function uploadResult(result, opts) {
50275
50275
  scope: opts.scope ?? "",
50276
50276
  worker_id: workerId(),
50277
50277
  result: {
50278
- findings: result.findings,
50278
+ // ai-scan and pentest put the target URL in each finding's location:
50279
+ // clean it like the target, or a ?key= in the URL reaches the cloud.
50280
+ findings: result.findings.map((f) => f.location && /^https?:\/\//i.test(f.location) ? { ...f, location: cleanUrl(f.location) } : f),
50279
50281
  severity_summary: result.severity_summary,
50280
50282
  summary: result.summary,
50281
50283
  error: result.error