From 5bb6fddee000bbd3d56b951398af45aa28de5589 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Wed, 15 Oct 2025 17:20:00 +0200 Subject: [PATCH] Pick up softwareAgent from v2 manifests. For issue #691. --- src/models/proof.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/proof.ts b/src/models/proof.ts index 57ef333..bc1697a 100644 --- a/src/models/proof.ts +++ b/src/models/proof.ts @@ -251,7 +251,7 @@ const extractFlagValues = (flagPath: string, path: FlagMatchRulePathSegment[]): if (keys.length == 1) { return opart.map((s, i) => { - return { value: s, path: [{ object: o, path: key + "[" + i + "]"}, ... path] }; + return { value: o, path: [{ object: s, path: key + "[" + i + "]"}, ... path] }; }); } else { return opart.reduce((res: FlagMatchRuleValue[] | undefined, oin: any, i: number) => { @@ -314,7 +314,7 @@ const getFirstWithDataAsDate = (flagPaths: string[], path: FlagMatchRulePathSegm const softwareAgentFromAction = (action: FlagMatchRuleValue): string | undefined => { const agent = getFirstWithData([ - "softwareAgent", "../../../claim_generator" + "softwareAgent/name", "softwareAgent", "../../../claim_generator" ], action.path); return agent; };