@bedrock/vc-delivery 5.5.0 → 5.5.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/oid4/http.js +2 -0
  2. package/package.json +1 -1
package/lib/oid4/http.js CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  import {asyncHandler} from '@bedrock/express';
13
13
  import bodyParser from 'body-parser';
14
14
  import cors from 'cors';
15
+ import {logger} from '../logger.js';
15
16
  import {UnsecuredJWT} from 'jose';
16
17
  import {createValidateMiddleware as validate} from '@bedrock/validation';
17
18
 
@@ -374,6 +375,7 @@ export async function createRoutes({
374
375
  }
375
376
 
376
377
  function _sendOID4Error({res, error}) {
378
+ logger.error(error.message, {error});
377
379
  const status = error.details?.httpStatusCode ?? 500;
378
380
  const oid4Error = {
379
381
  error: _camelToSnakeCase(error.name ?? 'OperationError'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrock/vc-delivery",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "type": "module",
5
5
  "description": "Bedrock Verifiable Credential Delivery",
6
6
  "main": "./lib/index.js",