@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
|
@@ -68088,13 +68088,11 @@ var buildPresentation = /* @__PURE__ */ __name((options) => {
|
|
|
68088
68088
|
const submission = {
|
|
68089
68089
|
id: options.submissionId ?? makeId(),
|
|
68090
68090
|
definition_id: pd.id,
|
|
68091
|
-
descriptor_map: normalized.map(
|
|
68092
|
-
|
|
68093
|
-
|
|
68094
|
-
|
|
68095
|
-
|
|
68096
|
-
})
|
|
68097
|
-
)
|
|
68091
|
+
descriptor_map: normalized.map((n, index) => ({
|
|
68092
|
+
id: n.descriptorId,
|
|
68093
|
+
format: n.format,
|
|
68094
|
+
path: pathForIndex(index, vpFormat)
|
|
68095
|
+
}))
|
|
68098
68096
|
};
|
|
68099
68097
|
return {
|
|
68100
68098
|
unsignedVp,
|
|
@@ -68231,7 +68229,9 @@ var defaultMakeId3 = /* @__PURE__ */ __name(() => {
|
|
|
68231
68229
|
cryptoObj.getRandomValues(bytes);
|
|
68232
68230
|
return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
|
|
68233
68231
|
}
|
|
68234
|
-
|
|
68232
|
+
throw new Error(
|
|
68233
|
+
"crypto.getRandomValues is required but not available. Ensure you are running in a modern browser or Node.js environment."
|
|
68234
|
+
);
|
|
68235
68235
|
}, "defaultMakeId");
|
|
68236
68236
|
var makeUuidV4 = /* @__PURE__ */ __name((makeId) => {
|
|
68237
68237
|
const hex3 = makeId().replace(/[^0-9a-f]/gi, "");
|