Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Sphereon-Opensource/PEX
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
sanderPostma committed Oct 31, 2024
2 parents b01a481 + 772a058 commit dc542dc
Show file tree
Hide file tree
Showing 3 changed files with 3,751 additions and 2,917 deletions.
6 changes: 3 additions & 3 deletions lib/evaluation/evaluationClientWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ interface SubmissionSatisfiesDefinitionResult {
/**
* Only populated if submission requirements are present
*/
submisisonRequirementResults?: SubmissionSatisfiesSubmissionRequirementResult[];
submissionRequirementResults?: SubmissionSatisfiesSubmissionRequirementResult[];
}

export class EvaluationClientWrapper {
Expand Down Expand Up @@ -432,7 +432,7 @@ export class EvaluationClientWrapper {
: Array.isArray(wvps);

if (this._client.generatePresentationSubmission && result.value && useExternalSubmission) {
// we map the descriptors of the generated submisison to take into account the nexted values
// we map the descriptors of the generated submission to take into account the nexted values
result.value.descriptor_map = result.value.descriptor_map.map((descriptor) => {
const [wvcResult] = JsonPathUtils.extractInputField(allWvcs, [descriptor.path]) as Array<{
value: WrappedVerifiableCredential;
Expand Down Expand Up @@ -818,7 +818,7 @@ export class EvaluationClientWrapper {

result.totalRequiredMatches = pd.submission_requirements.length;
result.totalMatches = submissionRequirementResults.filter((r) => r.isSubmissionRequirementSatisfied).length;
result.submisisonRequirementResults = submissionRequirementResults;
result.submissionRequirementResults = submissionRequirementResults;

if (result.totalMatches !== result.totalRequiredMatches) {
result.error = `Expected all submission requirements (${result.totalRequiredMatches}) to be satisfied in submission, but found ${result.totalMatches}.`;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"typings": "dist/main/index.d.ts",
"repository": "https://github.com/Sphereon-Opensource/pex.git",
"license": "Apache-2.0",
"packageManager": "[email protected]+sha256.daa27a0b541bc635323ff96c2ded995467ff9fe6d69ff67021558aa9ad9dcc36",
"keywords": [
"SSI",
"Presentation Exchange",
Expand Down Expand Up @@ -88,5 +87,6 @@
"prettier": {
"singleQuote": true,
"printWidth": 150
}
},
"packageManager": "[email protected]+sha256.b6fd0bfda555e7e584ad7e56b30c68b01d5a04f9ee93989f4b93ca8473c49c74"
}
Loading

0 comments on commit dc542dc

Please sign in to comment.