@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) 2023-
|
|
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
|
|