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