@sd-jwt/core 0.7.2-next.6 → 0.7.2-next.7
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/index.ts +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -75,7 +75,7 @@ declare const createDecoy: (hash: HasherAndAlg, saltGenerator: SaltGenerator) =>
|
|
|
75
75
|
type SdJwtPayload = Record<string, unknown>;
|
|
76
76
|
declare class SDJwtInstance<ExtendedPayload extends SdJwtPayload> {
|
|
77
77
|
protected type?: string;
|
|
78
|
-
static DEFAULT_hashAlg
|
|
78
|
+
static readonly DEFAULT_hashAlg = "sha-256";
|
|
79
79
|
protected userConfig: SDJWTConfig;
|
|
80
80
|
constructor(userConfig?: SDJWTConfig);
|
|
81
81
|
private createKBJwt;
|
package/dist/index.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ declare const createDecoy: (hash: HasherAndAlg, saltGenerator: SaltGenerator) =>
|
|
|
75
75
|
type SdJwtPayload = Record<string, unknown>;
|
|
76
76
|
declare class SDJwtInstance<ExtendedPayload extends SdJwtPayload> {
|
|
77
77
|
protected type?: string;
|
|
78
|
-
static DEFAULT_hashAlg
|
|
78
|
+
static readonly DEFAULT_hashAlg = "sha-256";
|
|
79
79
|
protected userConfig: SDJWTConfig;
|
|
80
80
|
constructor(userConfig?: SDJWTConfig);
|
|
81
81
|
private createKBJwt;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/core",
|
|
3
|
-
"version": "0.7.2-next.
|
|
3
|
+
"version": "0.7.2-next.7+96e76a9",
|
|
4
4
|
"description": "sd-jwt draft 7 implementation in typescript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@sd-jwt/crypto-nodejs": "0.7.2-next.
|
|
41
|
+
"@sd-jwt/crypto-nodejs": "0.7.2-next.7+96e76a9"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@sd-jwt/decode": "0.7.2-next.
|
|
45
|
-
"@sd-jwt/present": "0.7.2-next.
|
|
46
|
-
"@sd-jwt/types": "0.7.2-next.
|
|
47
|
-
"@sd-jwt/utils": "0.7.2-next.
|
|
44
|
+
"@sd-jwt/decode": "0.7.2-next.7+96e76a9",
|
|
45
|
+
"@sd-jwt/present": "0.7.2-next.7+96e76a9",
|
|
46
|
+
"@sd-jwt/types": "0.7.2-next.7+96e76a9",
|
|
47
|
+
"@sd-jwt/utils": "0.7.2-next.7+96e76a9"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"esm"
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "96e76a9d553bff34274b5ad243d0154cd220061b"
|
|
66
66
|
}
|
package/src/index.ts
CHANGED
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
type PresentationFrame,
|
|
11
11
|
type SDJWTCompact,
|
|
12
12
|
type SDJWTConfig,
|
|
13
|
+
type JwtPayload,
|
|
13
14
|
} from '@sd-jwt/types';
|
|
14
15
|
import { getSDAlgAndPayload } from '@sd-jwt/decode';
|
|
15
|
-
import type { JwtPayload } from '@sd-jwt/types';
|
|
16
16
|
|
|
17
17
|
export * from './sdjwt';
|
|
18
18
|
export * from './kbjwt';
|
|
@@ -25,7 +25,7 @@ export class SDJwtInstance<ExtendedPayload extends SdJwtPayload> {
|
|
|
25
25
|
//header type
|
|
26
26
|
protected type?: string;
|
|
27
27
|
|
|
28
|
-
public static DEFAULT_hashAlg = 'sha-256';
|
|
28
|
+
public static readonly DEFAULT_hashAlg = 'sha-256';
|
|
29
29
|
|
|
30
30
|
protected userConfig: SDJWTConfig = {};
|
|
31
31
|
|