@sd-jwt/present 0.5.0 → 0.5.1-next.12
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/dist/index.mjs +1 -0
- package/package.json +6 -6
- package/src/present.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -20,6 +20,7 @@ type SerializedDisclosure = {
|
|
|
20
20
|
key: string | undefined;
|
|
21
21
|
value: unknown;
|
|
22
22
|
};
|
|
23
|
+
declare const createHashMappingForSerializedDisclosure: (disclosures: SerializedDisclosure[]) => Record<string, Disclosure<unknown>>;
|
|
23
24
|
/**
|
|
24
25
|
* This function selects the serialized disclosures from the payload
|
|
25
26
|
* and array of serialized disclosure based on the presentation frame.
|
|
@@ -30,4 +31,4 @@ type SerializedDisclosure = {
|
|
|
30
31
|
*/
|
|
31
32
|
declare const selectDisclosures: <T extends Record<string, unknown>>(payload: Record<string, unknown>, disclosures: SerializedDisclosure[], presentationFrame: PresentationFrame<T>) => SerializedDisclosure[];
|
|
32
33
|
|
|
33
|
-
export { type SerializedDisclosure, present, presentSync, presentableKeys, presentableKeysSync, selectDisclosures, transformPresentationFrame };
|
|
34
|
+
export { type SerializedDisclosure, createHashMappingForSerializedDisclosure, present, presentSync, presentableKeys, presentableKeysSync, selectDisclosures, transformPresentationFrame };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ type SerializedDisclosure = {
|
|
|
20
20
|
key: string | undefined;
|
|
21
21
|
value: unknown;
|
|
22
22
|
};
|
|
23
|
+
declare const createHashMappingForSerializedDisclosure: (disclosures: SerializedDisclosure[]) => Record<string, Disclosure<unknown>>;
|
|
23
24
|
/**
|
|
24
25
|
* This function selects the serialized disclosures from the payload
|
|
25
26
|
* and array of serialized disclosure based on the presentation frame.
|
|
@@ -30,4 +31,4 @@ type SerializedDisclosure = {
|
|
|
30
31
|
*/
|
|
31
32
|
declare const selectDisclosures: <T extends Record<string, unknown>>(payload: Record<string, unknown>, disclosures: SerializedDisclosure[], presentationFrame: PresentationFrame<T>) => SerializedDisclosure[];
|
|
32
33
|
|
|
33
|
-
export { type SerializedDisclosure, present, presentSync, presentableKeys, presentableKeysSync, selectDisclosures, transformPresentationFrame };
|
|
34
|
+
export { type SerializedDisclosure, createHashMappingForSerializedDisclosure, present, presentSync, presentableKeys, presentableKeysSync, selectDisclosures, transformPresentationFrame };
|
package/dist/index.js
CHANGED
|
@@ -40,6 +40,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
40
40
|
// src/index.ts
|
|
41
41
|
var src_exports = {};
|
|
42
42
|
__export(src_exports, {
|
|
43
|
+
createHashMappingForSerializedDisclosure: () => createHashMappingForSerializedDisclosure,
|
|
43
44
|
present: () => present,
|
|
44
45
|
presentSync: () => presentSync,
|
|
45
46
|
presentableKeys: () => presentableKeys,
|
|
@@ -154,6 +155,7 @@ var selectDisclosures = (payload, disclosures, presentationFrame) => {
|
|
|
154
155
|
};
|
|
155
156
|
// Annotate the CommonJS export names for ESM import in node:
|
|
156
157
|
0 && (module.exports = {
|
|
158
|
+
createHashMappingForSerializedDisclosure,
|
|
157
159
|
present,
|
|
158
160
|
presentSync,
|
|
159
161
|
presentableKeys,
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/present",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1-next.12+b6f9f1d",
|
|
4
4
|
"description": "sd-jwt draft 7 implementation in typescript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@sd-jwt/crypto-nodejs": "0.5.
|
|
41
|
+
"@sd-jwt/crypto-nodejs": "0.5.1-next.12+b6f9f1d"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@sd-jwt/decode": "0.5.
|
|
45
|
-
"@sd-jwt/types": "0.5.
|
|
46
|
-
"@sd-jwt/utils": "0.5.
|
|
44
|
+
"@sd-jwt/decode": "0.5.1-next.12+b6f9f1d",
|
|
45
|
+
"@sd-jwt/types": "0.5.1-next.12+b6f9f1d",
|
|
46
|
+
"@sd-jwt/utils": "0.5.1-next.12+b6f9f1d"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"esm"
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "b6f9f1d899769c70a8105f67cd2d41c1b6513694"
|
|
65
65
|
}
|
package/src/present.ts
CHANGED
|
@@ -148,7 +148,7 @@ export type SerializedDisclosure = {
|
|
|
148
148
|
value: unknown;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
const createHashMappingForSerializedDisclosure = (
|
|
151
|
+
export const createHashMappingForSerializedDisclosure = (
|
|
152
152
|
disclosures: SerializedDisclosure[],
|
|
153
153
|
) => {
|
|
154
154
|
const map: Record<string, Disclosure> = {};
|