@learncard/sss-key-manager 0.1.12 → 0.1.13

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.
@@ -14222,6 +14222,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14222
14222
  if (!match) throw new Error("Invalid RegExp string format");
14223
14223
  return { pattern: match[1], flags: match[2] };
14224
14224
  }, "parseRegexString");
14225
+ var withStringOverride = /* @__PURE__ */ __name2((schema) => {
14226
+ const metaSchema = schema;
14227
+ if (typeof metaSchema.meta === "function") {
14228
+ return metaSchema.meta({ override: { type: "string" } });
14229
+ }
14230
+ return schema;
14231
+ }, "withStringOverride");
14225
14232
  var RegExpStringValidator = external_exports.string().refine(
14226
14233
  (str) => {
14227
14234
  try {
@@ -14241,9 +14248,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14241
14248
  } catch (error46) {
14242
14249
  throw new Error(`Invalid RegExp: ${error46.message}`);
14243
14250
  }
14244
- }).meta({ override: { type: "string" } });
14245
- var RegExpValidator = external_exports.instanceof(RegExp).meta({ override: { type: "string" } }).or(RegExpStringValidator).meta({ override: { type: "string" } });
14246
- var BaseStringQuery = external_exports.string().or(external_exports.object({ $in: external_exports.string().array() })).or(external_exports.object({ $regex: RegExpValidator.meta({ override: { type: "string" } }) }));
14251
+ });
14252
+ var RegExpValidator = withStringOverride(external_exports.instanceof(RegExp).or(RegExpStringValidator));
14253
+ var BaseStringQuery = external_exports.string().or(external_exports.object({ $in: external_exports.string().array() })).or(external_exports.object({ $regex: RegExpValidator }));
14247
14254
  var StringQuery = external_exports.union([
14248
14255
  BaseStringQuery,
14249
14256
  external_exports.object({