mirror of
https://github.com/morluto/rea.git
synced 2026-10-30 19:35:56 +00:00
refactor(javascript): unify application workflow ownership
This commit is contained in:
1 parent
74ed67da7f
commit
da9a580a0d
18 files changed
+385
-315
No files matched your search
@@ -320,7 +320,7 @@ const requireProvider = (
|
||||
);
|
||||
};
|
||||
|
||||
/** Parse unique, artifact-bound Evidence that may extend a native handoff. */
|
||||
/** Authenticate artifact-bound Evidence that may extend a native handoff. */
|
||||
export const parseNativeApplicationEvidence = (
|
||||
inputs: readonly unknown[],
|
||||
path: readonly (string | number)[] = [],
|
||||
@@ -336,13 +336,6 @@ export const parseNativeApplicationEvidence = (
|
||||
"subject",
|
||||
"Native handoff Evidence requires an artifact subject.",
|
||||
);
|
||||
const ids = parsed.map(({ evidence_id: id }) => id);
|
||||
if (new Set(ids).size !== ids.length)
|
||||
throw invalidEvidence(
|
||||
path,
|
||||
"evidence_id",
|
||||
"Native handoff Evidence must be unique.",
|
||||
);
|
||||
return parsed;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user