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