better-auth 1.3.23 → 1.3.25
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/adapters/drizzle-adapter/index.cjs +11 -5
- package/dist/adapters/drizzle-adapter/index.d.cts +5 -4
- package/dist/adapters/drizzle-adapter/index.d.mts +5 -4
- package/dist/adapters/drizzle-adapter/index.d.ts +5 -4
- package/dist/adapters/drizzle-adapter/index.mjs +11 -5
- package/dist/adapters/index.cjs +4 -4
- package/dist/adapters/index.d.cts +6 -5
- package/dist/adapters/index.d.mts +6 -5
- package/dist/adapters/index.d.ts +6 -5
- package/dist/adapters/index.mjs +4 -4
- package/dist/adapters/kysely-adapter/index.cjs +5 -5
- package/dist/adapters/kysely-adapter/index.d.cts +5 -4
- package/dist/adapters/kysely-adapter/index.d.mts +5 -4
- package/dist/adapters/kysely-adapter/index.d.ts +5 -4
- package/dist/adapters/kysely-adapter/index.mjs +5 -5
- package/dist/adapters/memory-adapter/index.cjs +5 -5
- package/dist/adapters/memory-adapter/index.d.cts +5 -4
- package/dist/adapters/memory-adapter/index.d.mts +5 -4
- package/dist/adapters/memory-adapter/index.d.ts +5 -4
- package/dist/adapters/memory-adapter/index.mjs +5 -5
- package/dist/adapters/mongodb-adapter/index.cjs +5 -5
- package/dist/adapters/mongodb-adapter/index.d.cts +5 -4
- package/dist/adapters/mongodb-adapter/index.d.mts +5 -4
- package/dist/adapters/mongodb-adapter/index.d.ts +5 -4
- package/dist/adapters/mongodb-adapter/index.mjs +5 -5
- package/dist/adapters/prisma-adapter/index.cjs +5 -5
- package/dist/adapters/prisma-adapter/index.d.cts +5 -4
- package/dist/adapters/prisma-adapter/index.d.mts +5 -4
- package/dist/adapters/prisma-adapter/index.d.ts +5 -4
- package/dist/adapters/prisma-adapter/index.mjs +5 -5
- package/dist/adapters/test.cjs +5 -2
- package/dist/adapters/test.d.cts +6 -5
- package/dist/adapters/test.d.mts +6 -5
- package/dist/adapters/test.d.ts +6 -5
- package/dist/adapters/test.mjs +5 -2
- package/dist/api/index.cjs +48 -44
- package/dist/api/index.d.cts +4 -3
- package/dist/api/index.d.mts +4 -3
- package/dist/api/index.d.ts +4 -3
- package/dist/api/index.mjs +50 -46
- package/dist/chunks/create-telemetry.cjs +381 -0
- package/dist/chunks/create-telemetry.mjs +379 -0
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +6 -5
- package/dist/client/index.d.mts +6 -5
- package/dist/client/index.d.ts +6 -5
- package/dist/client/index.mjs +2 -2
- package/dist/client/lynx/index.cjs +69 -0
- package/dist/client/lynx/index.d.cts +175 -0
- package/dist/client/lynx/index.d.mts +175 -0
- package/dist/client/lynx/index.d.ts +175 -0
- package/dist/client/lynx/index.mjs +65 -0
- package/dist/client/plugins/index.d.cts +30 -27
- package/dist/client/plugins/index.d.mts +30 -27
- package/dist/client/plugins/index.d.ts +30 -27
- package/dist/client/react/index.cjs +1 -1
- package/dist/client/react/index.d.cts +6 -5
- package/dist/client/react/index.d.mts +6 -5
- package/dist/client/react/index.d.ts +6 -5
- package/dist/client/react/index.mjs +1 -1
- package/dist/client/solid/index.cjs +1 -1
- package/dist/client/solid/index.d.cts +6 -5
- package/dist/client/solid/index.d.mts +6 -5
- package/dist/client/solid/index.d.ts +6 -5
- package/dist/client/solid/index.mjs +1 -1
- package/dist/client/svelte/index.cjs +1 -1
- package/dist/client/svelte/index.d.cts +12 -11
- package/dist/client/svelte/index.d.mts +12 -11
- package/dist/client/svelte/index.d.ts +12 -11
- package/dist/client/svelte/index.mjs +1 -1
- package/dist/client/vue/index.cjs +1 -1
- package/dist/client/vue/index.d.cts +15 -14
- package/dist/client/vue/index.d.mts +15 -14
- package/dist/client/vue/index.d.ts +15 -14
- package/dist/client/vue/index.mjs +1 -1
- package/dist/cookies/index.cjs +3 -3
- package/dist/cookies/index.d.cts +5 -4
- package/dist/cookies/index.d.mts +5 -4
- package/dist/cookies/index.d.ts +5 -4
- package/dist/cookies/index.mjs +3 -3
- package/dist/db/index.cjs +21 -12
- package/dist/db/index.d.cts +21 -17
- package/dist/db/index.d.mts +21 -17
- package/dist/db/index.d.ts +21 -17
- package/dist/db/index.mjs +11 -10
- package/dist/index.cjs +20 -18
- package/dist/index.d.cts +13 -9
- package/dist/index.d.mts +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.mjs +19 -17
- package/dist/integrations/next-js.cjs +9 -8
- package/dist/integrations/next-js.d.cts +5 -4
- package/dist/integrations/next-js.d.mts +5 -4
- package/dist/integrations/next-js.d.ts +5 -4
- package/dist/integrations/next-js.mjs +9 -8
- package/dist/integrations/node.d.cts +5 -4
- package/dist/integrations/node.d.mts +5 -4
- package/dist/integrations/node.d.ts +5 -4
- package/dist/integrations/react-start.cjs +9 -8
- package/dist/integrations/react-start.d.cts +5 -4
- package/dist/integrations/react-start.d.mts +5 -4
- package/dist/integrations/react-start.d.ts +5 -4
- package/dist/integrations/react-start.mjs +9 -8
- package/dist/integrations/svelte-kit.cjs +12 -10
- package/dist/integrations/svelte-kit.d.cts +5 -4
- package/dist/integrations/svelte-kit.d.mts +5 -4
- package/dist/integrations/svelte-kit.d.ts +5 -4
- package/dist/integrations/svelte-kit.mjs +12 -10
- package/dist/oauth2/index.cjs +8 -6
- package/dist/oauth2/index.d.cts +6 -5
- package/dist/oauth2/index.d.mts +6 -5
- package/dist/oauth2/index.d.ts +6 -5
- package/dist/oauth2/index.mjs +8 -6
- package/dist/plugins/admin/index.cjs +9 -7
- package/dist/plugins/admin/index.d.cts +4 -3
- package/dist/plugins/admin/index.d.mts +4 -3
- package/dist/plugins/admin/index.d.ts +4 -3
- package/dist/plugins/admin/index.mjs +9 -7
- package/dist/plugins/anonymous/index.cjs +14 -12
- package/dist/plugins/anonymous/index.d.cts +5 -4
- package/dist/plugins/anonymous/index.d.mts +5 -4
- package/dist/plugins/anonymous/index.d.ts +5 -4
- package/dist/plugins/anonymous/index.mjs +14 -12
- package/dist/plugins/bearer/index.cjs +13 -11
- package/dist/plugins/bearer/index.d.cts +5 -4
- package/dist/plugins/bearer/index.d.mts +5 -4
- package/dist/plugins/bearer/index.d.ts +5 -4
- package/dist/plugins/bearer/index.mjs +13 -11
- package/dist/plugins/captcha/index.cjs +39 -2
- package/dist/plugins/captcha/index.d.cts +11 -5
- package/dist/plugins/captcha/index.d.mts +11 -5
- package/dist/plugins/captcha/index.d.ts +11 -5
- package/dist/plugins/captcha/index.mjs +39 -2
- package/dist/plugins/custom-session/index.cjs +13 -11
- package/dist/plugins/custom-session/index.d.cts +5 -4
- package/dist/plugins/custom-session/index.d.mts +5 -4
- package/dist/plugins/custom-session/index.d.ts +5 -4
- package/dist/plugins/custom-session/index.mjs +13 -11
- package/dist/plugins/device-authorization/index.cjs +14 -5
- package/dist/plugins/device-authorization/index.d.cts +12 -4
- package/dist/plugins/device-authorization/index.d.mts +12 -4
- package/dist/plugins/device-authorization/index.d.ts +12 -4
- package/dist/plugins/device-authorization/index.mjs +14 -5
- package/dist/plugins/email-otp/index.cjs +10 -8
- package/dist/plugins/email-otp/index.d.cts +5 -4
- package/dist/plugins/email-otp/index.d.mts +5 -4
- package/dist/plugins/email-otp/index.d.ts +5 -4
- package/dist/plugins/email-otp/index.mjs +10 -8
- package/dist/plugins/generic-oauth/index.cjs +15 -10
- package/dist/plugins/generic-oauth/index.d.cts +6 -5
- package/dist/plugins/generic-oauth/index.d.mts +6 -5
- package/dist/plugins/generic-oauth/index.d.ts +6 -5
- package/dist/plugins/generic-oauth/index.mjs +15 -10
- package/dist/plugins/haveibeenpwned/index.cjs +13 -11
- package/dist/plugins/haveibeenpwned/index.d.cts +5 -4
- package/dist/plugins/haveibeenpwned/index.d.mts +5 -4
- package/dist/plugins/haveibeenpwned/index.d.ts +5 -4
- package/dist/plugins/haveibeenpwned/index.mjs +13 -11
- package/dist/plugins/index.cjs +25 -24
- package/dist/plugins/index.d.cts +7 -5
- package/dist/plugins/index.d.mts +7 -5
- package/dist/plugins/index.d.ts +7 -5
- package/dist/plugins/index.mjs +27 -26
- package/dist/plugins/jwt/index.cjs +11 -9
- package/dist/plugins/jwt/index.d.cts +4 -3
- package/dist/plugins/jwt/index.d.mts +4 -3
- package/dist/plugins/jwt/index.d.ts +4 -3
- package/dist/plugins/jwt/index.mjs +11 -9
- package/dist/plugins/magic-link/index.cjs +9 -7
- package/dist/plugins/magic-link/index.mjs +9 -7
- package/dist/plugins/multi-session/index.cjs +13 -11
- package/dist/plugins/multi-session/index.d.cts +5 -4
- package/dist/plugins/multi-session/index.d.mts +5 -4
- package/dist/plugins/multi-session/index.d.ts +5 -4
- package/dist/plugins/multi-session/index.mjs +13 -11
- package/dist/plugins/oauth-proxy/index.cjs +43 -10
- package/dist/plugins/oauth-proxy/index.d.cts +18 -6
- package/dist/plugins/oauth-proxy/index.d.mts +18 -6
- package/dist/plugins/oauth-proxy/index.d.ts +18 -6
- package/dist/plugins/oauth-proxy/index.mjs +43 -10
- package/dist/plugins/oidc-provider/index.cjs +10 -9
- package/dist/plugins/oidc-provider/index.d.cts +11 -10
- package/dist/plugins/oidc-provider/index.d.mts +11 -10
- package/dist/plugins/oidc-provider/index.d.ts +11 -10
- package/dist/plugins/oidc-provider/index.mjs +10 -9
- package/dist/plugins/one-tap/index.cjs +14 -12
- package/dist/plugins/one-tap/index.mjs +14 -12
- package/dist/plugins/one-time-token/index.cjs +11 -10
- package/dist/plugins/one-time-token/index.d.cts +5 -4
- package/dist/plugins/one-time-token/index.d.mts +5 -4
- package/dist/plugins/one-time-token/index.d.ts +5 -4
- package/dist/plugins/one-time-token/index.mjs +11 -10
- package/dist/plugins/open-api/index.cjs +9 -8
- package/dist/plugins/open-api/index.d.cts +11 -9
- package/dist/plugins/open-api/index.d.mts +11 -9
- package/dist/plugins/open-api/index.d.ts +11 -9
- package/dist/plugins/open-api/index.mjs +9 -8
- package/dist/plugins/organization/index.cjs +11 -10
- package/dist/plugins/organization/index.d.cts +112 -104
- package/dist/plugins/organization/index.d.mts +112 -104
- package/dist/plugins/organization/index.d.ts +112 -104
- package/dist/plugins/organization/index.mjs +11 -10
- package/dist/plugins/passkey/index.cjs +8 -6
- package/dist/plugins/passkey/index.d.cts +5 -4
- package/dist/plugins/passkey/index.d.mts +5 -4
- package/dist/plugins/passkey/index.d.ts +5 -4
- package/dist/plugins/passkey/index.mjs +8 -6
- package/dist/plugins/phone-number/index.cjs +13 -11
- package/dist/plugins/phone-number/index.d.cts +5 -4
- package/dist/plugins/phone-number/index.d.mts +5 -4
- package/dist/plugins/phone-number/index.d.ts +5 -4
- package/dist/plugins/phone-number/index.mjs +13 -11
- package/dist/plugins/siwe/index.cjs +16 -14
- package/dist/plugins/siwe/index.d.cts +5 -4
- package/dist/plugins/siwe/index.d.mts +5 -4
- package/dist/plugins/siwe/index.d.ts +5 -4
- package/dist/plugins/siwe/index.mjs +16 -14
- package/dist/plugins/sso/index.cjs +12 -8
- package/dist/plugins/sso/index.d.cts +9 -6
- package/dist/plugins/sso/index.d.mts +9 -6
- package/dist/plugins/sso/index.d.ts +9 -6
- package/dist/plugins/sso/index.mjs +12 -8
- package/dist/plugins/two-factor/index.cjs +15 -13
- package/dist/plugins/two-factor/index.d.cts +4 -3
- package/dist/plugins/two-factor/index.d.mts +4 -3
- package/dist/plugins/two-factor/index.d.ts +4 -3
- package/dist/plugins/two-factor/index.mjs +15 -13
- package/dist/plugins/username/index.cjs +16 -14
- package/dist/plugins/username/index.d.cts +10 -8
- package/dist/plugins/username/index.d.mts +10 -8
- package/dist/plugins/username/index.d.ts +10 -8
- package/dist/plugins/username/index.mjs +16 -14
- package/dist/shared/better-auth.6_yFxWJa.mjs +277 -0
- package/dist/shared/{better-auth.v_lf-jeY.d.cts → better-auth.7zTmTxT4.d.cts} +2 -2
- package/dist/shared/{better-auth.CAJUiXTA.mjs → better-auth.AiorGAx9.mjs} +8 -5
- package/dist/shared/{better-auth.CB248hqi.cjs → better-auth.B04ziJkQ.cjs} +36 -43
- package/dist/shared/{better-auth.CWoe8tep.cjs → better-auth.B0k5C6Ik.cjs} +2 -2
- package/dist/shared/{better-auth.CyoHIFUH.cjs → better-auth.B3DNJnq5.cjs} +91 -68
- package/dist/shared/{better-auth.CFtgxZkB.d.mts → better-auth.B6vltShC.d.mts} +4516 -8285
- package/dist/shared/{better-auth.C2xLgiCv.cjs → better-auth.BCLoxHEa.cjs} +1 -1
- package/dist/shared/{better-auth.XefKa8DI.d.mts → better-auth.BHPr8J54.d.mts} +2 -2
- package/dist/shared/{better-auth.DUTxy-hg.mjs → better-auth.BJYrr86k.mjs} +15 -24
- package/dist/shared/better-auth.BMPChMc7.mjs +188 -0
- package/dist/shared/{better-auth.Cwj5CPkV.mjs → better-auth.BQOp-6ij.mjs} +9 -6
- package/dist/shared/{better-auth.DTvRBuq4.cjs → better-auth.BToNb2fI.cjs} +10 -5
- package/dist/shared/{better-auth.CvNZNAOW.mjs → better-auth.BTrSrKsi.mjs} +1 -1
- package/dist/shared/{better-auth.Dlx1jCB2.mjs → better-auth.BZghgUMh.mjs} +21 -4
- package/dist/shared/{better-auth.BQvT5jPC.cjs → better-auth.B_KiGDcg.cjs} +17 -5
- package/dist/shared/{better-auth.CYEJMfBK.d.ts → better-auth.Bk_4yDU4.d.ts} +1 -1
- package/dist/shared/{better-auth.X9kq8Nfb.mjs → better-auth.BrEH5bcK.mjs} +87 -64
- package/dist/shared/{better-auth.C0qxpMUS.cjs → better-auth.Bu93hUoT.cjs} +20 -5
- package/dist/shared/{better-auth.BNc3SDTX.d.ts → better-auth.Bx-xCx8B.d.ts} +1 -1
- package/dist/shared/{better-auth.dKMb7G3x.mjs → better-auth.C-LJ3vsS.mjs} +36 -43
- package/dist/shared/{better-auth.4SXCyo06.d.ts → better-auth.C6qXK08w.d.ts} +2 -2
- package/dist/shared/{better-auth.BoY6Vo7c.mjs → better-auth.CGLD_W1L.mjs} +1 -1
- package/dist/shared/{better-auth.DHAY0xdm.cjs → better-auth.CHSXbSYZ.cjs} +21 -14
- package/dist/shared/{better-auth.N3ys23iz.d.cts → better-auth.CMiEK0ci.d.cts} +1 -1
- package/dist/shared/{better-auth.Boih1e_N.d.cts → better-auth.CNt9JvCi.d.cts} +8 -7
- package/dist/shared/{better-auth.CcIu4pGY.cjs → better-auth.CT9qUPnV.cjs} +31 -20
- package/dist/shared/{better-auth.BYvWEjMc.d.ts → better-auth.CXJ1sMcZ.d.ts} +4516 -8285
- package/dist/shared/{better-auth.Df7v65t4.cjs → better-auth.CZNeES-1.cjs} +4 -1
- package/dist/shared/{better-auth.BzWKH_Lm.d.mts → better-auth.Cb45psPE.d.ts} +9 -8
- package/dist/shared/{better-auth.bvByA6N5.d.mts → better-auth.CkEVRG35.d.mts} +1 -1
- package/dist/shared/better-auth.Cn-kIXzo.cjs +280 -0
- package/dist/shared/{better-auth.DGV8LtRu.mjs → better-auth.CpZXDeOc.mjs} +12 -13
- package/dist/shared/{better-auth.BtbGT670.mjs → better-auth.CrFwEmvg.mjs} +13 -12
- package/dist/shared/{better-auth.BdecEc2O.mjs → better-auth.CuYxrUA5.mjs} +17 -5
- package/dist/shared/better-auth.CzNBOMz8.cjs +190 -0
- package/dist/shared/{better-auth.7ixzXnnQ.d.cts → better-auth.D-V8F56U.d.cts} +1 -1
- package/dist/shared/{better-auth.DkbzbiTb.cjs → better-auth.D1rR7ww4.cjs} +9 -6
- package/dist/shared/{better-auth.DImZeRKY.d.cts → better-auth.D8QBzdu1.d.cts} +4516 -8285
- package/dist/shared/{better-auth.ZUJMxXV3.cjs → better-auth.DAx40NmY.cjs} +38 -17
- package/dist/shared/{better-auth.DfaynrsJ.cjs → better-auth.DWqB3pRb.cjs} +13 -12
- package/dist/shared/{better-auth.CIqzVuC5.mjs → better-auth.D_jpufHc.mjs} +2 -2
- package/dist/shared/{better-auth.BBk8MRta.cjs → better-auth.De2uf6ue.cjs} +40 -9
- package/dist/shared/{better-auth.C4g12FAA.mjs → better-auth.DgGir396.mjs} +10 -6
- package/dist/shared/{better-auth.D2444EHu.cjs → better-auth.DhuXIuMp.cjs} +15 -24
- package/dist/shared/{better-auth.Cjw1GDsh.mjs → better-auth.DhziC0ap.mjs} +2 -1
- package/dist/shared/{better-auth.Bb80Qhal.mjs → better-auth.DiiCErDI.mjs} +38 -17
- package/dist/shared/{better-auth.DgMx7bVs.cjs → better-auth.Jlhc86WK.cjs} +1 -1
- package/dist/shared/{better-auth.pyHheoY8.mjs → better-auth.L4mY8Wf-.mjs} +4 -3
- package/dist/shared/{better-auth.CHtMWaN8.d.ts → better-auth.N309TrHY.d.mts} +9 -8
- package/dist/shared/{better-auth.DceWxI_m.mjs → better-auth.NyTxN6ZW.mjs} +31 -20
- package/dist/shared/{better-auth.AYS43XM1.mjs → better-auth.Ou1j2X6M.mjs} +40 -9
- package/dist/shared/{better-auth.DF_1VOmo.cjs → better-auth.S3hDEI-1.cjs} +2 -1
- package/dist/shared/{better-auth.BAPVOPl3.mjs → better-auth.WSg8tg20.mjs} +4 -1
- package/dist/shared/{better-auth.oHfRlmfe.cjs → better-auth.anw-08Z3.cjs} +4 -3
- package/dist/shared/{better-auth.B8Yk6B-c.d.mts → better-auth.dk97jX40.d.mts} +1 -1
- package/dist/shared/{better-auth.RAAuA8D-.cjs → better-auth.l_Ru3SGW.cjs} +12 -13
- package/dist/shared/{better-auth.Fn0ZCxWT.cjs → better-auth.sRvUzL4j.cjs} +8 -5
- package/dist/shared/{better-auth.Cppf38DI.mjs → better-auth.v5aCQ4TA.mjs} +21 -14
- package/dist/social-providers/index.cjs +8 -6
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/dist/social-providers/index.mjs +8 -6
- package/dist/test-utils/index.cjs +19 -18
- package/dist/test-utils/index.d.cts +419 -6058
- package/dist/test-utils/index.d.mts +419 -6058
- package/dist/test-utils/index.d.ts +419 -6058
- package/dist/test-utils/index.mjs +19 -18
- package/dist/types/index.d.cts +6 -5
- package/dist/types/index.d.mts +6 -5
- package/dist/types/index.d.ts +6 -5
- package/package.json +17 -3
- package/dist/shared/better-auth.C84XtErM.mjs +0 -815
- package/dist/shared/better-auth.CXBPmam_.cjs +0 -819
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
const drizzleOrm = require('drizzle-orm');
|
|
4
4
|
const index$1 = require('../../shared/better-auth.ANpbi45u.cjs');
|
|
5
|
-
const index = require('../../shared/better-auth.
|
|
6
|
-
require('../../shared/better-auth.
|
|
7
|
-
require('../../shared/better-auth.
|
|
5
|
+
const index = require('../../shared/better-auth.B3DNJnq5.cjs');
|
|
6
|
+
require('../../shared/better-auth.Jlhc86WK.cjs');
|
|
7
|
+
require('../../shared/better-auth.BToNb2fI.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
9
|
-
require('../../shared/better-auth.
|
|
9
|
+
require('../../shared/better-auth.S3hDEI-1.cjs');
|
|
10
10
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
11
11
|
require('@better-auth/utils/random');
|
|
12
12
|
require('zod');
|
|
@@ -48,7 +48,13 @@ const drizzleAdapter = (db, config) => {
|
|
|
48
48
|
const schemaModel = getSchema(model);
|
|
49
49
|
const builderVal = builder.config?.values;
|
|
50
50
|
if (where?.length) {
|
|
51
|
-
const
|
|
51
|
+
const updatedWhere = where.map((w) => {
|
|
52
|
+
if (data[w.field] !== void 0) {
|
|
53
|
+
return { ...w, value: data[w.field] };
|
|
54
|
+
}
|
|
55
|
+
return w;
|
|
56
|
+
});
|
|
57
|
+
const clause = convertWhereClause(updatedWhere, model);
|
|
52
58
|
const res = await db2.select().from(schemaModel).where(...clause);
|
|
53
59
|
return res[0];
|
|
54
60
|
} else if (builderVal && builderVal[0]?.id?.value) {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.D8QBzdu1.cjs';
|
|
2
|
+
import '../../shared/better-auth.7zTmTxT4.cjs';
|
|
3
|
+
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
2
4
|
import 'zod';
|
|
3
5
|
import 'kysely';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
interface DB {
|
|
13
14
|
[key: string]: any;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B6vltShC.mjs';
|
|
2
|
+
import '../../shared/better-auth.BHPr8J54.mjs';
|
|
3
|
+
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
2
4
|
import 'zod';
|
|
3
5
|
import 'kysely';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
interface DB {
|
|
13
14
|
[key: string]: any;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CXJ1sMcZ.js';
|
|
2
|
+
import '../../shared/better-auth.C6qXK08w.js';
|
|
3
|
+
import '../../shared/better-auth.DTtXpZYr.js';
|
|
2
4
|
import 'zod';
|
|
3
5
|
import 'kysely';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.4SXCyo06.js';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
interface DB {
|
|
13
14
|
[key: string]: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { count, desc, asc, inArray, notInArray, like, lt, lte, ne, gt, gte, eq, and, or, sql } from 'drizzle-orm';
|
|
2
2
|
import { B as BetterAuthError } from '../../shared/better-auth.DdzSJf-n.mjs';
|
|
3
|
-
import { c as createAdapterFactory } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { c as createAdapterFactory } from '../../shared/better-auth.BrEH5bcK.mjs';
|
|
4
|
+
import '../../shared/better-auth.BTrSrKsi.mjs';
|
|
5
|
+
import '../../shared/better-auth.DgGir396.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.DhziC0ap.mjs';
|
|
8
8
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
9
9
|
import '@better-auth/utils/random';
|
|
10
10
|
import 'zod';
|
|
@@ -46,7 +46,13 @@ const drizzleAdapter = (db, config) => {
|
|
|
46
46
|
const schemaModel = getSchema(model);
|
|
47
47
|
const builderVal = builder.config?.values;
|
|
48
48
|
if (where?.length) {
|
|
49
|
-
const
|
|
49
|
+
const updatedWhere = where.map((w) => {
|
|
50
|
+
if (data[w.field] !== void 0) {
|
|
51
|
+
return { ...w, value: data[w.field] };
|
|
52
|
+
}
|
|
53
|
+
return w;
|
|
54
|
+
});
|
|
55
|
+
const clause = convertWhereClause(updatedWhere, model);
|
|
50
56
|
const res = await db2.select().from(schemaModel).where(...clause);
|
|
51
57
|
return res[0];
|
|
52
58
|
} else if (builderVal && builderVal[0]?.id?.value) {
|
package/dist/adapters/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('../shared/better-auth.
|
|
4
|
-
require('../shared/better-auth.
|
|
5
|
-
require('../shared/better-auth.
|
|
3
|
+
const index = require('../shared/better-auth.B3DNJnq5.cjs');
|
|
4
|
+
require('../shared/better-auth.Jlhc86WK.cjs');
|
|
5
|
+
require('../shared/better-auth.BToNb2fI.cjs');
|
|
6
6
|
require('../shared/better-auth.B6fIklBU.cjs');
|
|
7
|
-
require('../shared/better-auth.
|
|
7
|
+
require('../shared/better-auth.S3hDEI-1.cjs');
|
|
8
8
|
require('../shared/better-auth.Bg6iw3ig.cjs');
|
|
9
9
|
require('@better-auth/utils/random');
|
|
10
10
|
require('zod');
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter,
|
|
2
|
-
export { A as AdapterDebugLogs,
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, i as AdapterFactoryOptions, j as AdapterFactoryConfig, k as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.D8QBzdu1.cjs';
|
|
2
|
+
export { A as AdapterDebugLogs, l as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.D8QBzdu1.cjs';
|
|
3
|
+
import '../shared/better-auth.7zTmTxT4.cjs';
|
|
4
|
+
import '../shared/better-auth.DTtXpZYr.cjs';
|
|
3
5
|
import 'zod';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '
|
|
7
|
-
import '../shared/better-auth.v_lf-jeY.cjs';
|
|
8
|
-
import 'zod/v4/core';
|
|
8
|
+
import '@better-auth/core/db';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
11
11
|
import 'node:sqlite';
|
|
12
|
+
import 'zod/v4/core';
|
|
12
13
|
|
|
13
14
|
type AdapterFactory = (options: BetterAuthOptions) => Adapter;
|
|
14
15
|
declare const createAdapterFactory: ({ adapter: customAdapter, config: cfg, }: AdapterFactoryOptions) => AdapterFactory;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter,
|
|
2
|
-
export { A as AdapterDebugLogs,
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, i as AdapterFactoryOptions, j as AdapterFactoryConfig, k as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.B6vltShC.mjs';
|
|
2
|
+
export { A as AdapterDebugLogs, l as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.B6vltShC.mjs';
|
|
3
|
+
import '../shared/better-auth.BHPr8J54.mjs';
|
|
4
|
+
import '../shared/better-auth.DTtXpZYr.mjs';
|
|
3
5
|
import 'zod';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '
|
|
7
|
-
import '../shared/better-auth.XefKa8DI.mjs';
|
|
8
|
-
import 'zod/v4/core';
|
|
8
|
+
import '@better-auth/core/db';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
11
11
|
import 'node:sqlite';
|
|
12
|
+
import 'zod/v4/core';
|
|
12
13
|
|
|
13
14
|
type AdapterFactory = (options: BetterAuthOptions) => Adapter;
|
|
14
15
|
declare const createAdapterFactory: ({ adapter: customAdapter, config: cfg, }: AdapterFactoryOptions) => AdapterFactory;
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter,
|
|
2
|
-
export { A as AdapterDebugLogs,
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, i as AdapterFactoryOptions, j as AdapterFactoryConfig, k as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.CXJ1sMcZ.js';
|
|
2
|
+
export { A as AdapterDebugLogs, l as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.CXJ1sMcZ.js';
|
|
3
|
+
import '../shared/better-auth.C6qXK08w.js';
|
|
4
|
+
import '../shared/better-auth.DTtXpZYr.js';
|
|
3
5
|
import 'zod';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '
|
|
7
|
-
import '../shared/better-auth.4SXCyo06.js';
|
|
8
|
-
import 'zod/v4/core';
|
|
8
|
+
import '@better-auth/core/db';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
11
11
|
import 'node:sqlite';
|
|
12
|
+
import 'zod/v4/core';
|
|
12
13
|
|
|
13
14
|
type AdapterFactory = (options: BetterAuthOptions) => Adapter;
|
|
14
15
|
declare const createAdapterFactory: ({ adapter: customAdapter, config: cfg, }: AdapterFactoryOptions) => AdapterFactory;
|
package/dist/adapters/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as createAdapterFactory } from '../shared/better-auth.
|
|
2
|
-
import '../shared/better-auth.
|
|
3
|
-
import '../shared/better-auth.
|
|
1
|
+
import { c as createAdapterFactory } from '../shared/better-auth.BrEH5bcK.mjs';
|
|
2
|
+
import '../shared/better-auth.BTrSrKsi.mjs';
|
|
3
|
+
import '../shared/better-auth.DgGir396.mjs';
|
|
4
4
|
import '../shared/better-auth.CiuwFiHM.mjs';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.DhziC0ap.mjs';
|
|
6
6
|
import '../shared/better-auth.BUPPRXfK.mjs';
|
|
7
7
|
import '@better-auth/utils/random';
|
|
8
8
|
import 'zod';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const kyselyAdapter = require('../../shared/better-auth.
|
|
3
|
+
const kyselyAdapter = require('../../shared/better-auth.DhuXIuMp.cjs');
|
|
4
4
|
require('kysely');
|
|
5
|
-
require('../../shared/better-auth.
|
|
6
|
-
require('../../shared/better-auth.
|
|
7
|
-
require('../../shared/better-auth.
|
|
5
|
+
require('../../shared/better-auth.B3DNJnq5.cjs');
|
|
6
|
+
require('../../shared/better-auth.Jlhc86WK.cjs');
|
|
7
|
+
require('../../shared/better-auth.BToNb2fI.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
9
|
-
require('../../shared/better-auth.
|
|
9
|
+
require('../../shared/better-auth.S3hDEI-1.cjs');
|
|
10
10
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
11
11
|
require('@better-auth/utils/random');
|
|
12
12
|
require('zod');
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.D8QBzdu1.cjs';
|
|
3
|
+
import '../../shared/better-auth.7zTmTxT4.cjs';
|
|
4
|
+
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
3
5
|
import 'zod';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
declare function getKyselyDatabaseType(db: BetterAuthOptions["database"]): KyselyDatabaseType | null;
|
|
13
14
|
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.B6vltShC.mjs';
|
|
3
|
+
import '../../shared/better-auth.BHPr8J54.mjs';
|
|
4
|
+
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
3
5
|
import 'zod';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
declare function getKyselyDatabaseType(db: BetterAuthOptions["database"]): KyselyDatabaseType | null;
|
|
13
14
|
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.CXJ1sMcZ.js';
|
|
3
|
+
import '../../shared/better-auth.C6qXK08w.js';
|
|
4
|
+
import '../../shared/better-auth.DTtXpZYr.js';
|
|
3
5
|
import 'zod';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.4SXCyo06.js';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
declare function getKyselyDatabaseType(db: BetterAuthOptions["database"]): KyselyDatabaseType | null;
|
|
13
14
|
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { c as createKyselyAdapter, g as getKyselyDatabaseType, k as kyselyAdapter } from '../../shared/better-auth.
|
|
1
|
+
export { c as createKyselyAdapter, g as getKyselyDatabaseType, k as kyselyAdapter } from '../../shared/better-auth.BJYrr86k.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
|
-
import '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import '../../shared/better-auth.BrEH5bcK.mjs';
|
|
4
|
+
import '../../shared/better-auth.BTrSrKsi.mjs';
|
|
5
|
+
import '../../shared/better-auth.DgGir396.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.DhziC0ap.mjs';
|
|
8
8
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
9
9
|
import '@better-auth/utils/random';
|
|
10
10
|
import 'zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const memoryAdapter = require('../../shared/better-auth.
|
|
3
|
+
const memoryAdapter = require('../../shared/better-auth.De2uf6ue.cjs');
|
|
4
4
|
require('@better-auth/utils/random');
|
|
5
5
|
require('zod');
|
|
6
6
|
require('better-call');
|
|
@@ -13,11 +13,11 @@ require('@noble/hashes/scrypt.js');
|
|
|
13
13
|
require('@better-auth/utils/hex');
|
|
14
14
|
require('@noble/hashes/utils.js');
|
|
15
15
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
16
|
-
require('../../shared/better-auth.
|
|
16
|
+
require('../../shared/better-auth.BToNb2fI.cjs');
|
|
17
17
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
18
|
-
require('../../shared/better-auth.
|
|
19
|
-
require('../../shared/better-auth.
|
|
20
|
-
require('../../shared/better-auth.
|
|
18
|
+
require('../../shared/better-auth.B3DNJnq5.cjs');
|
|
19
|
+
require('../../shared/better-auth.Jlhc86WK.cjs');
|
|
20
|
+
require('../../shared/better-auth.S3hDEI-1.cjs');
|
|
21
21
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.D8QBzdu1.cjs';
|
|
2
|
+
import '../../shared/better-auth.7zTmTxT4.cjs';
|
|
3
|
+
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
2
4
|
import 'zod';
|
|
3
5
|
import 'kysely';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
interface MemoryDB {
|
|
13
14
|
[key: string]: any[];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B6vltShC.mjs';
|
|
2
|
+
import '../../shared/better-auth.BHPr8J54.mjs';
|
|
3
|
+
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
2
4
|
import 'zod';
|
|
3
5
|
import 'kysely';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
interface MemoryDB {
|
|
13
14
|
[key: string]: any[];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CXJ1sMcZ.js';
|
|
2
|
+
import '../../shared/better-auth.C6qXK08w.js';
|
|
3
|
+
import '../../shared/better-auth.DTtXpZYr.js';
|
|
2
4
|
import 'zod';
|
|
3
5
|
import 'kysely';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.4SXCyo06.js';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
interface MemoryDB {
|
|
13
14
|
[key: string]: any[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as memoryAdapter } from '../../shared/better-auth.
|
|
1
|
+
export { m as memoryAdapter } from '../../shared/better-auth.Ou1j2X6M.mjs';
|
|
2
2
|
import '@better-auth/utils/random';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
@@ -11,9 +11,9 @@ import '@noble/hashes/scrypt.js';
|
|
|
11
11
|
import '@better-auth/utils/hex';
|
|
12
12
|
import '@noble/hashes/utils.js';
|
|
13
13
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
14
|
-
import '../../shared/better-auth.
|
|
14
|
+
import '../../shared/better-auth.DgGir396.mjs';
|
|
15
15
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
16
|
-
import '../../shared/better-auth.
|
|
17
|
-
import '../../shared/better-auth.
|
|
18
|
-
import '../../shared/better-auth.
|
|
16
|
+
import '../../shared/better-auth.BrEH5bcK.mjs';
|
|
17
|
+
import '../../shared/better-auth.BTrSrKsi.mjs';
|
|
18
|
+
import '../../shared/better-auth.DhziC0ap.mjs';
|
|
19
19
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const mongodbAdapter = require('../../shared/better-auth.
|
|
3
|
+
const mongodbAdapter = require('../../shared/better-auth.CT9qUPnV.cjs');
|
|
4
4
|
require('mongodb');
|
|
5
|
-
require('../../shared/better-auth.
|
|
6
|
-
require('../../shared/better-auth.
|
|
7
|
-
require('../../shared/better-auth.
|
|
5
|
+
require('../../shared/better-auth.B3DNJnq5.cjs');
|
|
6
|
+
require('../../shared/better-auth.Jlhc86WK.cjs');
|
|
7
|
+
require('../../shared/better-auth.BToNb2fI.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
9
|
-
require('../../shared/better-auth.
|
|
9
|
+
require('../../shared/better-auth.S3hDEI-1.cjs');
|
|
10
10
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
11
11
|
require('@better-auth/utils/random');
|
|
12
12
|
require('zod');
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.D8QBzdu1.cjs';
|
|
3
|
+
import '../../shared/better-auth.7zTmTxT4.cjs';
|
|
4
|
+
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
3
5
|
import 'zod';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '
|
|
7
|
-
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
8
|
-
import 'zod/v4/core';
|
|
8
|
+
import '@better-auth/core/db';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
11
11
|
import 'node:sqlite';
|
|
12
|
+
import 'zod/v4/core';
|
|
12
13
|
|
|
13
14
|
interface MongoDBAdapterConfig {
|
|
14
15
|
/**
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B6vltShC.mjs';
|
|
3
|
+
import '../../shared/better-auth.BHPr8J54.mjs';
|
|
4
|
+
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
3
5
|
import 'zod';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '
|
|
7
|
-
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
8
|
-
import 'zod/v4/core';
|
|
8
|
+
import '@better-auth/core/db';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
11
11
|
import 'node:sqlite';
|
|
12
|
+
import 'zod/v4/core';
|
|
12
13
|
|
|
13
14
|
interface MongoDBAdapterConfig {
|
|
14
15
|
/**
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CXJ1sMcZ.js';
|
|
3
|
+
import '../../shared/better-auth.C6qXK08w.js';
|
|
4
|
+
import '../../shared/better-auth.DTtXpZYr.js';
|
|
3
5
|
import 'zod';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '
|
|
7
|
-
import '../../shared/better-auth.4SXCyo06.js';
|
|
8
|
-
import 'zod/v4/core';
|
|
8
|
+
import '@better-auth/core/db';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
11
11
|
import 'node:sqlite';
|
|
12
|
+
import 'zod/v4/core';
|
|
12
13
|
|
|
13
14
|
interface MongoDBAdapterConfig {
|
|
14
15
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { m as mongodbAdapter } from '../../shared/better-auth.
|
|
1
|
+
export { m as mongodbAdapter } from '../../shared/better-auth.NyTxN6ZW.mjs';
|
|
2
2
|
import 'mongodb';
|
|
3
|
-
import '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import '../../shared/better-auth.BrEH5bcK.mjs';
|
|
4
|
+
import '../../shared/better-auth.BTrSrKsi.mjs';
|
|
5
|
+
import '../../shared/better-auth.DgGir396.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.DhziC0ap.mjs';
|
|
8
8
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
9
9
|
import '@better-auth/utils/random';
|
|
10
10
|
import 'zod';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index$1 = require('../../shared/better-auth.ANpbi45u.cjs');
|
|
4
|
-
const index = require('../../shared/better-auth.
|
|
5
|
-
require('../../shared/better-auth.
|
|
6
|
-
require('../../shared/better-auth.
|
|
4
|
+
const index = require('../../shared/better-auth.B3DNJnq5.cjs');
|
|
5
|
+
require('../../shared/better-auth.Jlhc86WK.cjs');
|
|
6
|
+
require('../../shared/better-auth.BToNb2fI.cjs');
|
|
7
7
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
8
|
-
require('../../shared/better-auth.
|
|
8
|
+
require('../../shared/better-auth.S3hDEI-1.cjs');
|
|
9
9
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
10
10
|
require('@better-auth/utils/random');
|
|
11
11
|
require('zod');
|
|
@@ -48,7 +48,7 @@ const prismaAdapter = (prisma, config) => {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
const convertWhereClause = (model, where) => {
|
|
51
|
-
if (!where) return {};
|
|
51
|
+
if (!where || !where.length) return {};
|
|
52
52
|
if (where.length === 1) {
|
|
53
53
|
const w = where[0];
|
|
54
54
|
if (!w) {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.D8QBzdu1.cjs';
|
|
2
|
+
import '../../shared/better-auth.7zTmTxT4.cjs';
|
|
3
|
+
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
2
4
|
import 'zod';
|
|
3
5
|
import 'kysely';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
interface PrismaConfig {
|
|
13
14
|
/**
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B6vltShC.mjs';
|
|
2
|
+
import '../../shared/better-auth.BHPr8J54.mjs';
|
|
3
|
+
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
2
4
|
import 'zod';
|
|
3
5
|
import 'kysely';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
interface PrismaConfig {
|
|
13
14
|
/**
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CXJ1sMcZ.js';
|
|
2
|
+
import '../../shared/better-auth.C6qXK08w.js';
|
|
3
|
+
import '../../shared/better-auth.DTtXpZYr.js';
|
|
2
4
|
import 'zod';
|
|
3
5
|
import 'kysely';
|
|
4
6
|
import 'better-call';
|
|
5
|
-
import '
|
|
6
|
-
import '../../shared/better-auth.4SXCyo06.js';
|
|
7
|
-
import 'zod/v4/core';
|
|
7
|
+
import '@better-auth/core/db';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
10
10
|
import 'node:sqlite';
|
|
11
|
+
import 'zod/v4/core';
|
|
11
12
|
|
|
12
13
|
interface PrismaConfig {
|
|
13
14
|
/**
|