@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.
@@ -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
- (n, index) => ({
68093
- id: n.descriptorId,
68094
- format: n.format,
68095
- path: pathForIndex(index, vpFormat)
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
- return Math.random().toString(36).slice(2, 18);
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, "");