@authhero/kysely-adapter 0.12.1 → 0.13.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.mjs
CHANGED
|
@@ -566,7 +566,7 @@ class S {
|
|
|
566
566
|
return this._refinement((s, r) => e(s) ? !0 : (r.addIssue(typeof t == "function" ? t(s, r) : t), !1));
|
|
567
567
|
}
|
|
568
568
|
_refinement(e) {
|
|
569
|
-
return new
|
|
569
|
+
return new W({
|
|
570
570
|
schema: this,
|
|
571
571
|
typeName: w.ZodEffects,
|
|
572
572
|
effect: { type: "refinement", refinement: e }
|
|
@@ -588,7 +588,7 @@ class S {
|
|
|
588
588
|
return B.create(this, this._def);
|
|
589
589
|
}
|
|
590
590
|
promise() {
|
|
591
|
-
return
|
|
591
|
+
return Je.create(this, this._def);
|
|
592
592
|
}
|
|
593
593
|
or(e) {
|
|
594
594
|
return it.create([this, e], this._def);
|
|
@@ -597,7 +597,7 @@ class S {
|
|
|
597
597
|
return ot.create(this, e, this._def);
|
|
598
598
|
}
|
|
599
599
|
transform(e) {
|
|
600
|
-
return new
|
|
600
|
+
return new W({
|
|
601
601
|
...T(this._def),
|
|
602
602
|
schema: this,
|
|
603
603
|
typeName: w.ZodEffects,
|
|
@@ -1980,7 +1980,7 @@ it.create = (n, e) => new it({
|
|
|
1980
1980
|
typeName: w.ZodUnion,
|
|
1981
1981
|
...T(e)
|
|
1982
1982
|
});
|
|
1983
|
-
const le = (n) => n instanceof ct ? le(n.schema) : n instanceof
|
|
1983
|
+
const le = (n) => n instanceof ct ? le(n.schema) : n instanceof W ? 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
1984
|
class qt extends S {
|
|
1985
1985
|
_parse(e) {
|
|
1986
1986
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -2355,7 +2355,7 @@ class Ue extends S {
|
|
|
2355
2355
|
});
|
|
2356
2356
|
}
|
|
2357
2357
|
const a = { errorMap: t.common.contextualErrorMap }, o = t.data;
|
|
2358
|
-
if (this._def.returns instanceof
|
|
2358
|
+
if (this._def.returns instanceof Je) {
|
|
2359
2359
|
const d = this;
|
|
2360
2360
|
return D(async function(...c) {
|
|
2361
2361
|
const u = new L([]), l = await d._def.args.parseAsync(c, a).catch((A) => {
|
|
@@ -2546,7 +2546,7 @@ lt.create = (n, e) => new lt({
|
|
|
2546
2546
|
typeName: w.ZodNativeEnum,
|
|
2547
2547
|
...T(e)
|
|
2548
2548
|
});
|
|
2549
|
-
class
|
|
2549
|
+
class Je extends S {
|
|
2550
2550
|
unwrap() {
|
|
2551
2551
|
return this._def.type;
|
|
2552
2552
|
}
|
|
@@ -2565,12 +2565,12 @@ class We extends S {
|
|
|
2565
2565
|
})));
|
|
2566
2566
|
}
|
|
2567
2567
|
}
|
|
2568
|
-
|
|
2568
|
+
Je.create = (n, e) => new Je({
|
|
2569
2569
|
type: n,
|
|
2570
2570
|
typeName: w.ZodPromise,
|
|
2571
2571
|
...T(e)
|
|
2572
2572
|
});
|
|
2573
|
-
class
|
|
2573
|
+
class W extends S {
|
|
2574
2574
|
innerType() {
|
|
2575
2575
|
return this._def.schema;
|
|
2576
2576
|
}
|
|
@@ -2647,13 +2647,13 @@ class J extends S {
|
|
|
2647
2647
|
N.assertNever(r);
|
|
2648
2648
|
}
|
|
2649
2649
|
}
|
|
2650
|
-
|
|
2650
|
+
W.create = (n, e, t) => new W({
|
|
2651
2651
|
schema: n,
|
|
2652
2652
|
typeName: w.ZodEffects,
|
|
2653
2653
|
effect: e,
|
|
2654
2654
|
...T(t)
|
|
2655
2655
|
});
|
|
2656
|
-
|
|
2656
|
+
W.createWithPreprocess = (n, e, t) => new W({
|
|
2657
2657
|
schema: e,
|
|
2658
2658
|
effect: { type: "preprocess", transform: n },
|
|
2659
2659
|
typeName: w.ZodEffects,
|
|
@@ -2851,7 +2851,7 @@ var w;
|
|
|
2851
2851
|
})(w || (w = {}));
|
|
2852
2852
|
const bs = (n, e = {
|
|
2853
2853
|
message: `Input not instance of ${n.name}`
|
|
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,
|
|
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, Js = _e.create, Ws = lt.create, qs = Je.create, fn = W.create, Ks = Y.create, Hs = ge.create, Qs = W.createWithPreprocess, Ys = Nt.create, Gs = () => Zn().optional(), Xs = () => jn().optional(), er = () => Nn().optional(), tr = {
|
|
2855
2855
|
string: (n) => F.create({ ...n, coerce: !0 }),
|
|
2856
2856
|
number: (n) => fe.create({ ...n, coerce: !0 }),
|
|
2857
2857
|
boolean: (n) => st.create({
|
|
@@ -2913,9 +2913,9 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2913
2913
|
ZodLiteral: ut,
|
|
2914
2914
|
ZodEnum: _e,
|
|
2915
2915
|
ZodNativeEnum: lt,
|
|
2916
|
-
ZodPromise:
|
|
2917
|
-
ZodEffects:
|
|
2918
|
-
ZodTransformer:
|
|
2916
|
+
ZodPromise: Je,
|
|
2917
|
+
ZodEffects: W,
|
|
2918
|
+
ZodTransformer: W,
|
|
2919
2919
|
ZodOptional: Y,
|
|
2920
2920
|
ZodNullable: ge,
|
|
2921
2921
|
ZodDefault: pt,
|
|
@@ -2940,7 +2940,7 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2940
2940
|
date: Ts,
|
|
2941
2941
|
discriminatedUnion: Ps,
|
|
2942
2942
|
effect: fn,
|
|
2943
|
-
enum:
|
|
2943
|
+
enum: Js,
|
|
2944
2944
|
function: Fs,
|
|
2945
2945
|
instanceof: bs,
|
|
2946
2946
|
intersection: Ds,
|
|
@@ -2948,7 +2948,7 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2948
2948
|
literal: Bs,
|
|
2949
2949
|
map: Vs,
|
|
2950
2950
|
nan: ks,
|
|
2951
|
-
nativeEnum:
|
|
2951
|
+
nativeEnum: Ws,
|
|
2952
2952
|
never: Cs,
|
|
2953
2953
|
null: Zs,
|
|
2954
2954
|
nullable: Hs,
|
|
@@ -3117,7 +3117,8 @@ const lr = i.object({
|
|
|
3117
3117
|
scope: i.string().optional(),
|
|
3118
3118
|
code_challenge_method: i.nativeEnum(An).optional(),
|
|
3119
3119
|
code_challenge: i.string().optional(),
|
|
3120
|
-
username: i.string().optional()
|
|
3120
|
+
username: i.string().optional(),
|
|
3121
|
+
ui_locales: i.string().optional()
|
|
3121
3122
|
});
|
|
3122
3123
|
i.object({
|
|
3123
3124
|
colors: i.object({
|
|
@@ -3709,7 +3710,7 @@ function Lr(n) {
|
|
|
3709
3710
|
email_verified: Mr(s),
|
|
3710
3711
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
3711
3712
|
};
|
|
3712
|
-
return (await n.updateTable("users").set(r).where("users.tenant_id", "=", e).where("users.user_id", "=", t).execute()).length === 1;
|
|
3713
|
+
return s.app_metadata && (r.app_metadata = JSON.stringify(s.app_metadata)), s.user_metadata && (r.user_metadata = JSON.stringify(s.user_metadata)), (await n.updateTable("users").set(r).where("users.tenant_id", "=", e).where("users.user_id", "=", t).execute()).length === 1;
|
|
3713
3714
|
};
|
|
3714
3715
|
}
|
|
3715
3716
|
function Vr(n) {
|
|
@@ -3753,7 +3754,7 @@ function Br(n) {
|
|
|
3753
3754
|
return t ? R(t) : null;
|
|
3754
3755
|
};
|
|
3755
3756
|
}
|
|
3756
|
-
function
|
|
3757
|
+
function Jr(n) {
|
|
3757
3758
|
return async (e) => {
|
|
3758
3759
|
let t = n.selectFrom("tenants");
|
|
3759
3760
|
if (e.sort && e.sort.sort_by) {
|
|
@@ -3775,7 +3776,7 @@ function Wr(n) {
|
|
|
3775
3776
|
};
|
|
3776
3777
|
};
|
|
3777
3778
|
}
|
|
3778
|
-
function
|
|
3779
|
+
function Wr(n) {
|
|
3779
3780
|
return async (e, t) => {
|
|
3780
3781
|
const s = {
|
|
3781
3782
|
...t,
|
|
@@ -3792,8 +3793,8 @@ function Kr(n) {
|
|
|
3792
3793
|
return {
|
|
3793
3794
|
create: zr(n),
|
|
3794
3795
|
get: Br(n),
|
|
3795
|
-
list:
|
|
3796
|
-
update:
|
|
3796
|
+
list: Jr(n),
|
|
3797
|
+
update: Wr(n),
|
|
3797
3798
|
remove: qr(n)
|
|
3798
3799
|
};
|
|
3799
3800
|
}
|
|
@@ -4381,7 +4382,7 @@ class V extends Error {
|
|
|
4381
4382
|
}
|
|
4382
4383
|
}
|
|
4383
4384
|
V.create = (n) => new V(n);
|
|
4384
|
-
const
|
|
4385
|
+
const We = (n, e) => {
|
|
4385
4386
|
let t;
|
|
4386
4387
|
switch (n.code) {
|
|
4387
4388
|
case h.invalid_type:
|
|
@@ -4437,7 +4438,7 @@ const Je = (n, e) => {
|
|
|
4437
4438
|
}
|
|
4438
4439
|
return { message: t };
|
|
4439
4440
|
};
|
|
4440
|
-
let Mn =
|
|
4441
|
+
let Mn = We;
|
|
4441
4442
|
function Ca(n) {
|
|
4442
4443
|
Mn = n;
|
|
4443
4444
|
}
|
|
@@ -4474,7 +4475,7 @@ function m(n, e) {
|
|
|
4474
4475
|
n.common.contextualErrorMap,
|
|
4475
4476
|
n.schemaErrorMap,
|
|
4476
4477
|
t,
|
|
4477
|
-
t ===
|
|
4478
|
+
t === We ? void 0 : We
|
|
4478
4479
|
// then global default map
|
|
4479
4480
|
].filter((r) => !!r)
|
|
4480
4481
|
});
|
|
@@ -4691,7 +4692,7 @@ class Z {
|
|
|
4691
4692
|
return this.nullable().optional();
|
|
4692
4693
|
}
|
|
4693
4694
|
array() {
|
|
4694
|
-
return
|
|
4695
|
+
return J.create(this, this._def);
|
|
4695
4696
|
}
|
|
4696
4697
|
promise() {
|
|
4697
4698
|
return Ke.create(this, this._def);
|
|
@@ -4770,7 +4771,7 @@ function Fn(n) {
|
|
|
4770
4771
|
const t = [];
|
|
4771
4772
|
return t.push(n.local ? "Z?" : "Z"), n.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
|
|
4772
4773
|
}
|
|
4773
|
-
function
|
|
4774
|
+
function Ja(n, e) {
|
|
4774
4775
|
return !!((e === "v4" || !e) && Va.test(n) || (e === "v6" || !e) && Ua.test(n));
|
|
4775
4776
|
}
|
|
4776
4777
|
class z extends Z {
|
|
@@ -4905,7 +4906,7 @@ class z extends Z {
|
|
|
4905
4906
|
validation: "duration",
|
|
4906
4907
|
code: h.invalid_string,
|
|
4907
4908
|
message: a.message
|
|
4908
|
-
}), s.dirty()) : a.kind === "ip" ?
|
|
4909
|
+
}), s.dirty()) : a.kind === "ip" ? Ja(e.data, a.version) || (r = this._getOrReturnCtx(e, r), m(r, {
|
|
4909
4910
|
validation: "ip",
|
|
4910
4911
|
code: h.invalid_string,
|
|
4911
4912
|
message: a.message
|
|
@@ -5131,7 +5132,7 @@ z.create = (n) => {
|
|
|
5131
5132
|
...O(n)
|
|
5132
5133
|
});
|
|
5133
5134
|
};
|
|
5134
|
-
function
|
|
5135
|
+
function Wa(n, e) {
|
|
5135
5136
|
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(".", ""));
|
|
5136
5137
|
return a % o / Math.pow(10, r);
|
|
5137
5138
|
}
|
|
@@ -5170,7 +5171,7 @@ class ye extends Z {
|
|
|
5170
5171
|
inclusive: a.inclusive,
|
|
5171
5172
|
exact: !1,
|
|
5172
5173
|
message: a.message
|
|
5173
|
-
}), r.dirty()) : a.kind === "multipleOf" ?
|
|
5174
|
+
}), r.dirty()) : a.kind === "multipleOf" ? Wa(e.data, a.value) !== 0 && (s = this._getOrReturnCtx(e, s), m(s, {
|
|
5174
5175
|
code: h.not_multiple_of,
|
|
5175
5176
|
multipleOf: a.value,
|
|
5176
5177
|
message: a.message
|
|
@@ -5637,7 +5638,7 @@ Bt.create = (n) => new Bt({
|
|
|
5637
5638
|
typeName: b.ZodVoid,
|
|
5638
5639
|
...O(n)
|
|
5639
5640
|
});
|
|
5640
|
-
class
|
|
5641
|
+
class J extends Z {
|
|
5641
5642
|
_parse(e) {
|
|
5642
5643
|
const { ctx: t, status: s } = this._processInputParams(e), r = this._def;
|
|
5643
5644
|
if (t.parsedType !== g.array)
|
|
@@ -5681,19 +5682,19 @@ class W extends Z {
|
|
|
5681
5682
|
return this._def.type;
|
|
5682
5683
|
}
|
|
5683
5684
|
min(e, t) {
|
|
5684
|
-
return new
|
|
5685
|
+
return new J({
|
|
5685
5686
|
...this._def,
|
|
5686
5687
|
minLength: { value: e, message: v.toString(t) }
|
|
5687
5688
|
});
|
|
5688
5689
|
}
|
|
5689
5690
|
max(e, t) {
|
|
5690
|
-
return new
|
|
5691
|
+
return new J({
|
|
5691
5692
|
...this._def,
|
|
5692
5693
|
maxLength: { value: e, message: v.toString(t) }
|
|
5693
5694
|
});
|
|
5694
5695
|
}
|
|
5695
5696
|
length(e, t) {
|
|
5696
|
-
return new
|
|
5697
|
+
return new J({
|
|
5697
5698
|
...this._def,
|
|
5698
5699
|
exactLength: { value: e, message: v.toString(t) }
|
|
5699
5700
|
});
|
|
@@ -5702,7 +5703,7 @@ class W extends Z {
|
|
|
5702
5703
|
return this.min(1, e);
|
|
5703
5704
|
}
|
|
5704
5705
|
}
|
|
5705
|
-
|
|
5706
|
+
J.create = (n, e) => new J({
|
|
5706
5707
|
type: n,
|
|
5707
5708
|
minLength: null,
|
|
5708
5709
|
maxLength: null,
|
|
@@ -5721,7 +5722,7 @@ function Le(n) {
|
|
|
5721
5722
|
...n._def,
|
|
5722
5723
|
shape: () => e
|
|
5723
5724
|
});
|
|
5724
|
-
} else return n instanceof
|
|
5725
|
+
} else return n instanceof J ? new J({
|
|
5725
5726
|
...n._def,
|
|
5726
5727
|
type: Le(n.element)
|
|
5727
5728
|
}) : n instanceof G ? G.create(Le(n.unwrap())) : n instanceof be ? be.create(Le(n.unwrap())) : n instanceof ne ? ne.create(n.items.map((e) => Le(e))) : n;
|
|
@@ -6304,7 +6305,7 @@ class kt extends Z {
|
|
|
6304
6305
|
});
|
|
6305
6306
|
}
|
|
6306
6307
|
}
|
|
6307
|
-
class
|
|
6308
|
+
class Jt extends Z {
|
|
6308
6309
|
get keySchema() {
|
|
6309
6310
|
return this._def.keyType;
|
|
6310
6311
|
}
|
|
@@ -6346,7 +6347,7 @@ class Wt extends Z {
|
|
|
6346
6347
|
}
|
|
6347
6348
|
}
|
|
6348
6349
|
}
|
|
6349
|
-
|
|
6350
|
+
Jt.create = (n, e, t) => new Jt({
|
|
6350
6351
|
valueType: e,
|
|
6351
6352
|
keyType: n,
|
|
6352
6353
|
typeName: b.ZodMap,
|
|
@@ -6436,7 +6437,7 @@ class Fe extends Z {
|
|
|
6436
6437
|
t.common.contextualErrorMap,
|
|
6437
6438
|
t.schemaErrorMap,
|
|
6438
6439
|
Vt(),
|
|
6439
|
-
|
|
6440
|
+
We
|
|
6440
6441
|
].filter((u) => !!u),
|
|
6441
6442
|
issueData: {
|
|
6442
6443
|
code: h.invalid_arguments,
|
|
@@ -6452,7 +6453,7 @@ class Fe extends Z {
|
|
|
6452
6453
|
t.common.contextualErrorMap,
|
|
6453
6454
|
t.schemaErrorMap,
|
|
6454
6455
|
Vt(),
|
|
6455
|
-
|
|
6456
|
+
We
|
|
6456
6457
|
].filter((u) => !!u),
|
|
6457
6458
|
issueData: {
|
|
6458
6459
|
code: h.invalid_return_type,
|
|
@@ -6854,7 +6855,7 @@ Zt.create = (n, e) => new Zt({
|
|
|
6854
6855
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
6855
6856
|
...O(e)
|
|
6856
6857
|
});
|
|
6857
|
-
class
|
|
6858
|
+
class Wt extends Z {
|
|
6858
6859
|
_parse(e) {
|
|
6859
6860
|
if (this._getType(e) !== g.nan) {
|
|
6860
6861
|
const s = this._getOrReturnCtx(e);
|
|
@@ -6867,7 +6868,7 @@ class Jt extends Z {
|
|
|
6867
6868
|
return { status: "valid", value: e.data };
|
|
6868
6869
|
}
|
|
6869
6870
|
}
|
|
6870
|
-
|
|
6871
|
+
Wt.create = (n) => new Wt({
|
|
6871
6872
|
typeName: b.ZodNaN,
|
|
6872
6873
|
...O(n)
|
|
6873
6874
|
});
|
|
@@ -6957,7 +6958,7 @@ var b;
|
|
|
6957
6958
|
})(b || (b = {}));
|
|
6958
6959
|
const Ha = (n, e = {
|
|
6959
6960
|
message: `Input not instance of ${n.name}`
|
|
6960
|
-
}) => Bn((t) => t instanceof n, e),
|
|
6961
|
+
}) => Bn((t) => t instanceof n, e), Jn = z.create, Wn = ye.create, Qa = Wt.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 = J.create, oi = E.create, di = E.strictCreate, ci = wt.create, ui = Kt.create, li = bt.create, pi = ne.create, hi = kt.create, fi = Jt.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 = () => Jn().optional(), Zi = () => Wn().optional(), ji = () => qn().optional(), Ni = {
|
|
6961
6962
|
string: (n) => z.create({ ...n, coerce: !0 }),
|
|
6962
6963
|
number: (n) => ye.create({ ...n, coerce: !0 }),
|
|
6963
6964
|
boolean: (n) => gt.create({
|
|
@@ -6969,7 +6970,7 @@ const Ha = (n, e = {
|
|
|
6969
6970
|
}, Ci = k;
|
|
6970
6971
|
var Ii = /* @__PURE__ */ Object.freeze({
|
|
6971
6972
|
__proto__: null,
|
|
6972
|
-
defaultErrorMap:
|
|
6973
|
+
defaultErrorMap: We,
|
|
6973
6974
|
setErrorMap: Ca,
|
|
6974
6975
|
getErrorMap: Vt,
|
|
6975
6976
|
makeIssue: Ut,
|
|
@@ -7005,14 +7006,14 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7005
7006
|
ZodUnknown: Ze,
|
|
7006
7007
|
ZodNever: ae,
|
|
7007
7008
|
ZodVoid: Bt,
|
|
7008
|
-
ZodArray:
|
|
7009
|
+
ZodArray: J,
|
|
7009
7010
|
ZodObject: E,
|
|
7010
7011
|
ZodUnion: wt,
|
|
7011
7012
|
ZodDiscriminatedUnion: Kt,
|
|
7012
7013
|
ZodIntersection: bt,
|
|
7013
7014
|
ZodTuple: ne,
|
|
7014
7015
|
ZodRecord: kt,
|
|
7015
|
-
ZodMap:
|
|
7016
|
+
ZodMap: Jt,
|
|
7016
7017
|
ZodSet: Ie,
|
|
7017
7018
|
ZodFunction: Fe,
|
|
7018
7019
|
ZodLazy: xt,
|
|
@@ -7026,7 +7027,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7026
7027
|
ZodNullable: be,
|
|
7027
7028
|
ZodDefault: St,
|
|
7028
7029
|
ZodCatch: Zt,
|
|
7029
|
-
ZodNaN:
|
|
7030
|
+
ZodNaN: Wt,
|
|
7030
7031
|
BRAND: qa,
|
|
7031
7032
|
ZodBranded: pn,
|
|
7032
7033
|
ZodPipeline: Ct,
|
|
@@ -7058,7 +7059,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7058
7059
|
never: ri,
|
|
7059
7060
|
null: ti,
|
|
7060
7061
|
nullable: xi,
|
|
7061
|
-
number:
|
|
7062
|
+
number: Wn,
|
|
7062
7063
|
object: oi,
|
|
7063
7064
|
oboolean: ji,
|
|
7064
7065
|
onumber: Zi,
|
|
@@ -7070,7 +7071,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7070
7071
|
record: hi,
|
|
7071
7072
|
set: mi,
|
|
7072
7073
|
strictObject: di,
|
|
7073
|
-
string:
|
|
7074
|
+
string: Jn,
|
|
7074
7075
|
symbol: Xa,
|
|
7075
7076
|
transformer: yn,
|
|
7076
7077
|
tuple: pi,
|
|
@@ -7241,7 +7242,7 @@ function Bi(n) {
|
|
|
7241
7242
|
list: zi(n)
|
|
7242
7243
|
};
|
|
7243
7244
|
}
|
|
7244
|
-
function
|
|
7245
|
+
function Ji(n) {
|
|
7245
7246
|
return async (e) => {
|
|
7246
7247
|
const [t] = await n.selectFrom("branding").where("branding.tenant_id", "=", e).selectAll().execute();
|
|
7247
7248
|
if (!t)
|
|
@@ -7271,7 +7272,7 @@ function Wi(n) {
|
|
|
7271
7272
|
});
|
|
7272
7273
|
};
|
|
7273
7274
|
}
|
|
7274
|
-
function
|
|
7275
|
+
function Wi(n) {
|
|
7275
7276
|
return async (e, t) => {
|
|
7276
7277
|
var o, d, c, u, l, j, A, U, ie, Re, oe, de, ce, $e, Pe, K, H, Q;
|
|
7277
7278
|
const { colors: s, font: r, ...a } = t;
|
|
@@ -7301,8 +7302,8 @@ function Ji(n) {
|
|
|
7301
7302
|
}
|
|
7302
7303
|
function qi(n) {
|
|
7303
7304
|
return {
|
|
7304
|
-
get:
|
|
7305
|
-
set:
|
|
7305
|
+
get: Ji(n),
|
|
7306
|
+
set: Wi(n)
|
|
7306
7307
|
};
|
|
7307
7308
|
}
|
|
7308
7309
|
function Ki(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.13.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.20.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts",
|