@learncard/openid4vc-plugin 0.3.5 → 0.3.6
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/openid4vc-plugin.cjs.development.cjs +8 -8
- package/dist/openid4vc-plugin.cjs.development.cjs.map +2 -2
- package/dist/openid4vc-plugin.cjs.production.min.cjs +1 -1
- package/dist/openid4vc-plugin.cjs.production.min.cjs.map +2 -2
- package/dist/openid4vc-plugin.esm.js +8 -8
- package/dist/openid4vc-plugin.esm.js.map +2 -2
- package/dist/vp/present.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/vp/present.ts +16 -16
|
@@ -68009,13 +68009,11 @@ var buildPresentation = /* @__PURE__ */ __name((options) => {
|
|
|
68009
68009
|
const submission = {
|
|
68010
68010
|
id: options.submissionId ?? makeId(),
|
|
68011
68011
|
definition_id: pd.id,
|
|
68012
|
-
descriptor_map: normalized.map(
|
|
68013
|
-
|
|
68014
|
-
|
|
68015
|
-
|
|
68016
|
-
|
|
68017
|
-
})
|
|
68018
|
-
)
|
|
68012
|
+
descriptor_map: normalized.map((n, index) => ({
|
|
68013
|
+
id: n.descriptorId,
|
|
68014
|
+
format: n.format,
|
|
68015
|
+
path: pathForIndex(index, vpFormat)
|
|
68016
|
+
}))
|
|
68019
68017
|
};
|
|
68020
68018
|
return {
|
|
68021
68019
|
unsignedVp,
|
|
@@ -68152,7 +68150,9 @@ var defaultMakeId3 = /* @__PURE__ */ __name(() => {
|
|
|
68152
68150
|
cryptoObj.getRandomValues(bytes);
|
|
68153
68151
|
return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
|
|
68154
68152
|
}
|
|
68155
|
-
|
|
68153
|
+
throw new Error(
|
|
68154
|
+
"crypto.getRandomValues is required but not available. Ensure you are running in a modern browser or Node.js environment."
|
|
68155
|
+
);
|
|
68156
68156
|
}, "defaultMakeId");
|
|
68157
68157
|
var makeUuidV4 = /* @__PURE__ */ __name((makeId) => {
|
|
68158
68158
|
const hex3 = makeId().replace(/[^0-9a-f]/gi, "");
|