@learncard/openid4vc-plugin 0.2.0 → 0.2.1

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.
@@ -39701,6 +39701,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
39701
39701
  if (!match) throw new Error("Invalid RegExp string format");
39702
39702
  return { pattern: match[1], flags: match[2] };
39703
39703
  }, "parseRegexString");
39704
+ var withStringOverride = /* @__PURE__ */ __name22((schema) => {
39705
+ const metaSchema = schema;
39706
+ if (typeof metaSchema.meta === "function") {
39707
+ return metaSchema.meta({ override: { type: "string" } });
39708
+ }
39709
+ return schema;
39710
+ }, "withStringOverride");
39704
39711
  var RegExpStringValidator = external_exports2.string().refine(
39705
39712
  (str) => {
39706
39713
  try {
@@ -39720,9 +39727,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
39720
39727
  } catch (error462) {
39721
39728
  throw new Error(`Invalid RegExp: ${error462.message}`);
39722
39729
  }
39723
- }).meta({ override: { type: "string" } });
39724
- var RegExpValidator = external_exports2.instanceof(RegExp).meta({ override: { type: "string" } }).or(RegExpStringValidator).meta({ override: { type: "string" } });
39725
- var BaseStringQuery = external_exports2.string().or(external_exports2.object({ $in: external_exports2.string().array() })).or(external_exports2.object({ $regex: RegExpValidator.meta({ override: { type: "string" } }) }));
39730
+ });
39731
+ var RegExpValidator = withStringOverride(external_exports2.instanceof(RegExp).or(RegExpStringValidator));
39732
+ var BaseStringQuery = external_exports2.string().or(external_exports2.object({ $in: external_exports2.string().array() })).or(external_exports2.object({ $regex: RegExpValidator }));
39726
39733
  var StringQuery = external_exports2.union([
39727
39734
  BaseStringQuery,
39728
39735
  external_exports2.object({