@bedrock/vc-verifier 23.5.0 → 23.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.
- package/lib/status.js +9 -1
- package/package.json +2 -2
package/lib/status.js
CHANGED
|
@@ -62,6 +62,14 @@ export function createCheckStatus({config} = {}) {
|
|
|
62
62
|
const credentialStatuses = Array.isArray(credentialStatus) ?
|
|
63
63
|
credentialStatus : [credentialStatus];
|
|
64
64
|
|
|
65
|
+
// handle case that terse status has no published revocation or
|
|
66
|
+
// suspension lists, so credential status is empty, i.e., no status
|
|
67
|
+
// to check; a future revision might return the expanded BSL entries
|
|
68
|
+
// with a default `false` status value for each status purpose
|
|
69
|
+
if(credentialStatuses.length === 0) {
|
|
70
|
+
return {verified: true};
|
|
71
|
+
}
|
|
72
|
+
|
|
65
73
|
// combination of different status types not supported at this time
|
|
66
74
|
const expectedType = credentialStatuses?.[0]?.type;
|
|
67
75
|
if(credentialStatuses.some(({type}) => type !== expectedType)) {
|
|
@@ -240,7 +248,7 @@ async function _fetchStatusListIfExists({expanded, cache}) {
|
|
|
240
248
|
cache.set(statusListCredential, document);
|
|
241
249
|
return true;
|
|
242
250
|
} catch(e) {
|
|
243
|
-
if(e.
|
|
251
|
+
if(e.name === 'NotFoundError') {
|
|
244
252
|
// ok for a terse bitstring list to not exist
|
|
245
253
|
return false;
|
|
246
254
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bedrock/vc-verifier",
|
|
3
|
-
"version": "23.5.
|
|
3
|
+
"version": "23.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bedrock VC Verifier",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@bedrock/did-io": "^10.4.0",
|
|
64
64
|
"@bedrock/express": "^8.3.1",
|
|
65
65
|
"@bedrock/https-agent": "^4.1.0",
|
|
66
|
-
"@bedrock/jsonld-document-loader": "^5.2.
|
|
66
|
+
"@bedrock/jsonld-document-loader": "^5.2.1",
|
|
67
67
|
"@bedrock/mongodb": "^11.0.0",
|
|
68
68
|
"@bedrock/multikey-context": "^3.0.0",
|
|
69
69
|
"@bedrock/security-context": "^9.0.0",
|