@authhero/kysely-adapter 0.11.1 → 0.12.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.cjs +1 -1
- package/dist/kysely-adapter.d.ts +216 -83
- package/dist/kysely-adapter.iife.js +1 -1
- package/dist/kysely-adapter.mjs +70 -55
- 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(),
|
|
@@ -3597,6 +3603,8 @@ function $r(n) {
|
|
|
3597
3603
|
email: s.email || "",
|
|
3598
3604
|
email_verified: s.email_verified === 1,
|
|
3599
3605
|
is_social: s.is_social === 1,
|
|
3606
|
+
app_metadata: JSON.parse(s.app_metadata),
|
|
3607
|
+
user_metadata: JSON.parse(s.user_metadata),
|
|
3600
3608
|
identities: [
|
|
3601
3609
|
{
|
|
3602
3610
|
connection: s.connection,
|
|
@@ -3665,6 +3673,8 @@ function Pr(n) {
|
|
|
3665
3673
|
...l,
|
|
3666
3674
|
email_verified: l.email_verified === 1,
|
|
3667
3675
|
is_social: l.is_social === 1,
|
|
3676
|
+
app_metadata: JSON.parse(l.app_metadata),
|
|
3677
|
+
user_metadata: JSON.parse(l.user_metadata),
|
|
3668
3678
|
identities: [
|
|
3669
3679
|
{
|
|
3670
3680
|
connection: l.connection,
|
|
@@ -3764,7 +3774,7 @@ function Wr(n) {
|
|
|
3764
3774
|
};
|
|
3765
3775
|
};
|
|
3766
3776
|
}
|
|
3767
|
-
function
|
|
3777
|
+
function Jr(n) {
|
|
3768
3778
|
return async (e, t) => {
|
|
3769
3779
|
const s = {
|
|
3770
3780
|
...t,
|
|
@@ -3774,7 +3784,7 @@ function qr(n) {
|
|
|
3774
3784
|
await n.updateTable("tenants").set(s).where("id", "=", e).execute();
|
|
3775
3785
|
};
|
|
3776
3786
|
}
|
|
3777
|
-
function
|
|
3787
|
+
function qr(n) {
|
|
3778
3788
|
return async (e) => (await n.deleteFrom("tenants").where("tenants.id", "=", e).execute()).length === 1;
|
|
3779
3789
|
}
|
|
3780
3790
|
function Kr(n) {
|
|
@@ -3782,8 +3792,8 @@ function Kr(n) {
|
|
|
3782
3792
|
create: zr(n),
|
|
3783
3793
|
get: Br(n),
|
|
3784
3794
|
list: Wr(n),
|
|
3785
|
-
update:
|
|
3786
|
-
remove:
|
|
3795
|
+
update: Jr(n),
|
|
3796
|
+
remove: qr(n)
|
|
3787
3797
|
};
|
|
3788
3798
|
}
|
|
3789
3799
|
function mn(n) {
|
|
@@ -4370,7 +4380,7 @@ class V extends Error {
|
|
|
4370
4380
|
}
|
|
4371
4381
|
}
|
|
4372
4382
|
V.create = (n) => new V(n);
|
|
4373
|
-
const
|
|
4383
|
+
const Je = (n, e) => {
|
|
4374
4384
|
let t;
|
|
4375
4385
|
switch (n.code) {
|
|
4376
4386
|
case h.invalid_type:
|
|
@@ -4426,7 +4436,7 @@ const qe = (n, e) => {
|
|
|
4426
4436
|
}
|
|
4427
4437
|
return { message: t };
|
|
4428
4438
|
};
|
|
4429
|
-
let Mn =
|
|
4439
|
+
let Mn = Je;
|
|
4430
4440
|
function Ca(n) {
|
|
4431
4441
|
Mn = n;
|
|
4432
4442
|
}
|
|
@@ -4463,7 +4473,7 @@ function m(n, e) {
|
|
|
4463
4473
|
n.common.contextualErrorMap,
|
|
4464
4474
|
n.schemaErrorMap,
|
|
4465
4475
|
t,
|
|
4466
|
-
t ===
|
|
4476
|
+
t === Je ? void 0 : Je
|
|
4467
4477
|
// then global default map
|
|
4468
4478
|
].filter((r) => !!r)
|
|
4469
4479
|
});
|
|
@@ -4661,7 +4671,7 @@ class Z {
|
|
|
4661
4671
|
return this._refinement((s, r) => e(s) ? !0 : (r.addIssue(typeof t == "function" ? t(s, r) : t), !1));
|
|
4662
4672
|
}
|
|
4663
4673
|
_refinement(e) {
|
|
4664
|
-
return new
|
|
4674
|
+
return new q({
|
|
4665
4675
|
schema: this,
|
|
4666
4676
|
typeName: b.ZodEffects,
|
|
4667
4677
|
effect: { type: "refinement", refinement: e }
|
|
@@ -4692,7 +4702,7 @@ class Z {
|
|
|
4692
4702
|
return bt.create(this, e, this._def);
|
|
4693
4703
|
}
|
|
4694
4704
|
transform(e) {
|
|
4695
|
-
return new
|
|
4705
|
+
return new q({
|
|
4696
4706
|
...O(this._def),
|
|
4697
4707
|
schema: this,
|
|
4698
4708
|
typeName: b.ZodEffects,
|
|
@@ -5120,7 +5130,7 @@ z.create = (n) => {
|
|
|
5120
5130
|
...O(n)
|
|
5121
5131
|
});
|
|
5122
5132
|
};
|
|
5123
|
-
function
|
|
5133
|
+
function Ja(n, e) {
|
|
5124
5134
|
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
5135
|
return a % o / Math.pow(10, r);
|
|
5126
5136
|
}
|
|
@@ -5159,7 +5169,7 @@ class ye extends Z {
|
|
|
5159
5169
|
inclusive: a.inclusive,
|
|
5160
5170
|
exact: !1,
|
|
5161
5171
|
message: a.message
|
|
5162
|
-
}), r.dirty()) : a.kind === "multipleOf" ?
|
|
5172
|
+
}), r.dirty()) : a.kind === "multipleOf" ? Ja(e.data, a.value) !== 0 && (s = this._getOrReturnCtx(e, s), m(s, {
|
|
5163
5173
|
code: h.not_multiple_of,
|
|
5164
5174
|
multipleOf: a.value,
|
|
5165
5175
|
message: a.message
|
|
@@ -5571,7 +5581,7 @@ vt.create = (n) => new vt({
|
|
|
5571
5581
|
typeName: b.ZodNull,
|
|
5572
5582
|
...O(n)
|
|
5573
5583
|
});
|
|
5574
|
-
class
|
|
5584
|
+
class qe extends Z {
|
|
5575
5585
|
constructor() {
|
|
5576
5586
|
super(...arguments), this._any = !0;
|
|
5577
5587
|
}
|
|
@@ -5579,7 +5589,7 @@ class Je extends Z {
|
|
|
5579
5589
|
return M(e.data);
|
|
5580
5590
|
}
|
|
5581
5591
|
}
|
|
5582
|
-
|
|
5592
|
+
qe.create = (n) => new qe({
|
|
5583
5593
|
typeName: b.ZodAny,
|
|
5584
5594
|
...O(n)
|
|
5585
5595
|
});
|
|
@@ -6075,7 +6085,7 @@ wt.create = (n, e) => new wt({
|
|
|
6075
6085
|
typeName: b.ZodUnion,
|
|
6076
6086
|
...O(e)
|
|
6077
6087
|
});
|
|
6078
|
-
const se = (n) => n instanceof xt ? se(n.schema) : n instanceof
|
|
6088
|
+
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
6089
|
class Kt extends Z {
|
|
6080
6090
|
_parse(e) {
|
|
6081
6091
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -6425,7 +6435,7 @@ class Fe extends Z {
|
|
|
6425
6435
|
t.common.contextualErrorMap,
|
|
6426
6436
|
t.schemaErrorMap,
|
|
6427
6437
|
Vt(),
|
|
6428
|
-
|
|
6438
|
+
Je
|
|
6429
6439
|
].filter((u) => !!u),
|
|
6430
6440
|
issueData: {
|
|
6431
6441
|
code: h.invalid_arguments,
|
|
@@ -6441,7 +6451,7 @@ class Fe extends Z {
|
|
|
6441
6451
|
t.common.contextualErrorMap,
|
|
6442
6452
|
t.schemaErrorMap,
|
|
6443
6453
|
Vt(),
|
|
6444
|
-
|
|
6454
|
+
Je
|
|
6445
6455
|
].filter((u) => !!u),
|
|
6446
6456
|
issueData: {
|
|
6447
6457
|
code: h.invalid_return_type,
|
|
@@ -6665,7 +6675,7 @@ Ke.create = (n, e) => new Ke({
|
|
|
6665
6675
|
typeName: b.ZodPromise,
|
|
6666
6676
|
...O(e)
|
|
6667
6677
|
});
|
|
6668
|
-
class
|
|
6678
|
+
class q extends Z {
|
|
6669
6679
|
innerType() {
|
|
6670
6680
|
return this._def.schema;
|
|
6671
6681
|
}
|
|
@@ -6742,13 +6752,13 @@ class J extends Z {
|
|
|
6742
6752
|
C.assertNever(r);
|
|
6743
6753
|
}
|
|
6744
6754
|
}
|
|
6745
|
-
|
|
6755
|
+
q.create = (n, e, t) => new q({
|
|
6746
6756
|
schema: n,
|
|
6747
6757
|
typeName: b.ZodEffects,
|
|
6748
6758
|
effect: e,
|
|
6749
6759
|
...O(t)
|
|
6750
6760
|
});
|
|
6751
|
-
|
|
6761
|
+
q.createWithPreprocess = (n, e, t) => new q({
|
|
6752
6762
|
schema: e,
|
|
6753
6763
|
effect: { type: "preprocess", transform: n },
|
|
6754
6764
|
typeName: b.ZodEffects,
|
|
@@ -6843,7 +6853,7 @@ Zt.create = (n, e) => new Zt({
|
|
|
6843
6853
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
6844
6854
|
...O(e)
|
|
6845
6855
|
});
|
|
6846
|
-
class
|
|
6856
|
+
class Jt extends Z {
|
|
6847
6857
|
_parse(e) {
|
|
6848
6858
|
if (this._getType(e) !== g.nan) {
|
|
6849
6859
|
const s = this._getOrReturnCtx(e);
|
|
@@ -6856,11 +6866,11 @@ class qt extends Z {
|
|
|
6856
6866
|
return { status: "valid", value: e.data };
|
|
6857
6867
|
}
|
|
6858
6868
|
}
|
|
6859
|
-
|
|
6869
|
+
Jt.create = (n) => new Jt({
|
|
6860
6870
|
typeName: b.ZodNaN,
|
|
6861
6871
|
...O(n)
|
|
6862
6872
|
});
|
|
6863
|
-
const
|
|
6873
|
+
const qa = Symbol("zod_brand");
|
|
6864
6874
|
class pn extends Z {
|
|
6865
6875
|
_parse(e) {
|
|
6866
6876
|
const { ctx: t } = this._processInputParams(e), s = t.data;
|
|
@@ -6929,13 +6939,13 @@ jt.create = (n, e) => new jt({
|
|
|
6929
6939
|
...O(e)
|
|
6930
6940
|
});
|
|
6931
6941
|
function Bn(n, e = {}, t) {
|
|
6932
|
-
return n ?
|
|
6942
|
+
return n ? qe.create().superRefine((s, r) => {
|
|
6933
6943
|
var a, o;
|
|
6934
6944
|
if (!n(s)) {
|
|
6935
6945
|
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
6946
|
r.addIssue({ code: "custom", ...u, fatal: c });
|
|
6937
6947
|
}
|
|
6938
|
-
}) :
|
|
6948
|
+
}) : qe.create();
|
|
6939
6949
|
}
|
|
6940
6950
|
const Ka = {
|
|
6941
6951
|
object: E.lazycreate
|
|
@@ -6946,7 +6956,7 @@ var b;
|
|
|
6946
6956
|
})(b || (b = {}));
|
|
6947
6957
|
const Ha = (n, e = {
|
|
6948
6958
|
message: `Input not instance of ${n.name}`
|
|
6949
|
-
}) => Bn((t) => t instanceof n, e), Wn = z.create,
|
|
6959
|
+
}) => 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
6960
|
string: (n) => z.create({ ...n, coerce: !0 }),
|
|
6951
6961
|
number: (n) => ye.create({ ...n, coerce: !0 }),
|
|
6952
6962
|
boolean: (n) => gt.create({
|
|
@@ -6958,7 +6968,7 @@ const Ha = (n, e = {
|
|
|
6958
6968
|
}, Ci = k;
|
|
6959
6969
|
var Ii = /* @__PURE__ */ Object.freeze({
|
|
6960
6970
|
__proto__: null,
|
|
6961
|
-
defaultErrorMap:
|
|
6971
|
+
defaultErrorMap: Je,
|
|
6962
6972
|
setErrorMap: Ca,
|
|
6963
6973
|
getErrorMap: Vt,
|
|
6964
6974
|
makeIssue: Ut,
|
|
@@ -6990,7 +7000,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
6990
7000
|
ZodSymbol: zt,
|
|
6991
7001
|
ZodUndefined: yt,
|
|
6992
7002
|
ZodNull: vt,
|
|
6993
|
-
ZodAny:
|
|
7003
|
+
ZodAny: qe,
|
|
6994
7004
|
ZodUnknown: Ze,
|
|
6995
7005
|
ZodNever: ae,
|
|
6996
7006
|
ZodVoid: Bt,
|
|
@@ -7009,14 +7019,14 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7009
7019
|
ZodEnum: we,
|
|
7010
7020
|
ZodNativeEnum: Ot,
|
|
7011
7021
|
ZodPromise: Ke,
|
|
7012
|
-
ZodEffects:
|
|
7013
|
-
ZodTransformer:
|
|
7022
|
+
ZodEffects: q,
|
|
7023
|
+
ZodTransformer: q,
|
|
7014
7024
|
ZodOptional: G,
|
|
7015
7025
|
ZodNullable: be,
|
|
7016
7026
|
ZodDefault: St,
|
|
7017
7027
|
ZodCatch: Zt,
|
|
7018
|
-
ZodNaN:
|
|
7019
|
-
BRAND:
|
|
7028
|
+
ZodNaN: Jt,
|
|
7029
|
+
BRAND: qa,
|
|
7020
7030
|
ZodBranded: pn,
|
|
7021
7031
|
ZodPipeline: Ct,
|
|
7022
7032
|
ZodReadonly: jt,
|
|
@@ -7031,7 +7041,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7031
7041
|
any: ni,
|
|
7032
7042
|
array: ii,
|
|
7033
7043
|
bigint: Ya,
|
|
7034
|
-
boolean:
|
|
7044
|
+
boolean: qn,
|
|
7035
7045
|
date: Ga,
|
|
7036
7046
|
discriminatedUnion: ui,
|
|
7037
7047
|
effect: yn,
|
|
@@ -7047,7 +7057,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7047
7057
|
never: ri,
|
|
7048
7058
|
null: ti,
|
|
7049
7059
|
nullable: xi,
|
|
7050
|
-
number:
|
|
7060
|
+
number: Jn,
|
|
7051
7061
|
object: oi,
|
|
7052
7062
|
oboolean: ji,
|
|
7053
7063
|
onumber: Zi,
|
|
@@ -7160,7 +7170,12 @@ function Di(n) {
|
|
|
7160
7170
|
return {
|
|
7161
7171
|
...t,
|
|
7162
7172
|
connections: r.map(
|
|
7163
|
-
(d) => Rn.parse(
|
|
7173
|
+
(d) => Rn.parse(
|
|
7174
|
+
R({
|
|
7175
|
+
...d,
|
|
7176
|
+
options: d.options ? JSON.parse(d.options) : {}
|
|
7177
|
+
})
|
|
7178
|
+
)
|
|
7164
7179
|
),
|
|
7165
7180
|
domains: a,
|
|
7166
7181
|
addons: t.addons ? JSON.parse(t.addons) : {},
|
|
@@ -7255,7 +7270,7 @@ function Wi(n) {
|
|
|
7255
7270
|
});
|
|
7256
7271
|
};
|
|
7257
7272
|
}
|
|
7258
|
-
function
|
|
7273
|
+
function Ji(n) {
|
|
7259
7274
|
return async (e, t) => {
|
|
7260
7275
|
var o, d, c, u, l, j, A, U, ie, Re, oe, de, ce, $e, Pe, K, H, Q;
|
|
7261
7276
|
const { colors: s, font: r, ...a } = t;
|
|
@@ -7283,10 +7298,10 @@ function qi(n) {
|
|
|
7283
7298
|
}
|
|
7284
7299
|
};
|
|
7285
7300
|
}
|
|
7286
|
-
function
|
|
7301
|
+
function qi(n) {
|
|
7287
7302
|
return {
|
|
7288
7303
|
get: Wi(n),
|
|
7289
|
-
set:
|
|
7304
|
+
set: Ji(n)
|
|
7290
7305
|
};
|
|
7291
7306
|
}
|
|
7292
7307
|
function Ki(n) {
|
|
@@ -7462,7 +7477,7 @@ function ho(n) {
|
|
|
7462
7477
|
function mo(n) {
|
|
7463
7478
|
return {
|
|
7464
7479
|
applications: Ta(n),
|
|
7465
|
-
branding:
|
|
7480
|
+
branding: qi(n),
|
|
7466
7481
|
clients: Di(n),
|
|
7467
7482
|
codes: ya(n),
|
|
7468
7483
|
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.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.18.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts",
|