@bedrock/vc-delivery 6.6.0 → 6.6.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/verify.js +4 -4
  2. package/package.json +1 -1
package/lib/verify.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright (c) 2022-2024 Digital Bazaar, Inc. All rights reserved.
2
+ * Copyright (c) 2022-2025 Digital Bazaar, Inc. All rights reserved.
3
3
  */
4
4
  import * as bedrock from '@bedrock/core';
5
5
  import * as EcdsaMultikey from '@digitalbazaar/ecdsa-multikey';
@@ -66,7 +66,7 @@ export async function verify({
66
66
  name: 'OperationError',
67
67
  cause,
68
68
  details: {
69
- httpStatusCode: cause.status,
69
+ httpStatusCode: cause.status ?? 500,
70
70
  public: true
71
71
  }
72
72
  });
@@ -81,7 +81,7 @@ export async function verify({
81
81
  }
82
82
  });
83
83
  }
84
- if(presentationResult.error) {
84
+ if(presentationResult?.error) {
85
85
  presentationResult.error = stripStacktrace(presentationResult.error);
86
86
  }
87
87
 
@@ -97,7 +97,7 @@ export async function verify({
97
97
  verified,
98
98
  credentialResults,
99
99
  presentationResult,
100
- httpStatusCode: cause.status,
100
+ httpStatusCode: cause.status ?? 500,
101
101
  public: true
102
102
  }
103
103
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrock/vc-delivery",
3
- "version": "6.6.0",
3
+ "version": "6.6.1",
4
4
  "type": "module",
5
5
  "description": "Bedrock Verifiable Credential Delivery",
6
6
  "main": "./lib/index.js",