@sd-jwt/jwt-status-list 0.7.0 → 0.7.1-next.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/README.md +0 -2
- package/package.json +3 -3
- package/src/index.ts +3 -3
- package/src/status-list-jwt.ts +2 -2
- package/src/status-list.ts +1 -1
package/README.md
CHANGED
|
@@ -74,8 +74,6 @@ const status = statusList.getStatus(reference.idx);
|
|
|
74
74
|
### Integration into sd-jwt-vc
|
|
75
75
|
The status list can be integrated into the [sd-jwt-vc](../sd-jwt-vc/README.md) library to provide a way to verify the status of a credential. In the [test folder](../sd-jwt-vc/src/test/index.spec.ts) you will find an example how to add the status reference to a credential and also how to verify the status of a credential.
|
|
76
76
|
|
|
77
|
-
```typescript
|
|
78
|
-
|
|
79
77
|
### Caching the status list
|
|
80
78
|
Depending on the `ttl` field if provided the status list can be cached for a certain amount of time. This library has no internal cache mechanism, so it is up to the user to implement it for example by providing a custom `fetchStatusList` function.
|
|
81
79
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/jwt-status-list",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1-next.1+92f2235",
|
|
4
4
|
"description": "Implementation based on https://datatracker.ietf.org/doc/draft-ietf-oauth-status-list/",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"jose": "^5.2.2"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@sd-jwt/types": "0.7.
|
|
45
|
+
"@sd-jwt/types": "0.7.1-next.1+92f2235",
|
|
46
46
|
"base64url": "^3.0.1",
|
|
47
47
|
"pako": "^2.1.0"
|
|
48
48
|
},
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"esm"
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "92f2235331d7ce77ddc410df57a5717931e52745"
|
|
66
66
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './status-list
|
|
2
|
-
export * from './status-list-jwt
|
|
3
|
-
export * from './types
|
|
1
|
+
export * from './status-list';
|
|
2
|
+
export * from './status-list-jwt';
|
|
3
|
+
export * from './types';
|
package/src/status-list-jwt.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { JwtPayload } from '@sd-jwt/types';
|
|
2
|
-
import { StatusList } from './status-list
|
|
2
|
+
import { StatusList } from './status-list';
|
|
3
3
|
import type {
|
|
4
4
|
JWTwithStatusListPayload,
|
|
5
5
|
StatusListJWTHeaderParameters,
|
|
6
6
|
StatusListEntry,
|
|
7
7
|
StatusListJWTPayload,
|
|
8
|
-
} from './types
|
|
8
|
+
} from './types';
|
|
9
9
|
import base64Url from 'base64url';
|
|
10
10
|
|
|
11
11
|
/**
|
package/src/status-list.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { deflate, inflate } from 'pako';
|
|
2
2
|
import base64Url from 'base64url';
|
|
3
|
-
import type { BitsPerStatus } from './types
|
|
3
|
+
import type { BitsPerStatus } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* StatusListManager is a class that manages a list of statuses with variable bit size.
|
|
6
6
|
*/
|