@sd-jwt/types 0.3.2-next.76 → 0.3.2-next.94
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/dist/index.js +0 -3
- package/dist/index.mjs +0 -2
- package/package.json +2 -2
- package/src/test/type.spec.ts +1 -6
- package/src/type.ts +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare const SD_SEPARATOR = "~";
|
|
2
2
|
declare const SD_LIST_KEY = "...";
|
|
3
3
|
declare const SD_DIGEST = "_sd";
|
|
4
|
-
declare const SD_JWT_TYP = "sd-jwt";
|
|
5
4
|
declare const SD_DECOY = "_sd_decoy";
|
|
6
5
|
declare const KB_JWT_TYP = "kb+jwt";
|
|
7
6
|
type SDJWTCompact = string;
|
|
@@ -99,4 +98,4 @@ type Frame<Payload> = Payload extends Array<infer U> ? U extends object ? Record
|
|
|
99
98
|
} & SD<Payload> & DECOY> : SD<Payload> & DECOY;
|
|
100
99
|
type DisclosureFrame<T extends object> = Frame<T>;
|
|
101
100
|
|
|
102
|
-
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Hasher, type HasherAndAlg, type HasherAndAlgSync, type HasherSync, type KBOptions, KB_JWT_TYP, type OrPromise, type SD, type SDJWTCompact, type SDJWTConfig, SD_DECOY, SD_DIGEST,
|
|
101
|
+
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Hasher, type HasherAndAlg, type HasherAndAlgSync, type HasherSync, type KBOptions, KB_JWT_TYP, type OrPromise, type SD, type SDJWTCompact, type SDJWTConfig, SD_DECOY, SD_DIGEST, SD_LIST_KEY, SD_SEPARATOR, type SaltGenerator, type SaltGeneratorSync, type Signer, type SignerSync, type Verifier, type VerifierSync, type kbHeader, type kbPayload };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare const SD_SEPARATOR = "~";
|
|
2
2
|
declare const SD_LIST_KEY = "...";
|
|
3
3
|
declare const SD_DIGEST = "_sd";
|
|
4
|
-
declare const SD_JWT_TYP = "sd-jwt";
|
|
5
4
|
declare const SD_DECOY = "_sd_decoy";
|
|
6
5
|
declare const KB_JWT_TYP = "kb+jwt";
|
|
7
6
|
type SDJWTCompact = string;
|
|
@@ -99,4 +98,4 @@ type Frame<Payload> = Payload extends Array<infer U> ? U extends object ? Record
|
|
|
99
98
|
} & SD<Payload> & DECOY> : SD<Payload> & DECOY;
|
|
100
99
|
type DisclosureFrame<T extends object> = Frame<T>;
|
|
101
100
|
|
|
102
|
-
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Hasher, type HasherAndAlg, type HasherAndAlgSync, type HasherSync, type KBOptions, KB_JWT_TYP, type OrPromise, type SD, type SDJWTCompact, type SDJWTConfig, SD_DECOY, SD_DIGEST,
|
|
101
|
+
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Hasher, type HasherAndAlg, type HasherAndAlgSync, type HasherSync, type KBOptions, KB_JWT_TYP, type OrPromise, type SD, type SDJWTCompact, type SDJWTConfig, SD_DECOY, SD_DIGEST, SD_LIST_KEY, SD_SEPARATOR, type SaltGenerator, type SaltGeneratorSync, type Signer, type SignerSync, type Verifier, type VerifierSync, type kbHeader, type kbPayload };
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,6 @@ __export(src_exports, {
|
|
|
23
23
|
KB_JWT_TYP: () => KB_JWT_TYP,
|
|
24
24
|
SD_DECOY: () => SD_DECOY,
|
|
25
25
|
SD_DIGEST: () => SD_DIGEST,
|
|
26
|
-
SD_JWT_TYP: () => SD_JWT_TYP,
|
|
27
26
|
SD_LIST_KEY: () => SD_LIST_KEY,
|
|
28
27
|
SD_SEPARATOR: () => SD_SEPARATOR
|
|
29
28
|
});
|
|
@@ -33,7 +32,6 @@ module.exports = __toCommonJS(src_exports);
|
|
|
33
32
|
var SD_SEPARATOR = "~";
|
|
34
33
|
var SD_LIST_KEY = "...";
|
|
35
34
|
var SD_DIGEST = "_sd";
|
|
36
|
-
var SD_JWT_TYP = "sd-jwt";
|
|
37
35
|
var SD_DECOY = "_sd_decoy";
|
|
38
36
|
var KB_JWT_TYP = "kb+jwt";
|
|
39
37
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -41,7 +39,6 @@ var KB_JWT_TYP = "kb+jwt";
|
|
|
41
39
|
KB_JWT_TYP,
|
|
42
40
|
SD_DECOY,
|
|
43
41
|
SD_DIGEST,
|
|
44
|
-
SD_JWT_TYP,
|
|
45
42
|
SD_LIST_KEY,
|
|
46
43
|
SD_SEPARATOR
|
|
47
44
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
var SD_SEPARATOR = "~";
|
|
3
3
|
var SD_LIST_KEY = "...";
|
|
4
4
|
var SD_DIGEST = "_sd";
|
|
5
|
-
var SD_JWT_TYP = "sd-jwt";
|
|
6
5
|
var SD_DECOY = "_sd_decoy";
|
|
7
6
|
var KB_JWT_TYP = "kb+jwt";
|
|
8
7
|
export {
|
|
9
8
|
KB_JWT_TYP,
|
|
10
9
|
SD_DECOY,
|
|
11
10
|
SD_DIGEST,
|
|
12
|
-
SD_JWT_TYP,
|
|
13
11
|
SD_LIST_KEY,
|
|
14
12
|
SD_SEPARATOR
|
|
15
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/types",
|
|
3
|
-
"version": "0.3.2-next.
|
|
3
|
+
"version": "0.3.2-next.94+32af6cf",
|
|
4
4
|
"description": "sd-jwt draft 7 implementation in typescript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"esm"
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "32af6cfa150fceb440fc9225bcaf2791a6aeee90"
|
|
57
57
|
}
|
package/src/test/type.spec.ts
CHANGED
|
@@ -3,10 +3,9 @@ import {
|
|
|
3
3
|
SD_SEPARATOR,
|
|
4
4
|
SD_LIST_KEY,
|
|
5
5
|
SD_DIGEST,
|
|
6
|
-
SD_JWT_TYP,
|
|
7
6
|
SD_DECOY,
|
|
8
7
|
KB_JWT_TYP,
|
|
9
|
-
} from '../
|
|
8
|
+
} from '../index';
|
|
10
9
|
|
|
11
10
|
describe('Variable tests', () => {
|
|
12
11
|
test('SD_SEPARATOR', () => {
|
|
@@ -21,10 +20,6 @@ describe('Variable tests', () => {
|
|
|
21
20
|
expect(SD_DIGEST).toBe('_sd');
|
|
22
21
|
});
|
|
23
22
|
|
|
24
|
-
test('SD_JWT_TYP', () => {
|
|
25
|
-
expect(SD_JWT_TYP).toBe('sd-jwt');
|
|
26
|
-
});
|
|
27
|
-
|
|
28
23
|
test('SD_DECOY', () => {
|
|
29
24
|
expect(SD_DECOY).toBe('_sd_decoy');
|
|
30
25
|
});
|