@sd-jwt/decode 0.17.2-next.2 → 0.17.2-next.4
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 -2
- package/dist/index.d.ts +1 -2
- package/package.json +5 -5
- package/src/decode.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Hasher, HasherAndAlg } from '@sd-jwt/types';
|
|
2
|
-
import { HasherSync, HasherAndAlgSync } from '@sd-jwt/types/src/type';
|
|
1
|
+
import { Hasher, HasherSync, HasherAndAlg, HasherAndAlgSync } from '@sd-jwt/types';
|
|
3
2
|
import { Disclosure } from '@sd-jwt/utils';
|
|
4
3
|
|
|
5
4
|
declare const decodeJwt: <H extends Record<string, unknown>, T extends Record<string, unknown>>(jwt: string) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Hasher, HasherAndAlg } from '@sd-jwt/types';
|
|
2
|
-
import { HasherSync, HasherAndAlgSync } from '@sd-jwt/types/src/type';
|
|
1
|
+
import { Hasher, HasherSync, HasherAndAlg, HasherAndAlgSync } from '@sd-jwt/types';
|
|
3
2
|
import { Disclosure } from '@sd-jwt/utils';
|
|
4
3
|
|
|
5
4
|
declare const decodeJwt: <H extends Record<string, unknown>, T extends Record<string, unknown>>(jwt: string) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/decode",
|
|
3
|
-
"version": "0.17.2-next.
|
|
3
|
+
"version": "0.17.2-next.4+213de7e",
|
|
4
4
|
"description": "sd-jwt draft 7 implementation in typescript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
},
|
|
37
37
|
"license": "Apache-2.0",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@sd-jwt/crypto-nodejs": "0.17.2-next.
|
|
39
|
+
"@sd-jwt/crypto-nodejs": "0.17.2-next.4+213de7e"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@sd-jwt/types": "0.17.2-next.
|
|
43
|
-
"@sd-jwt/utils": "0.17.2-next.
|
|
42
|
+
"@sd-jwt/types": "0.17.2-next.4+213de7e",
|
|
43
|
+
"@sd-jwt/utils": "0.17.2-next.4+213de7e"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"esm"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "213de7e85b9820ca638ba3362fe4deee808e236e"
|
|
62
62
|
}
|
package/src/decode.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HasherAndAlgSync, HasherSync } from '@sd-jwt/types';
|
|
1
2
|
import {
|
|
2
3
|
type Hasher,
|
|
3
4
|
type HasherAndAlg,
|
|
@@ -5,7 +6,6 @@ import {
|
|
|
5
6
|
SD_LIST_KEY,
|
|
6
7
|
SD_SEPARATOR,
|
|
7
8
|
} from '@sd-jwt/types';
|
|
8
|
-
import type { HasherAndAlgSync, HasherSync } from '@sd-jwt/types/src/type';
|
|
9
9
|
import { base64urlDecode, Disclosure, SDJWTException } from '@sd-jwt/utils';
|
|
10
10
|
|
|
11
11
|
export const decodeJwt = <
|