File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 36
36
],
37
37
"license" : " ISC" ,
38
38
"dependencies" : {
39
- "did-jwt" : " ^6.5 .0" ,
39
+ "did-jwt" : " ^6.6 .0" ,
40
40
"did-resolver" : " ^4.0.0"
41
41
},
42
42
"repository" : {
Original file line number Diff line number Diff line change @@ -8,28 +8,28 @@ import { JWT_ERROR } from 'did-jwt'
8
8
* Error prefixes used for known verification failure cases related to the
9
9
* {@link https://www.w3.org/TR/vc-data-model/ | Verifiable Credential data model }
10
10
*/
11
- export const enum VC_ERROR {
11
+ export const VC_ERROR = {
12
12
/**
13
13
* Thrown when the credential or presentation being verified does not conform to the data model defined by
14
14
* {@link https://www.w3.org/TR/vc-data-model/ | the spec}
15
15
*/
16
- SCHEMA_ERROR = 'schema_error' ,
16
+ SCHEMA_ERROR : 'schema_error' ,
17
17
18
18
/**
19
19
* Thrown when the input is not a JWT string
20
20
*/
21
- FORMAT_ERROR = 'format_error' ,
21
+ FORMAT_ERROR : 'format_error' ,
22
22
23
23
/**
24
24
* Thrown when verifying a presentation where `challenge` and/or `domain` don't match the expected values.
25
25
*/
26
- AUTH_ERROR = 'auth_error' ,
26
+ AUTH_ERROR : 'auth_error' ,
27
27
}
28
28
29
29
/**
30
30
* Known validation or verification error prefixes.
31
31
*/
32
- export type VC_JWT_ERROR = VC_ERROR | JWT_ERROR
32
+ export const VC_JWT_ERROR = { ... VC_ERROR , ... JWT_ERROR }
33
33
34
34
// eslint-disable-next-line @typescript-eslint/no-explicit-any
35
35
function isDateObject ( input : any ) : input is Date {
Original file line number Diff line number Diff line change @@ -4440,10 +4440,10 @@ did-jwt@^6.1.2:
4440
4440
multiformats "^9.6.5"
4441
4441
uint8arrays "^3.0.0"
4442
4442
4443
- did-jwt@^6.5 .0 :
4444
- version "6.5 .0"
4445
- resolved "https://registry.yarnpkg.com/did-jwt/-/did-jwt-6.5 .0.tgz#0179ed25db32c111a667563c0d7b54e5d6ecb939 "
4446
- integrity sha512-yfdqk2N6+161Yeay4HMC5daic/HRIsc+W1r7JQlNtL14fmQyaPgJxnxpXdc7Qmwd+pMlfpi1oOEtraExDE6MzQ ==
4443
+ did-jwt@^6.6 .0 :
4444
+ version "6.6 .0"
4445
+ resolved "https://registry.yarnpkg.com/did-jwt/-/did-jwt-6.6 .0.tgz#e7c932f7e3ff992b15aef7db3d530c81fb34902d "
4446
+ integrity sha512-qSjXEEHS4fSbBHRCC/ObDzPVkCVvuXIfIiGWa03HNRr85gGkbxzBrxUsUbXfXo1CuzeCqmmZpK4nM4VWlZh6bQ ==
4447
4447
dependencies :
4448
4448
" @stablelib/ed25519" " ^1.0.2"
4449
4449
" @stablelib/random" " ^1.0.1"
You can’t perform that action at this time.
0 commit comments