@authhero/kysely-adapter 0.12.0 → 0.13.0
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,
|
|
@@ -3142,6 +3142,7 @@ const pr = i.object({
|
|
|
3142
3142
|
"google-oauth2",
|
|
3143
3143
|
"facebook",
|
|
3144
3144
|
"vipps",
|
|
3145
|
+
"freja",
|
|
3145
3146
|
"apple",
|
|
3146
3147
|
"email",
|
|
3147
3148
|
"Username-Password-Authentication",
|
|
@@ -3708,7 +3709,7 @@ function Lr(n) {
|
|
|
3708
3709
|
email_verified: Mr(s),
|
|
3709
3710
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
3710
3711
|
};
|
|
3711
|
-
return (await n.updateTable("users").set(r).where("users.tenant_id", "=", e).where("users.user_id", "=", t).execute()).length === 1;
|
|
3712
|
+
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;
|
|
3712
3713
|
};
|
|
3713
3714
|
}
|
|
3714
3715
|
function Vr(n) {
|
|
@@ -3752,7 +3753,7 @@ function Br(n) {
|
|
|
3752
3753
|
return t ? R(t) : null;
|
|
3753
3754
|
};
|
|
3754
3755
|
}
|
|
3755
|
-
function
|
|
3756
|
+
function Jr(n) {
|
|
3756
3757
|
return async (e) => {
|
|
3757
3758
|
let t = n.selectFrom("tenants");
|
|
3758
3759
|
if (e.sort && e.sort.sort_by) {
|
|
@@ -3774,7 +3775,7 @@ function Wr(n) {
|
|
|
3774
3775
|
};
|
|
3775
3776
|
};
|
|
3776
3777
|
}
|
|
3777
|
-
function
|
|
3778
|
+
function Wr(n) {
|
|
3778
3779
|
return async (e, t) => {
|
|
3779
3780
|
const s = {
|
|
3780
3781
|
...t,
|
|
@@ -3791,8 +3792,8 @@ function Kr(n) {
|
|
|
3791
3792
|
return {
|
|
3792
3793
|
create: zr(n),
|
|
3793
3794
|
get: Br(n),
|
|
3794
|
-
list:
|
|
3795
|
-
update:
|
|
3795
|
+
list: Jr(n),
|
|
3796
|
+
update: Wr(n),
|
|
3796
3797
|
remove: qr(n)
|
|
3797
3798
|
};
|
|
3798
3799
|
}
|
|
@@ -4380,7 +4381,7 @@ class V extends Error {
|
|
|
4380
4381
|
}
|
|
4381
4382
|
}
|
|
4382
4383
|
V.create = (n) => new V(n);
|
|
4383
|
-
const
|
|
4384
|
+
const We = (n, e) => {
|
|
4384
4385
|
let t;
|
|
4385
4386
|
switch (n.code) {
|
|
4386
4387
|
case h.invalid_type:
|
|
@@ -4436,7 +4437,7 @@ const Je = (n, e) => {
|
|
|
4436
4437
|
}
|
|
4437
4438
|
return { message: t };
|
|
4438
4439
|
};
|
|
4439
|
-
let Mn =
|
|
4440
|
+
let Mn = We;
|
|
4440
4441
|
function Ca(n) {
|
|
4441
4442
|
Mn = n;
|
|
4442
4443
|
}
|
|
@@ -4473,7 +4474,7 @@ function m(n, e) {
|
|
|
4473
4474
|
n.common.contextualErrorMap,
|
|
4474
4475
|
n.schemaErrorMap,
|
|
4475
4476
|
t,
|
|
4476
|
-
t ===
|
|
4477
|
+
t === We ? void 0 : We
|
|
4477
4478
|
// then global default map
|
|
4478
4479
|
].filter((r) => !!r)
|
|
4479
4480
|
});
|
|
@@ -4690,7 +4691,7 @@ class Z {
|
|
|
4690
4691
|
return this.nullable().optional();
|
|
4691
4692
|
}
|
|
4692
4693
|
array() {
|
|
4693
|
-
return
|
|
4694
|
+
return J.create(this, this._def);
|
|
4694
4695
|
}
|
|
4695
4696
|
promise() {
|
|
4696
4697
|
return Ke.create(this, this._def);
|
|
@@ -4769,7 +4770,7 @@ function Fn(n) {
|
|
|
4769
4770
|
const t = [];
|
|
4770
4771
|
return t.push(n.local ? "Z?" : "Z"), n.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
|
|
4771
4772
|
}
|
|
4772
|
-
function
|
|
4773
|
+
function Ja(n, e) {
|
|
4773
4774
|
return !!((e === "v4" || !e) && Va.test(n) || (e === "v6" || !e) && Ua.test(n));
|
|
4774
4775
|
}
|
|
4775
4776
|
class z extends Z {
|
|
@@ -4904,7 +4905,7 @@ class z extends Z {
|
|
|
4904
4905
|
validation: "duration",
|
|
4905
4906
|
code: h.invalid_string,
|
|
4906
4907
|
message: a.message
|
|
4907
|
-
}), s.dirty()) : a.kind === "ip" ?
|
|
4908
|
+
}), s.dirty()) : a.kind === "ip" ? Ja(e.data, a.version) || (r = this._getOrReturnCtx(e, r), m(r, {
|
|
4908
4909
|
validation: "ip",
|
|
4909
4910
|
code: h.invalid_string,
|
|
4910
4911
|
message: a.message
|
|
@@ -5130,7 +5131,7 @@ z.create = (n) => {
|
|
|
5130
5131
|
...O(n)
|
|
5131
5132
|
});
|
|
5132
5133
|
};
|
|
5133
|
-
function
|
|
5134
|
+
function Wa(n, e) {
|
|
5134
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(".", ""));
|
|
5135
5136
|
return a % o / Math.pow(10, r);
|
|
5136
5137
|
}
|
|
@@ -5169,7 +5170,7 @@ class ye extends Z {
|
|
|
5169
5170
|
inclusive: a.inclusive,
|
|
5170
5171
|
exact: !1,
|
|
5171
5172
|
message: a.message
|
|
5172
|
-
}), r.dirty()) : a.kind === "multipleOf" ?
|
|
5173
|
+
}), r.dirty()) : a.kind === "multipleOf" ? Wa(e.data, a.value) !== 0 && (s = this._getOrReturnCtx(e, s), m(s, {
|
|
5173
5174
|
code: h.not_multiple_of,
|
|
5174
5175
|
multipleOf: a.value,
|
|
5175
5176
|
message: a.message
|
|
@@ -5636,7 +5637,7 @@ Bt.create = (n) => new Bt({
|
|
|
5636
5637
|
typeName: b.ZodVoid,
|
|
5637
5638
|
...O(n)
|
|
5638
5639
|
});
|
|
5639
|
-
class
|
|
5640
|
+
class J extends Z {
|
|
5640
5641
|
_parse(e) {
|
|
5641
5642
|
const { ctx: t, status: s } = this._processInputParams(e), r = this._def;
|
|
5642
5643
|
if (t.parsedType !== g.array)
|
|
@@ -5680,19 +5681,19 @@ class W extends Z {
|
|
|
5680
5681
|
return this._def.type;
|
|
5681
5682
|
}
|
|
5682
5683
|
min(e, t) {
|
|
5683
|
-
return new
|
|
5684
|
+
return new J({
|
|
5684
5685
|
...this._def,
|
|
5685
5686
|
minLength: { value: e, message: v.toString(t) }
|
|
5686
5687
|
});
|
|
5687
5688
|
}
|
|
5688
5689
|
max(e, t) {
|
|
5689
|
-
return new
|
|
5690
|
+
return new J({
|
|
5690
5691
|
...this._def,
|
|
5691
5692
|
maxLength: { value: e, message: v.toString(t) }
|
|
5692
5693
|
});
|
|
5693
5694
|
}
|
|
5694
5695
|
length(e, t) {
|
|
5695
|
-
return new
|
|
5696
|
+
return new J({
|
|
5696
5697
|
...this._def,
|
|
5697
5698
|
exactLength: { value: e, message: v.toString(t) }
|
|
5698
5699
|
});
|
|
@@ -5701,7 +5702,7 @@ class W extends Z {
|
|
|
5701
5702
|
return this.min(1, e);
|
|
5702
5703
|
}
|
|
5703
5704
|
}
|
|
5704
|
-
|
|
5705
|
+
J.create = (n, e) => new J({
|
|
5705
5706
|
type: n,
|
|
5706
5707
|
minLength: null,
|
|
5707
5708
|
maxLength: null,
|
|
@@ -5720,7 +5721,7 @@ function Le(n) {
|
|
|
5720
5721
|
...n._def,
|
|
5721
5722
|
shape: () => e
|
|
5722
5723
|
});
|
|
5723
|
-
} else return n instanceof
|
|
5724
|
+
} else return n instanceof J ? new J({
|
|
5724
5725
|
...n._def,
|
|
5725
5726
|
type: Le(n.element)
|
|
5726
5727
|
}) : 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;
|
|
@@ -6303,7 +6304,7 @@ class kt extends Z {
|
|
|
6303
6304
|
});
|
|
6304
6305
|
}
|
|
6305
6306
|
}
|
|
6306
|
-
class
|
|
6307
|
+
class Jt extends Z {
|
|
6307
6308
|
get keySchema() {
|
|
6308
6309
|
return this._def.keyType;
|
|
6309
6310
|
}
|
|
@@ -6345,7 +6346,7 @@ class Wt extends Z {
|
|
|
6345
6346
|
}
|
|
6346
6347
|
}
|
|
6347
6348
|
}
|
|
6348
|
-
|
|
6349
|
+
Jt.create = (n, e, t) => new Jt({
|
|
6349
6350
|
valueType: e,
|
|
6350
6351
|
keyType: n,
|
|
6351
6352
|
typeName: b.ZodMap,
|
|
@@ -6435,7 +6436,7 @@ class Fe extends Z {
|
|
|
6435
6436
|
t.common.contextualErrorMap,
|
|
6436
6437
|
t.schemaErrorMap,
|
|
6437
6438
|
Vt(),
|
|
6438
|
-
|
|
6439
|
+
We
|
|
6439
6440
|
].filter((u) => !!u),
|
|
6440
6441
|
issueData: {
|
|
6441
6442
|
code: h.invalid_arguments,
|
|
@@ -6451,7 +6452,7 @@ class Fe extends Z {
|
|
|
6451
6452
|
t.common.contextualErrorMap,
|
|
6452
6453
|
t.schemaErrorMap,
|
|
6453
6454
|
Vt(),
|
|
6454
|
-
|
|
6455
|
+
We
|
|
6455
6456
|
].filter((u) => !!u),
|
|
6456
6457
|
issueData: {
|
|
6457
6458
|
code: h.invalid_return_type,
|
|
@@ -6853,7 +6854,7 @@ Zt.create = (n, e) => new Zt({
|
|
|
6853
6854
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
6854
6855
|
...O(e)
|
|
6855
6856
|
});
|
|
6856
|
-
class
|
|
6857
|
+
class Wt extends Z {
|
|
6857
6858
|
_parse(e) {
|
|
6858
6859
|
if (this._getType(e) !== g.nan) {
|
|
6859
6860
|
const s = this._getOrReturnCtx(e);
|
|
@@ -6866,7 +6867,7 @@ class Jt extends Z {
|
|
|
6866
6867
|
return { status: "valid", value: e.data };
|
|
6867
6868
|
}
|
|
6868
6869
|
}
|
|
6869
|
-
|
|
6870
|
+
Wt.create = (n) => new Wt({
|
|
6870
6871
|
typeName: b.ZodNaN,
|
|
6871
6872
|
...O(n)
|
|
6872
6873
|
});
|
|
@@ -6956,7 +6957,7 @@ var b;
|
|
|
6956
6957
|
})(b || (b = {}));
|
|
6957
6958
|
const Ha = (n, e = {
|
|
6958
6959
|
message: `Input not instance of ${n.name}`
|
|
6959
|
-
}) => Bn((t) => t instanceof n, e),
|
|
6960
|
+
}) => 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 = {
|
|
6960
6961
|
string: (n) => z.create({ ...n, coerce: !0 }),
|
|
6961
6962
|
number: (n) => ye.create({ ...n, coerce: !0 }),
|
|
6962
6963
|
boolean: (n) => gt.create({
|
|
@@ -6968,7 +6969,7 @@ const Ha = (n, e = {
|
|
|
6968
6969
|
}, Ci = k;
|
|
6969
6970
|
var Ii = /* @__PURE__ */ Object.freeze({
|
|
6970
6971
|
__proto__: null,
|
|
6971
|
-
defaultErrorMap:
|
|
6972
|
+
defaultErrorMap: We,
|
|
6972
6973
|
setErrorMap: Ca,
|
|
6973
6974
|
getErrorMap: Vt,
|
|
6974
6975
|
makeIssue: Ut,
|
|
@@ -7004,14 +7005,14 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7004
7005
|
ZodUnknown: Ze,
|
|
7005
7006
|
ZodNever: ae,
|
|
7006
7007
|
ZodVoid: Bt,
|
|
7007
|
-
ZodArray:
|
|
7008
|
+
ZodArray: J,
|
|
7008
7009
|
ZodObject: E,
|
|
7009
7010
|
ZodUnion: wt,
|
|
7010
7011
|
ZodDiscriminatedUnion: Kt,
|
|
7011
7012
|
ZodIntersection: bt,
|
|
7012
7013
|
ZodTuple: ne,
|
|
7013
7014
|
ZodRecord: kt,
|
|
7014
|
-
ZodMap:
|
|
7015
|
+
ZodMap: Jt,
|
|
7015
7016
|
ZodSet: Ie,
|
|
7016
7017
|
ZodFunction: Fe,
|
|
7017
7018
|
ZodLazy: xt,
|
|
@@ -7025,7 +7026,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7025
7026
|
ZodNullable: be,
|
|
7026
7027
|
ZodDefault: St,
|
|
7027
7028
|
ZodCatch: Zt,
|
|
7028
|
-
ZodNaN:
|
|
7029
|
+
ZodNaN: Wt,
|
|
7029
7030
|
BRAND: qa,
|
|
7030
7031
|
ZodBranded: pn,
|
|
7031
7032
|
ZodPipeline: Ct,
|
|
@@ -7057,7 +7058,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7057
7058
|
never: ri,
|
|
7058
7059
|
null: ti,
|
|
7059
7060
|
nullable: xi,
|
|
7060
|
-
number:
|
|
7061
|
+
number: Wn,
|
|
7061
7062
|
object: oi,
|
|
7062
7063
|
oboolean: ji,
|
|
7063
7064
|
onumber: Zi,
|
|
@@ -7069,7 +7070,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7069
7070
|
record: hi,
|
|
7070
7071
|
set: mi,
|
|
7071
7072
|
strictObject: di,
|
|
7072
|
-
string:
|
|
7073
|
+
string: Jn,
|
|
7073
7074
|
symbol: Xa,
|
|
7074
7075
|
transformer: yn,
|
|
7075
7076
|
tuple: pi,
|
|
@@ -7240,7 +7241,7 @@ function Bi(n) {
|
|
|
7240
7241
|
list: zi(n)
|
|
7241
7242
|
};
|
|
7242
7243
|
}
|
|
7243
|
-
function
|
|
7244
|
+
function Ji(n) {
|
|
7244
7245
|
return async (e) => {
|
|
7245
7246
|
const [t] = await n.selectFrom("branding").where("branding.tenant_id", "=", e).selectAll().execute();
|
|
7246
7247
|
if (!t)
|
|
@@ -7270,7 +7271,7 @@ function Wi(n) {
|
|
|
7270
7271
|
});
|
|
7271
7272
|
};
|
|
7272
7273
|
}
|
|
7273
|
-
function
|
|
7274
|
+
function Wi(n) {
|
|
7274
7275
|
return async (e, t) => {
|
|
7275
7276
|
var o, d, c, u, l, j, A, U, ie, Re, oe, de, ce, $e, Pe, K, H, Q;
|
|
7276
7277
|
const { colors: s, font: r, ...a } = t;
|
|
@@ -7300,8 +7301,8 @@ function Ji(n) {
|
|
|
7300
7301
|
}
|
|
7301
7302
|
function qi(n) {
|
|
7302
7303
|
return {
|
|
7303
|
-
get:
|
|
7304
|
-
set:
|
|
7304
|
+
get: Ji(n),
|
|
7305
|
+
set: Wi(n)
|
|
7305
7306
|
};
|
|
7306
7307
|
}
|
|
7307
7308
|
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.0",
|
|
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",
|