@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.
- package/dist/openid4vc-plugin.cjs.development.cjs +10 -3
- package/dist/openid4vc-plugin.cjs.development.cjs.map +2 -2
- package/dist/openid4vc-plugin.cjs.production.min.cjs +18 -18
- package/dist/openid4vc-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/openid4vc-plugin.esm.js +10 -3
- package/dist/openid4vc-plugin.esm.js.map +2 -2
- package/package.json +5 -5
|
@@ -39784,6 +39784,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
39784
39784
|
if (!match) throw new Error("Invalid RegExp string format");
|
|
39785
39785
|
return { pattern: match[1], flags: match[2] };
|
|
39786
39786
|
}, "parseRegexString");
|
|
39787
|
+
var withStringOverride = /* @__PURE__ */ __name22((schema) => {
|
|
39788
|
+
const metaSchema = schema;
|
|
39789
|
+
if (typeof metaSchema.meta === "function") {
|
|
39790
|
+
return metaSchema.meta({ override: { type: "string" } });
|
|
39791
|
+
}
|
|
39792
|
+
return schema;
|
|
39793
|
+
}, "withStringOverride");
|
|
39787
39794
|
var RegExpStringValidator = external_exports2.string().refine(
|
|
39788
39795
|
(str) => {
|
|
39789
39796
|
try {
|
|
@@ -39803,9 +39810,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
39803
39810
|
} catch (error462) {
|
|
39804
39811
|
throw new Error(`Invalid RegExp: ${error462.message}`);
|
|
39805
39812
|
}
|
|
39806
|
-
})
|
|
39807
|
-
var RegExpValidator = external_exports2.instanceof(RegExp).
|
|
39808
|
-
var BaseStringQuery = external_exports2.string().or(external_exports2.object({ $in: external_exports2.string().array() })).or(external_exports2.object({ $regex: RegExpValidator
|
|
39813
|
+
});
|
|
39814
|
+
var RegExpValidator = withStringOverride(external_exports2.instanceof(RegExp).or(RegExpStringValidator));
|
|
39815
|
+
var BaseStringQuery = external_exports2.string().or(external_exports2.object({ $in: external_exports2.string().array() })).or(external_exports2.object({ $regex: RegExpValidator }));
|
|
39809
39816
|
var StringQuery = external_exports2.union([
|
|
39810
39817
|
BaseStringQuery,
|
|
39811
39818
|
external_exports2.object({
|