@authhero/kysely-adapter 0.11.2 → 0.12.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/kysely-adapter.cjs +1 -1
- package/dist/kysely-adapter.d.ts +227 -91
- package/dist/kysely-adapter.iife.js +1 -1
- package/dist/kysely-adapter.mjs +65 -54
- package/package.json +2 -2
package/dist/kysely-adapter.mjs
CHANGED
|
@@ -25,7 +25,9 @@ function Yn(n) {
|
|
|
25
25
|
updated_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
26
26
|
tenant_id: e,
|
|
27
27
|
email_verified: t.email_verified ? 1 : 0,
|
|
28
|
-
is_social: t.is_social ? 1 : 0
|
|
28
|
+
is_social: t.is_social ? 1 : 0,
|
|
29
|
+
app_metadata: JSON.stringify(t.app_metadata),
|
|
30
|
+
user_metadata: JSON.stringify(t.user_metadata)
|
|
29
31
|
};
|
|
30
32
|
try {
|
|
31
33
|
await n.insertInto("users").values(a).execute();
|
|
@@ -564,7 +566,7 @@ class S {
|
|
|
564
566
|
return this._refinement((s, r) => e(s) ? !0 : (r.addIssue(typeof t == "function" ? t(s, r) : t), !1));
|
|
565
567
|
}
|
|
566
568
|
_refinement(e) {
|
|
567
|
-
return new
|
|
569
|
+
return new J({
|
|
568
570
|
schema: this,
|
|
569
571
|
typeName: w.ZodEffects,
|
|
570
572
|
effect: { type: "refinement", refinement: e }
|
|
@@ -595,7 +597,7 @@ class S {
|
|
|
595
597
|
return ot.create(this, e, this._def);
|
|
596
598
|
}
|
|
597
599
|
transform(e) {
|
|
598
|
-
return new
|
|
600
|
+
return new J({
|
|
599
601
|
...T(this._def),
|
|
600
602
|
schema: this,
|
|
601
603
|
typeName: w.ZodEffects,
|
|
@@ -1978,8 +1980,8 @@ it.create = (n, e) => new it({
|
|
|
1978
1980
|
typeName: w.ZodUnion,
|
|
1979
1981
|
...T(e)
|
|
1980
1982
|
});
|
|
1981
|
-
const le = (n) => n instanceof ct ? le(n.schema) : n instanceof
|
|
1982
|
-
class
|
|
1983
|
+
const le = (n) => n instanceof ct ? le(n.schema) : n instanceof J ? le(n.innerType()) : n instanceof ut ? [n.value] : n instanceof _e ? n.options : n instanceof lt ? N.objectValues(n.enum) : n instanceof pt ? le(n._def.innerType) : n instanceof rt ? [void 0] : n instanceof at ? [null] : n instanceof Y ? [void 0, ...le(n.unwrap())] : n instanceof ge ? [null, ...le(n.unwrap())] : n instanceof dn || n instanceof ft ? le(n.unwrap()) : n instanceof ht ? le(n._def.innerType) : [];
|
|
1984
|
+
class qt extends S {
|
|
1983
1985
|
_parse(e) {
|
|
1984
1986
|
const { ctx: t } = this._processInputParams(e);
|
|
1985
1987
|
if (t.parsedType !== _.object)
|
|
@@ -2032,7 +2034,7 @@ class Jt extends S {
|
|
|
2032
2034
|
r.set(d, a);
|
|
2033
2035
|
}
|
|
2034
2036
|
}
|
|
2035
|
-
return new
|
|
2037
|
+
return new qt({
|
|
2036
2038
|
typeName: w.ZodDiscriminatedUnion,
|
|
2037
2039
|
discriminator: e,
|
|
2038
2040
|
options: t,
|
|
@@ -2568,7 +2570,7 @@ We.create = (n, e) => new We({
|
|
|
2568
2570
|
typeName: w.ZodPromise,
|
|
2569
2571
|
...T(e)
|
|
2570
2572
|
});
|
|
2571
|
-
class
|
|
2573
|
+
class J extends S {
|
|
2572
2574
|
innerType() {
|
|
2573
2575
|
return this._def.schema;
|
|
2574
2576
|
}
|
|
@@ -2645,13 +2647,13 @@ class q extends S {
|
|
|
2645
2647
|
N.assertNever(r);
|
|
2646
2648
|
}
|
|
2647
2649
|
}
|
|
2648
|
-
|
|
2650
|
+
J.create = (n, e, t) => new J({
|
|
2649
2651
|
schema: n,
|
|
2650
2652
|
typeName: w.ZodEffects,
|
|
2651
2653
|
effect: e,
|
|
2652
2654
|
...T(t)
|
|
2653
2655
|
});
|
|
2654
|
-
|
|
2656
|
+
J.createWithPreprocess = (n, e, t) => new J({
|
|
2655
2657
|
schema: e,
|
|
2656
2658
|
effect: { type: "preprocess", transform: n },
|
|
2657
2659
|
typeName: w.ZodEffects,
|
|
@@ -2849,7 +2851,7 @@ var w;
|
|
|
2849
2851
|
})(w || (w = {}));
|
|
2850
2852
|
const bs = (n, e = {
|
|
2851
2853
|
message: `Input not instance of ${n.name}`
|
|
2852
|
-
}) => Sn((t) => t instanceof n, e), Zn = F.create, jn = fe.create, ks = Lt.create, xs = me.create, Nn = st.create, Ts = je.create, Os = Pt.create, Ss = rt.create, Zs = at.create, js = Be.create, Ns = Se.create, Cs = re.create, Is = Dt.create, Es = B.create, As = I.create, Rs = I.strictCreate, $s = it.create, Ps =
|
|
2854
|
+
}) => Sn((t) => t instanceof n, e), Zn = F.create, jn = fe.create, ks = Lt.create, xs = me.create, Nn = st.create, Ts = je.create, Os = Pt.create, Ss = rt.create, Zs = at.create, js = Be.create, Ns = Se.create, Cs = re.create, Is = Dt.create, Es = B.create, As = I.create, Rs = I.strictCreate, $s = it.create, Ps = qt.create, Ds = ot.create, Ms = ee.create, Ls = dt.create, Vs = Mt.create, Us = Ne.create, Fs = Ue.create, zs = ct.create, Bs = ut.create, Ws = _e.create, Js = lt.create, qs = We.create, fn = J.create, Ks = Y.create, Hs = ge.create, Qs = J.createWithPreprocess, Ys = Nt.create, Gs = () => Zn().optional(), Xs = () => jn().optional(), er = () => Nn().optional(), tr = {
|
|
2853
2855
|
string: (n) => F.create({ ...n, coerce: !0 }),
|
|
2854
2856
|
number: (n) => fe.create({ ...n, coerce: !0 }),
|
|
2855
2857
|
boolean: (n) => st.create({
|
|
@@ -2900,7 +2902,7 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2900
2902
|
ZodArray: B,
|
|
2901
2903
|
ZodObject: I,
|
|
2902
2904
|
ZodUnion: it,
|
|
2903
|
-
ZodDiscriminatedUnion:
|
|
2905
|
+
ZodDiscriminatedUnion: qt,
|
|
2904
2906
|
ZodIntersection: ot,
|
|
2905
2907
|
ZodTuple: ee,
|
|
2906
2908
|
ZodRecord: dt,
|
|
@@ -2912,8 +2914,8 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2912
2914
|
ZodEnum: _e,
|
|
2913
2915
|
ZodNativeEnum: lt,
|
|
2914
2916
|
ZodPromise: We,
|
|
2915
|
-
ZodEffects:
|
|
2916
|
-
ZodTransformer:
|
|
2917
|
+
ZodEffects: J,
|
|
2918
|
+
ZodTransformer: J,
|
|
2917
2919
|
ZodOptional: Y,
|
|
2918
2920
|
ZodNullable: ge,
|
|
2919
2921
|
ZodDefault: pt,
|
|
@@ -2946,7 +2948,7 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2946
2948
|
literal: Bs,
|
|
2947
2949
|
map: Vs,
|
|
2948
2950
|
nan: ks,
|
|
2949
|
-
nativeEnum:
|
|
2951
|
+
nativeEnum: Js,
|
|
2950
2952
|
never: Cs,
|
|
2951
2953
|
null: Zs,
|
|
2952
2954
|
nullable: Hs,
|
|
@@ -2958,7 +2960,7 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2958
2960
|
ostring: Gs,
|
|
2959
2961
|
pipeline: Ys,
|
|
2960
2962
|
preprocess: Qs,
|
|
2961
|
-
promise:
|
|
2963
|
+
promise: qs,
|
|
2962
2964
|
record: Ls,
|
|
2963
2965
|
set: Us,
|
|
2964
2966
|
strictObject: Rs,
|
|
@@ -3013,7 +3015,9 @@ const cn = i.object({
|
|
|
3013
3015
|
locale: i.string().optional(),
|
|
3014
3016
|
linked_to: i.string().optional(),
|
|
3015
3017
|
profileData: i.string().optional(),
|
|
3016
|
-
user_id: i.string().optional()
|
|
3018
|
+
user_id: i.string().optional(),
|
|
3019
|
+
app_metadata: i.any().default({}).optional(),
|
|
3020
|
+
user_metadata: i.any().default({}).optional()
|
|
3017
3021
|
}), ar = Cn.extend({
|
|
3018
3022
|
email_verified: i.boolean().default(!1),
|
|
3019
3023
|
verify_email: i.boolean().optional(),
|
|
@@ -3023,7 +3027,9 @@ const cn = i.object({
|
|
|
3023
3027
|
provider: i.string().default("email"),
|
|
3024
3028
|
connection: i.string().default("email")
|
|
3025
3029
|
});
|
|
3026
|
-
|
|
3030
|
+
i.object({
|
|
3031
|
+
...ar.shape,
|
|
3032
|
+
...cn.shape,
|
|
3027
3033
|
user_id: i.string(),
|
|
3028
3034
|
// TODO: this not might be correct if you use the username
|
|
3029
3035
|
email: i.string(),
|
|
@@ -3136,6 +3142,7 @@ const pr = i.object({
|
|
|
3136
3142
|
"google-oauth2",
|
|
3137
3143
|
"facebook",
|
|
3138
3144
|
"vipps",
|
|
3145
|
+
"freja",
|
|
3139
3146
|
"apple",
|
|
3140
3147
|
"email",
|
|
3141
3148
|
"Username-Password-Authentication",
|
|
@@ -3597,6 +3604,8 @@ function $r(n) {
|
|
|
3597
3604
|
email: s.email || "",
|
|
3598
3605
|
email_verified: s.email_verified === 1,
|
|
3599
3606
|
is_social: s.is_social === 1,
|
|
3607
|
+
app_metadata: JSON.parse(s.app_metadata),
|
|
3608
|
+
user_metadata: JSON.parse(s.user_metadata),
|
|
3600
3609
|
identities: [
|
|
3601
3610
|
{
|
|
3602
3611
|
connection: s.connection,
|
|
@@ -3665,6 +3674,8 @@ function Pr(n) {
|
|
|
3665
3674
|
...l,
|
|
3666
3675
|
email_verified: l.email_verified === 1,
|
|
3667
3676
|
is_social: l.is_social === 1,
|
|
3677
|
+
app_metadata: JSON.parse(l.app_metadata),
|
|
3678
|
+
user_metadata: JSON.parse(l.user_metadata),
|
|
3668
3679
|
identities: [
|
|
3669
3680
|
{
|
|
3670
3681
|
connection: l.connection,
|
|
@@ -3764,7 +3775,7 @@ function Wr(n) {
|
|
|
3764
3775
|
};
|
|
3765
3776
|
};
|
|
3766
3777
|
}
|
|
3767
|
-
function
|
|
3778
|
+
function Jr(n) {
|
|
3768
3779
|
return async (e, t) => {
|
|
3769
3780
|
const s = {
|
|
3770
3781
|
...t,
|
|
@@ -3774,7 +3785,7 @@ function qr(n) {
|
|
|
3774
3785
|
await n.updateTable("tenants").set(s).where("id", "=", e).execute();
|
|
3775
3786
|
};
|
|
3776
3787
|
}
|
|
3777
|
-
function
|
|
3788
|
+
function qr(n) {
|
|
3778
3789
|
return async (e) => (await n.deleteFrom("tenants").where("tenants.id", "=", e).execute()).length === 1;
|
|
3779
3790
|
}
|
|
3780
3791
|
function Kr(n) {
|
|
@@ -3782,8 +3793,8 @@ function Kr(n) {
|
|
|
3782
3793
|
create: zr(n),
|
|
3783
3794
|
get: Br(n),
|
|
3784
3795
|
list: Wr(n),
|
|
3785
|
-
update:
|
|
3786
|
-
remove:
|
|
3796
|
+
update: Jr(n),
|
|
3797
|
+
remove: qr(n)
|
|
3787
3798
|
};
|
|
3788
3799
|
}
|
|
3789
3800
|
function mn(n) {
|
|
@@ -4370,7 +4381,7 @@ class V extends Error {
|
|
|
4370
4381
|
}
|
|
4371
4382
|
}
|
|
4372
4383
|
V.create = (n) => new V(n);
|
|
4373
|
-
const
|
|
4384
|
+
const Je = (n, e) => {
|
|
4374
4385
|
let t;
|
|
4375
4386
|
switch (n.code) {
|
|
4376
4387
|
case h.invalid_type:
|
|
@@ -4426,7 +4437,7 @@ const qe = (n, e) => {
|
|
|
4426
4437
|
}
|
|
4427
4438
|
return { message: t };
|
|
4428
4439
|
};
|
|
4429
|
-
let Mn =
|
|
4440
|
+
let Mn = Je;
|
|
4430
4441
|
function Ca(n) {
|
|
4431
4442
|
Mn = n;
|
|
4432
4443
|
}
|
|
@@ -4463,7 +4474,7 @@ function m(n, e) {
|
|
|
4463
4474
|
n.common.contextualErrorMap,
|
|
4464
4475
|
n.schemaErrorMap,
|
|
4465
4476
|
t,
|
|
4466
|
-
t ===
|
|
4477
|
+
t === Je ? void 0 : Je
|
|
4467
4478
|
// then global default map
|
|
4468
4479
|
].filter((r) => !!r)
|
|
4469
4480
|
});
|
|
@@ -4661,7 +4672,7 @@ class Z {
|
|
|
4661
4672
|
return this._refinement((s, r) => e(s) ? !0 : (r.addIssue(typeof t == "function" ? t(s, r) : t), !1));
|
|
4662
4673
|
}
|
|
4663
4674
|
_refinement(e) {
|
|
4664
|
-
return new
|
|
4675
|
+
return new q({
|
|
4665
4676
|
schema: this,
|
|
4666
4677
|
typeName: b.ZodEffects,
|
|
4667
4678
|
effect: { type: "refinement", refinement: e }
|
|
@@ -4692,7 +4703,7 @@ class Z {
|
|
|
4692
4703
|
return bt.create(this, e, this._def);
|
|
4693
4704
|
}
|
|
4694
4705
|
transform(e) {
|
|
4695
|
-
return new
|
|
4706
|
+
return new q({
|
|
4696
4707
|
...O(this._def),
|
|
4697
4708
|
schema: this,
|
|
4698
4709
|
typeName: b.ZodEffects,
|
|
@@ -5120,7 +5131,7 @@ z.create = (n) => {
|
|
|
5120
5131
|
...O(n)
|
|
5121
5132
|
});
|
|
5122
5133
|
};
|
|
5123
|
-
function
|
|
5134
|
+
function Ja(n, e) {
|
|
5124
5135
|
const t = (n.toString().split(".")[1] || "").length, s = (e.toString().split(".")[1] || "").length, r = t > s ? t : s, a = parseInt(n.toFixed(r).replace(".", "")), o = parseInt(e.toFixed(r).replace(".", ""));
|
|
5125
5136
|
return a % o / Math.pow(10, r);
|
|
5126
5137
|
}
|
|
@@ -5159,7 +5170,7 @@ class ye extends Z {
|
|
|
5159
5170
|
inclusive: a.inclusive,
|
|
5160
5171
|
exact: !1,
|
|
5161
5172
|
message: a.message
|
|
5162
|
-
}), r.dirty()) : a.kind === "multipleOf" ?
|
|
5173
|
+
}), r.dirty()) : a.kind === "multipleOf" ? Ja(e.data, a.value) !== 0 && (s = this._getOrReturnCtx(e, s), m(s, {
|
|
5163
5174
|
code: h.not_multiple_of,
|
|
5164
5175
|
multipleOf: a.value,
|
|
5165
5176
|
message: a.message
|
|
@@ -5571,7 +5582,7 @@ vt.create = (n) => new vt({
|
|
|
5571
5582
|
typeName: b.ZodNull,
|
|
5572
5583
|
...O(n)
|
|
5573
5584
|
});
|
|
5574
|
-
class
|
|
5585
|
+
class qe extends Z {
|
|
5575
5586
|
constructor() {
|
|
5576
5587
|
super(...arguments), this._any = !0;
|
|
5577
5588
|
}
|
|
@@ -5579,7 +5590,7 @@ class Je extends Z {
|
|
|
5579
5590
|
return M(e.data);
|
|
5580
5591
|
}
|
|
5581
5592
|
}
|
|
5582
|
-
|
|
5593
|
+
qe.create = (n) => new qe({
|
|
5583
5594
|
typeName: b.ZodAny,
|
|
5584
5595
|
...O(n)
|
|
5585
5596
|
});
|
|
@@ -6075,7 +6086,7 @@ wt.create = (n, e) => new wt({
|
|
|
6075
6086
|
typeName: b.ZodUnion,
|
|
6076
6087
|
...O(e)
|
|
6077
6088
|
});
|
|
6078
|
-
const se = (n) => n instanceof xt ? se(n.schema) : n instanceof
|
|
6089
|
+
const se = (n) => n instanceof xt ? se(n.schema) : n instanceof q ? se(n.innerType()) : n instanceof Tt ? [n.value] : n instanceof we ? n.options : n instanceof Ot ? C.objectValues(n.enum) : n instanceof St ? se(n._def.innerType) : n instanceof yt ? [void 0] : n instanceof vt ? [null] : n instanceof G ? [void 0, ...se(n.unwrap())] : n instanceof be ? [null, ...se(n.unwrap())] : n instanceof pn || n instanceof jt ? se(n.unwrap()) : n instanceof Zt ? se(n._def.innerType) : [];
|
|
6079
6090
|
class Kt extends Z {
|
|
6080
6091
|
_parse(e) {
|
|
6081
6092
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -6425,7 +6436,7 @@ class Fe extends Z {
|
|
|
6425
6436
|
t.common.contextualErrorMap,
|
|
6426
6437
|
t.schemaErrorMap,
|
|
6427
6438
|
Vt(),
|
|
6428
|
-
|
|
6439
|
+
Je
|
|
6429
6440
|
].filter((u) => !!u),
|
|
6430
6441
|
issueData: {
|
|
6431
6442
|
code: h.invalid_arguments,
|
|
@@ -6441,7 +6452,7 @@ class Fe extends Z {
|
|
|
6441
6452
|
t.common.contextualErrorMap,
|
|
6442
6453
|
t.schemaErrorMap,
|
|
6443
6454
|
Vt(),
|
|
6444
|
-
|
|
6455
|
+
Je
|
|
6445
6456
|
].filter((u) => !!u),
|
|
6446
6457
|
issueData: {
|
|
6447
6458
|
code: h.invalid_return_type,
|
|
@@ -6665,7 +6676,7 @@ Ke.create = (n, e) => new Ke({
|
|
|
6665
6676
|
typeName: b.ZodPromise,
|
|
6666
6677
|
...O(e)
|
|
6667
6678
|
});
|
|
6668
|
-
class
|
|
6679
|
+
class q extends Z {
|
|
6669
6680
|
innerType() {
|
|
6670
6681
|
return this._def.schema;
|
|
6671
6682
|
}
|
|
@@ -6742,13 +6753,13 @@ class J extends Z {
|
|
|
6742
6753
|
C.assertNever(r);
|
|
6743
6754
|
}
|
|
6744
6755
|
}
|
|
6745
|
-
|
|
6756
|
+
q.create = (n, e, t) => new q({
|
|
6746
6757
|
schema: n,
|
|
6747
6758
|
typeName: b.ZodEffects,
|
|
6748
6759
|
effect: e,
|
|
6749
6760
|
...O(t)
|
|
6750
6761
|
});
|
|
6751
|
-
|
|
6762
|
+
q.createWithPreprocess = (n, e, t) => new q({
|
|
6752
6763
|
schema: e,
|
|
6753
6764
|
effect: { type: "preprocess", transform: n },
|
|
6754
6765
|
typeName: b.ZodEffects,
|
|
@@ -6843,7 +6854,7 @@ Zt.create = (n, e) => new Zt({
|
|
|
6843
6854
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
6844
6855
|
...O(e)
|
|
6845
6856
|
});
|
|
6846
|
-
class
|
|
6857
|
+
class Jt extends Z {
|
|
6847
6858
|
_parse(e) {
|
|
6848
6859
|
if (this._getType(e) !== g.nan) {
|
|
6849
6860
|
const s = this._getOrReturnCtx(e);
|
|
@@ -6856,11 +6867,11 @@ class qt extends Z {
|
|
|
6856
6867
|
return { status: "valid", value: e.data };
|
|
6857
6868
|
}
|
|
6858
6869
|
}
|
|
6859
|
-
|
|
6870
|
+
Jt.create = (n) => new Jt({
|
|
6860
6871
|
typeName: b.ZodNaN,
|
|
6861
6872
|
...O(n)
|
|
6862
6873
|
});
|
|
6863
|
-
const
|
|
6874
|
+
const qa = Symbol("zod_brand");
|
|
6864
6875
|
class pn extends Z {
|
|
6865
6876
|
_parse(e) {
|
|
6866
6877
|
const { ctx: t } = this._processInputParams(e), s = t.data;
|
|
@@ -6929,13 +6940,13 @@ jt.create = (n, e) => new jt({
|
|
|
6929
6940
|
...O(e)
|
|
6930
6941
|
});
|
|
6931
6942
|
function Bn(n, e = {}, t) {
|
|
6932
|
-
return n ?
|
|
6943
|
+
return n ? qe.create().superRefine((s, r) => {
|
|
6933
6944
|
var a, o;
|
|
6934
6945
|
if (!n(s)) {
|
|
6935
6946
|
const d = typeof e == "function" ? e(s) : typeof e == "string" ? { message: e } : e, c = (o = (a = d.fatal) !== null && a !== void 0 ? a : t) !== null && o !== void 0 ? o : !0, u = typeof d == "string" ? { message: d } : d;
|
|
6936
6947
|
r.addIssue({ code: "custom", ...u, fatal: c });
|
|
6937
6948
|
}
|
|
6938
|
-
}) :
|
|
6949
|
+
}) : qe.create();
|
|
6939
6950
|
}
|
|
6940
6951
|
const Ka = {
|
|
6941
6952
|
object: E.lazycreate
|
|
@@ -6946,7 +6957,7 @@ var b;
|
|
|
6946
6957
|
})(b || (b = {}));
|
|
6947
6958
|
const Ha = (n, e = {
|
|
6948
6959
|
message: `Input not instance of ${n.name}`
|
|
6949
|
-
}) => Bn((t) => t instanceof n, e), Wn = z.create,
|
|
6960
|
+
}) => Bn((t) => t instanceof n, e), Wn = z.create, Jn = ye.create, Qa = Jt.create, Ya = ve.create, qn = gt.create, Ga = Ce.create, Xa = zt.create, ei = yt.create, ti = vt.create, ni = qe.create, si = Ze.create, ri = ae.create, ai = Bt.create, ii = W.create, oi = E.create, di = E.strictCreate, ci = wt.create, ui = Kt.create, li = bt.create, pi = ne.create, hi = kt.create, fi = Wt.create, mi = Ie.create, _i = Fe.create, gi = xt.create, yi = Tt.create, vi = we.create, wi = Ot.create, bi = Ke.create, yn = q.create, ki = G.create, xi = be.create, Ti = q.createWithPreprocess, Oi = Ct.create, Si = () => Wn().optional(), Zi = () => Jn().optional(), ji = () => qn().optional(), Ni = {
|
|
6950
6961
|
string: (n) => z.create({ ...n, coerce: !0 }),
|
|
6951
6962
|
number: (n) => ye.create({ ...n, coerce: !0 }),
|
|
6952
6963
|
boolean: (n) => gt.create({
|
|
@@ -6958,7 +6969,7 @@ const Ha = (n, e = {
|
|
|
6958
6969
|
}, Ci = k;
|
|
6959
6970
|
var Ii = /* @__PURE__ */ Object.freeze({
|
|
6960
6971
|
__proto__: null,
|
|
6961
|
-
defaultErrorMap:
|
|
6972
|
+
defaultErrorMap: Je,
|
|
6962
6973
|
setErrorMap: Ca,
|
|
6963
6974
|
getErrorMap: Vt,
|
|
6964
6975
|
makeIssue: Ut,
|
|
@@ -6990,7 +7001,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
6990
7001
|
ZodSymbol: zt,
|
|
6991
7002
|
ZodUndefined: yt,
|
|
6992
7003
|
ZodNull: vt,
|
|
6993
|
-
ZodAny:
|
|
7004
|
+
ZodAny: qe,
|
|
6994
7005
|
ZodUnknown: Ze,
|
|
6995
7006
|
ZodNever: ae,
|
|
6996
7007
|
ZodVoid: Bt,
|
|
@@ -7009,14 +7020,14 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7009
7020
|
ZodEnum: we,
|
|
7010
7021
|
ZodNativeEnum: Ot,
|
|
7011
7022
|
ZodPromise: Ke,
|
|
7012
|
-
ZodEffects:
|
|
7013
|
-
ZodTransformer:
|
|
7023
|
+
ZodEffects: q,
|
|
7024
|
+
ZodTransformer: q,
|
|
7014
7025
|
ZodOptional: G,
|
|
7015
7026
|
ZodNullable: be,
|
|
7016
7027
|
ZodDefault: St,
|
|
7017
7028
|
ZodCatch: Zt,
|
|
7018
|
-
ZodNaN:
|
|
7019
|
-
BRAND:
|
|
7029
|
+
ZodNaN: Jt,
|
|
7030
|
+
BRAND: qa,
|
|
7020
7031
|
ZodBranded: pn,
|
|
7021
7032
|
ZodPipeline: Ct,
|
|
7022
7033
|
ZodReadonly: jt,
|
|
@@ -7031,7 +7042,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7031
7042
|
any: ni,
|
|
7032
7043
|
array: ii,
|
|
7033
7044
|
bigint: Ya,
|
|
7034
|
-
boolean:
|
|
7045
|
+
boolean: qn,
|
|
7035
7046
|
date: Ga,
|
|
7036
7047
|
discriminatedUnion: ui,
|
|
7037
7048
|
effect: yn,
|
|
@@ -7047,7 +7058,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7047
7058
|
never: ri,
|
|
7048
7059
|
null: ti,
|
|
7049
7060
|
nullable: xi,
|
|
7050
|
-
number:
|
|
7061
|
+
number: Jn,
|
|
7051
7062
|
object: oi,
|
|
7052
7063
|
oboolean: ji,
|
|
7053
7064
|
onumber: Zi,
|
|
@@ -7260,7 +7271,7 @@ function Wi(n) {
|
|
|
7260
7271
|
});
|
|
7261
7272
|
};
|
|
7262
7273
|
}
|
|
7263
|
-
function
|
|
7274
|
+
function Ji(n) {
|
|
7264
7275
|
return async (e, t) => {
|
|
7265
7276
|
var o, d, c, u, l, j, A, U, ie, Re, oe, de, ce, $e, Pe, K, H, Q;
|
|
7266
7277
|
const { colors: s, font: r, ...a } = t;
|
|
@@ -7288,10 +7299,10 @@ function qi(n) {
|
|
|
7288
7299
|
}
|
|
7289
7300
|
};
|
|
7290
7301
|
}
|
|
7291
|
-
function
|
|
7302
|
+
function qi(n) {
|
|
7292
7303
|
return {
|
|
7293
7304
|
get: Wi(n),
|
|
7294
|
-
set:
|
|
7305
|
+
set: Ji(n)
|
|
7295
7306
|
};
|
|
7296
7307
|
}
|
|
7297
7308
|
function Ki(n) {
|
|
@@ -7467,7 +7478,7 @@ function ho(n) {
|
|
|
7467
7478
|
function mo(n) {
|
|
7468
7479
|
return {
|
|
7469
7480
|
applications: Ta(n),
|
|
7470
|
-
branding:
|
|
7481
|
+
branding: qi(n),
|
|
7471
7482
|
clients: Di(n),
|
|
7472
7483
|
codes: ya(n),
|
|
7473
7484
|
connections: Pi(n),
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.12.1",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"kysely-bun-sqlite": "^0.3.2",
|
|
42
42
|
"kysely-planetscale": "^1.4.0",
|
|
43
43
|
"nanoid": "^5.0.7",
|
|
44
|
-
"@authhero/adapter-interfaces": "^0.
|
|
44
|
+
"@authhero/adapter-interfaces": "^0.19.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts",
|