@digitalbazaar/vc
Advanced tools
Comparing version
@@ -8,3 +8,3 @@ /** | ||
* @license BSD 3-Clause License | ||
* Copyright (c) 2017-2023 Digital Bazaar, Inc. | ||
* Copyright (c) 2017-2025 Digital Bazaar, Inc. | ||
* All rights reserved. | ||
@@ -233,2 +233,4 @@ * | ||
* delegation proof creation time. | ||
* @param {boolean} [options.includeCredentials=false] - Set to `true` to | ||
* include the credentials in the credential results. | ||
* | ||
@@ -493,3 +495,3 @@ * @returns {Promise<VerifyPresentationResult>} The verification result. | ||
async function _verifyPresentation(options = {}) { | ||
const {presentation, unsignedPresentation} = options; | ||
const {presentation, unsignedPresentation, includeCredentials} = options; | ||
@@ -514,3 +516,7 @@ _checkPresentation(presentation); | ||
for(const [i, credentialResult] of credentialResults.entries()) { | ||
credentialResult.credentialId = credentials[i].id; | ||
const credential = credentials[i]; | ||
credentialResult.credentialId = credential.id; | ||
if(includeCredentials) { | ||
credentialResult.credential = credential; | ||
} | ||
} | ||
@@ -517,0 +523,0 @@ |
{ | ||
"name": "@digitalbazaar/vc", | ||
"version": "7.1.2", | ||
"version": "7.2.0", | ||
"description": "Verifiable Credentials JavaScript library.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/digitalbazaar/vc", |
64424
0.43%1024
0.59%