@learncard/network-brain-client 2.5.39 → 2.5.41

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.
@@ -28670,6 +28670,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28670
28670
  if (!match) throw new Error("Invalid RegExp string format");
28671
28671
  return { pattern: match[1], flags: match[2] };
28672
28672
  }, "parseRegexString");
28673
+ var withStringOverride = /* @__PURE__ */ __name22((schema) => {
28674
+ const metaSchema = schema;
28675
+ if (typeof metaSchema.meta === "function") {
28676
+ return metaSchema.meta({ override: { type: "string" } });
28677
+ }
28678
+ return schema;
28679
+ }, "withStringOverride");
28673
28680
  var RegExpStringValidator = external_exports2.string().refine(
28674
28681
  (str) => {
28675
28682
  try {
@@ -28689,9 +28696,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28689
28696
  } catch (error462) {
28690
28697
  throw new Error(`Invalid RegExp: ${error462.message}`);
28691
28698
  }
28692
- }).meta({ override: { type: "string" } });
28693
- var RegExpValidator = external_exports2.instanceof(RegExp).meta({ override: { type: "string" } }).or(RegExpStringValidator).meta({ override: { type: "string" } });
28694
- var BaseStringQuery = external_exports2.string().or(external_exports2.object({ $in: external_exports2.string().array() })).or(external_exports2.object({ $regex: RegExpValidator.meta({ override: { type: "string" } }) }));
28699
+ });
28700
+ var RegExpValidator = withStringOverride(external_exports2.instanceof(RegExp).or(RegExpStringValidator));
28701
+ var BaseStringQuery = external_exports2.string().or(external_exports2.object({ $in: external_exports2.string().array() })).or(external_exports2.object({ $regex: RegExpValidator }));
28695
28702
  var StringQuery = external_exports2.union([
28696
28703
  BaseStringQuery,
28697
28704
  external_exports2.object({