@digitalbazaar/vc 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +4 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -290,7 +290,7 @@ async function _verifyCredential(options = {}) {
290
290
  });
291
291
 
292
292
  const result = await jsigs.verify(
293
- credential, {purpose, documentLoader, ...options});
293
+ credential, {...options, purpose, documentLoader});
294
294
 
295
295
  // if verification has already failed, skip status check
296
296
  if(!result.verified) {
@@ -382,7 +382,7 @@ export async function signPresentation(options = {}) {
382
382
 
383
383
  const documentLoader = options.documentLoader || defaultDocumentLoader;
384
384
 
385
- return jsigs.sign(presentation, {purpose, documentLoader, ...options});
385
+ return jsigs.sign(presentation, {...options, purpose, documentLoader});
386
386
  }
387
387
 
388
388
  /**
@@ -441,7 +441,7 @@ async function _verifyPresentation(options = {}) {
441
441
  if(credentials.length > 0) {
442
442
  // verify every credential in `verifiableCredential`
443
443
  credentialResults = await Promise.all(credentials.map(credential => {
444
- return verifyCredential({credential, documentLoader, ...options});
444
+ return verifyCredential({...options, credential, documentLoader});
445
445
  }));
446
446
 
447
447
  for(const [i, credentialResult] of credentialResults.entries()) {
@@ -469,7 +469,7 @@ async function _verifyPresentation(options = {}) {
469
469
  new AuthenticationProofPurpose({controller, domain, challenge});
470
470
 
471
471
  const presentationResult = await jsigs.verify(
472
- presentation, {purpose, documentLoader, ...options});
472
+ presentation, {...options, purpose, documentLoader});
473
473
 
474
474
  return {
475
475
  presentationResult,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalbazaar/vc",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Verifiable Credentials JavaScript library.",
5
5
  "homepage": "https://github.com/digitalbazaar/vc",
6
6
  "author": {