@digitalbazaar/oid4-client 5.6.2 → 5.6.3

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.
package/lib/query/dcql.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright (c) 2025 Digital Bazaar, Inc. All rights reserved.
2
+ * Copyright (c) 2025-2026 Digital Bazaar, Inc. All rights reserved.
3
3
  */
4
4
  import {
5
5
  fromJsonPointerMap, isNumber, toJsonPointerMap, toNumberIfNumber
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright (c) 2023-2025 Digital Bazaar, Inc. All rights reserved.
2
+ * Copyright (c) 2023-2026 Digital Bazaar, Inc. All rights reserved.
3
3
  */
4
4
  import {resolvePointer, toJsonPointerMap} from './util.js';
5
5
  import {exampleToJsonPointerMap} from './queryByExample.js';
@@ -69,7 +69,7 @@ export function vprGroupsToPresentationDefinition({
69
69
  // note: same group ID is logical "AND" and different group ID is "OR"
70
70
  const groups = [...groupMap.values()];
71
71
  for(const queries of groups) {
72
- const queryByExamples = queries.get('QueryByExample');
72
+ const queryByExamples = queries.get('QueryByExample') ?? [];
73
73
 
74
74
  // for each `QueryByExample`, add another input descriptor (for every
75
75
  // "credentialQuery" within it
@@ -113,7 +113,7 @@ export function vprGroupsToPresentationDefinition({
113
113
  }
114
114
  }
115
115
 
116
- const didAuthentications = queries.get('DIDAuthentication');
116
+ const didAuthentications = queries.get('DIDAuthentication') ?? [];
117
117
  for(const didAuthentication of didAuthentications) {
118
118
  const {acceptedEnvelopes, acceptedCryptosuites} = didAuthentication;
119
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalbazaar/oid4-client",
3
- "version": "5.6.2",
3
+ "version": "5.6.3",
4
4
  "description": "An OID4 (VC + VP) client",
5
5
  "homepage": "https://github.com/digitalbazaar/oid4-client",
6
6
  "author": {