You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@digitalbazaar/vc

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalbazaar/vc - npm Package Compare versions

Comparing version

to
7.2.0

12

lib/index.js

@@ -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",