fix(javascript): report JSON status for imported package manifests

Use the existing JSON-text status checker for explicit package.json imports while retaining separate package-metadata validity. Preserve malformed/unavailable status and partial facts after cancellation.

Co-authored-by: Immanuel Tikhonov <122638311+immanuwell@users.noreply.github.com>
This commit is contained in:
Immanuel Tikhonov
2026-10-11 13:07:57 +04:00
committed by GitHub
parent 4daea941bf
commit 914ba833de
3 changed files with 178 additions and 2 deletions
@@ -379,7 +379,9 @@ const relationshipProperties = (
resolution_status: target?.status ?? null,
target_file_kind: target?.file?.kind ?? null,
target_json_status:
target?.file?.kind === "json" ? jsonStatus(target.file) : null,
target?.file?.kind === "json" || target?.file?.kind === "package-json"
? jsonStatus(target.file)
: null,
});
const relationshipEvidence = (