better-auth 1.3.11 → 1.3.13
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 +2 -2
- package/dist/adapters/drizzle-adapter/index.d.cts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
- package/dist/adapters/drizzle-adapter/index.mjs +2 -2
- package/dist/adapters/index.cjs +1 -1
- package/dist/adapters/index.d.cts +3 -3
- package/dist/adapters/index.d.mts +3 -3
- package/dist/adapters/index.d.ts +3 -3
- package/dist/adapters/index.mjs +1 -1
- package/dist/adapters/kysely-adapter/index.cjs +2 -2
- package/dist/adapters/kysely-adapter/index.d.cts +7 -2
- package/dist/adapters/kysely-adapter/index.d.mts +7 -2
- package/dist/adapters/kysely-adapter/index.d.ts +7 -2
- package/dist/adapters/kysely-adapter/index.mjs +2 -2
- package/dist/adapters/memory-adapter/index.cjs +2 -2
- package/dist/adapters/memory-adapter/index.d.cts +2 -2
- package/dist/adapters/memory-adapter/index.d.mts +2 -2
- package/dist/adapters/memory-adapter/index.d.ts +2 -2
- package/dist/adapters/memory-adapter/index.mjs +2 -2
- package/dist/adapters/mongodb-adapter/index.cjs +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
- package/dist/adapters/mongodb-adapter/index.mjs +2 -2
- package/dist/adapters/prisma-adapter/index.cjs +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +2 -2
- package/dist/adapters/prisma-adapter/index.d.mts +2 -2
- package/dist/adapters/prisma-adapter/index.d.ts +2 -2
- package/dist/adapters/prisma-adapter/index.mjs +2 -2
- package/dist/adapters/test.cjs +18 -2
- package/dist/adapters/test.d.cts +2 -2
- package/dist/adapters/test.d.mts +2 -2
- package/dist/adapters/test.d.ts +2 -2
- package/dist/adapters/test.mjs +18 -2
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.mjs +2 -2
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.mts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.mjs +2 -2
- package/dist/client/plugins/index.cjs +10 -34
- package/dist/client/plugins/index.d.cts +30 -8
- package/dist/client/plugins/index.d.mts +30 -8
- package/dist/client/plugins/index.d.ts +30 -8
- package/dist/client/plugins/index.mjs +8 -33
- package/dist/client/react/index.cjs +1 -1
- package/dist/client/react/index.d.cts +3 -3
- package/dist/client/react/index.d.mts +3 -3
- package/dist/client/react/index.d.ts +3 -3
- package/dist/client/react/index.mjs +1 -1
- package/dist/client/solid/index.cjs +1 -1
- package/dist/client/solid/index.d.cts +3 -3
- package/dist/client/solid/index.d.mts +3 -3
- package/dist/client/solid/index.d.ts +3 -3
- package/dist/client/solid/index.mjs +1 -1
- package/dist/client/svelte/index.cjs +1 -1
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/svelte/index.mjs +1 -1
- package/dist/client/vue/index.cjs +1 -1
- package/dist/client/vue/index.d.cts +3 -3
- package/dist/client/vue/index.d.mts +3 -3
- package/dist/client/vue/index.d.ts +3 -3
- package/dist/client/vue/index.mjs +1 -1
- package/dist/cookies/index.d.cts +2 -2
- package/dist/cookies/index.d.mts +2 -2
- package/dist/cookies/index.d.ts +2 -2
- package/dist/db/index.cjs +4 -4
- package/dist/db/index.d.cts +3 -3
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.d.ts +3 -3
- package/dist/db/index.mjs +4 -4
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +6 -6
- package/dist/integrations/next-js.cjs +2 -2
- package/dist/integrations/next-js.d.cts +2 -2
- package/dist/integrations/next-js.d.mts +2 -2
- package/dist/integrations/next-js.d.ts +2 -2
- package/dist/integrations/next-js.mjs +2 -2
- package/dist/integrations/node.d.cts +2 -2
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/node.d.ts +2 -2
- package/dist/integrations/react-start.cjs +2 -2
- package/dist/integrations/react-start.d.cts +2 -2
- package/dist/integrations/react-start.d.mts +2 -2
- package/dist/integrations/react-start.d.ts +2 -2
- package/dist/integrations/react-start.mjs +2 -2
- package/dist/integrations/svelte-kit.cjs +1 -1
- package/dist/integrations/svelte-kit.d.cts +2 -2
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.ts +2 -2
- package/dist/integrations/svelte-kit.mjs +1 -1
- package/dist/oauth2/index.cjs +1 -1
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/oauth2/index.mjs +1 -1
- package/dist/plugins/admin/index.cjs +2 -2
- package/dist/plugins/admin/index.d.cts +2 -2
- package/dist/plugins/admin/index.d.mts +2 -2
- package/dist/plugins/admin/index.d.ts +2 -2
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.cjs +1 -1
- package/dist/plugins/anonymous/index.d.cts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.ts +2 -2
- package/dist/plugins/anonymous/index.mjs +1 -1
- package/dist/plugins/bearer/index.cjs +1 -1
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/bearer/index.d.ts +2 -2
- package/dist/plugins/bearer/index.mjs +1 -1
- package/dist/plugins/captcha/index.d.cts +2 -2
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/captcha/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.cjs +1 -1
- package/dist/plugins/custom-session/index.d.cts +2 -2
- package/dist/plugins/custom-session/index.d.mts +2 -2
- package/dist/plugins/custom-session/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.mjs +1 -1
- package/dist/plugins/device-authorization/index.cjs +16 -0
- package/dist/plugins/device-authorization/index.d.cts +2 -2
- package/dist/plugins/device-authorization/index.d.mts +2 -2
- package/dist/plugins/device-authorization/index.d.ts +2 -2
- package/dist/plugins/device-authorization/index.mjs +16 -0
- package/dist/plugins/email-otp/index.cjs +7 -15
- package/dist/plugins/email-otp/index.d.cts +3 -3
- package/dist/plugins/email-otp/index.d.mts +3 -3
- package/dist/plugins/email-otp/index.d.ts +3 -3
- package/dist/plugins/email-otp/index.mjs +7 -15
- package/dist/plugins/generic-oauth/index.cjs +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +2 -2
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/generic-oauth/index.d.ts +2 -2
- package/dist/plugins/generic-oauth/index.mjs +1 -1
- package/dist/plugins/haveibeenpwned/index.cjs +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -2
- package/dist/plugins/haveibeenpwned/index.mjs +1 -1
- package/dist/plugins/index.cjs +28 -7
- package/dist/plugins/index.d.cts +18 -4
- package/dist/plugins/index.d.mts +18 -4
- package/dist/plugins/index.d.ts +18 -4
- package/dist/plugins/index.mjs +29 -8
- package/dist/plugins/jwt/index.cjs +1 -1
- package/dist/plugins/jwt/index.d.cts +2 -2
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.ts +2 -2
- package/dist/plugins/jwt/index.mjs +1 -1
- package/dist/plugins/magic-link/index.cjs +1 -1
- package/dist/plugins/magic-link/index.mjs +1 -1
- package/dist/plugins/multi-session/index.cjs +1 -1
- package/dist/plugins/multi-session/index.d.cts +2 -2
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.d.ts +2 -2
- package/dist/plugins/multi-session/index.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +2 -2
- package/dist/plugins/oauth-proxy/index.d.mts +2 -2
- package/dist/plugins/oauth-proxy/index.d.ts +2 -2
- package/dist/plugins/oauth-proxy/index.mjs +1 -1
- package/dist/plugins/oidc-provider/index.cjs +2 -2
- package/dist/plugins/oidc-provider/index.d.cts +2 -2
- package/dist/plugins/oidc-provider/index.d.mts +2 -2
- package/dist/plugins/oidc-provider/index.d.ts +2 -2
- package/dist/plugins/oidc-provider/index.mjs +2 -2
- package/dist/plugins/one-tap/index.cjs +1 -1
- package/dist/plugins/one-tap/index.mjs +1 -1
- package/dist/plugins/one-time-token/index.cjs +3 -3
- package/dist/plugins/one-time-token/index.d.cts +2 -2
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.d.ts +2 -2
- package/dist/plugins/one-time-token/index.mjs +3 -3
- package/dist/plugins/open-api/index.cjs +1 -1
- package/dist/plugins/open-api/index.d.cts +37 -5
- package/dist/plugins/open-api/index.d.mts +37 -5
- package/dist/plugins/open-api/index.d.ts +37 -5
- package/dist/plugins/open-api/index.mjs +1 -1
- package/dist/plugins/organization/access/index.d.cts +25 -25
- package/dist/plugins/organization/access/index.d.mts +25 -25
- package/dist/plugins/organization/access/index.d.ts +25 -25
- package/dist/plugins/organization/index.cjs +4 -4
- package/dist/plugins/organization/index.d.cts +4 -10
- package/dist/plugins/organization/index.d.mts +4 -10
- package/dist/plugins/organization/index.d.ts +4 -10
- package/dist/plugins/organization/index.mjs +4 -4
- package/dist/plugins/passkey/index.cjs +1 -6
- package/dist/plugins/passkey/index.d.cts +3 -8
- package/dist/plugins/passkey/index.d.mts +3 -8
- package/dist/plugins/passkey/index.d.ts +3 -8
- package/dist/plugins/passkey/index.mjs +1 -6
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.d.cts +2 -2
- package/dist/plugins/phone-number/index.d.mts +2 -2
- package/dist/plugins/phone-number/index.d.ts +2 -2
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/siwe/index.cjs +1 -1
- package/dist/plugins/siwe/index.d.cts +2 -2
- package/dist/plugins/siwe/index.d.mts +2 -2
- package/dist/plugins/siwe/index.d.ts +2 -2
- package/dist/plugins/siwe/index.mjs +1 -1
- package/dist/plugins/sso/index.cjs +1 -1
- package/dist/plugins/sso/index.d.cts +2 -2
- package/dist/plugins/sso/index.d.mts +2 -2
- package/dist/plugins/sso/index.d.ts +2 -2
- package/dist/plugins/sso/index.mjs +1 -1
- package/dist/plugins/two-factor/index.cjs +1 -1
- package/dist/plugins/two-factor/index.d.cts +2 -2
- package/dist/plugins/two-factor/index.d.mts +2 -2
- package/dist/plugins/two-factor/index.d.ts +2 -2
- package/dist/plugins/two-factor/index.mjs +1 -1
- package/dist/plugins/username/index.cjs +1 -1
- package/dist/plugins/username/index.d.cts +2 -2
- package/dist/plugins/username/index.d.mts +2 -2
- package/dist/plugins/username/index.d.ts +2 -2
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/shared/{better-auth.Q_6-mVqY.cjs → better-auth.2jEckJ7k.cjs} +1 -1
- package/dist/shared/{better-auth.C6XqSToF.mjs → better-auth.3naUdTMW.mjs} +1 -1
- package/dist/shared/{better-auth.DhdDxivH.d.cts → better-auth.7zTmTxT4.d.cts} +3 -2
- package/dist/shared/{better-auth.DZfsKi2z.d.cts → better-auth.B1kKIM0o.d.cts} +50 -31
- package/dist/shared/{better-auth.Cnh5fEd0.mjs → better-auth.B1ufdjSo.mjs} +3 -3
- package/dist/shared/{better-auth.CbV2Bzor.cjs → better-auth.B5O-5tFi.cjs} +35 -34
- package/dist/shared/{better-auth.BHqN3Ecq.d.mts → better-auth.BHPr8J54.d.mts} +3 -2
- package/dist/shared/{better-auth.Dgq_1hxR.mjs → better-auth.BPua9lvR.mjs} +3 -1
- package/dist/shared/{better-auth.BxWi_xsJ.d.ts → better-auth.BYskLPvJ.d.ts} +1 -1
- package/dist/shared/{better-auth.QLqajY7E.cjs → better-auth.Bb_sp3q4.cjs} +3 -3
- package/dist/shared/{better-auth.DoIzix-f.cjs → better-auth.Bhva6lEh.cjs} +1 -1
- package/dist/shared/{better-auth.4_1BfAo1.cjs → better-auth.BkcRiga0.cjs} +1 -1
- package/dist/shared/{better-auth.BP4t6QJR.mjs → better-auth.BnOSz3eR.mjs} +1 -1
- package/dist/shared/{better-auth.C4B1KeE5.mjs → better-auth.Bo_XNm3Z.mjs} +1 -1
- package/dist/shared/{better-auth.BBLxGH6k.d.ts → better-auth.Brg-UO7k.d.ts} +50 -31
- package/dist/shared/{better-auth.C_kPikD6.mjs → better-auth.Btbv22jM.mjs} +35 -34
- package/dist/shared/{better-auth.CAARgILC.d.mts → better-auth.C0-0BnjK.d.mts} +1 -1
- package/dist/shared/{better-auth.BRPXwKUM.mjs → better-auth.C1AWk7z7.mjs} +1 -1
- package/dist/shared/{better-auth.DLM3kjPd.d.cts → better-auth.C1Tqa_El.d.cts} +1 -1
- package/dist/shared/{better-auth.CMhVKkdJ.cjs → better-auth.C29_dxUJ.cjs} +62 -30
- package/dist/shared/{better-auth.B2AIpsP8.d.ts → better-auth.C6qXK08w.d.ts} +3 -2
- package/dist/shared/{better-auth.DXeNPmcB.cjs → better-auth.CcIu4pGY.cjs} +2 -2
- package/dist/shared/{better-auth.C6nXNt6c.mjs → better-auth.Cj28z0kQ.mjs} +3 -3
- package/dist/shared/better-auth.CqRypKVa.cjs +22 -0
- package/dist/shared/{better-auth.B5_hCdeH.cjs → better-auth.CvVm_hFg.cjs} +1 -1
- package/dist/shared/{better-auth.CPX-72D3.cjs → better-auth.CyoHIFUH.cjs} +4 -2
- package/dist/shared/{better-auth.Cl7sGL_Z.d.cts → better-auth.D07k8aB_.d.cts} +1 -1
- package/dist/shared/{better-auth.BaoSQduK.cjs → better-auth.D6pGomIg.cjs} +3 -1
- package/dist/shared/{better-auth.DLBu4fGK.d.mts → better-auth.DHi8l3iG.d.mts} +3 -1
- package/dist/shared/{better-auth.SCAGFnmj.mjs → better-auth.DL8idXrv.mjs} +1 -1
- package/dist/shared/{better-auth.By4Njqhx.d.ts → better-auth.DNMTw_ds.d.ts} +1 -1
- package/dist/shared/{better-auth.DrBxn4Gg.d.mts → better-auth.DRukcsOo.d.mts} +1 -1
- package/dist/shared/{better-auth.P3cKfZGH.d.ts → better-auth.DTgTiHPJ.d.ts} +3 -1
- package/dist/shared/{better-auth.z1uPo0WK.cjs → better-auth.DTyvXiMc.cjs} +3 -3
- package/dist/shared/{better-auth.BfH-lFD6.cjs → better-auth.DXGtScCP.cjs} +10 -6
- package/dist/shared/better-auth.DaEBQJp_.mjs +19 -0
- package/dist/shared/{better-auth.D9gaWLZm.mjs → better-auth.DceWxI_m.mjs} +2 -2
- package/dist/shared/{better-auth.r7DxcRaY.mjs → better-auth.Ddv1-cj-.mjs} +10 -6
- package/dist/shared/{better-auth.Di9fcOqj.mjs → better-auth.Dsq5BCiY.mjs} +1 -1
- package/dist/shared/{better-auth.zT5ITlsx.d.mts → better-auth.Gu1qAjVj.d.mts} +50 -31
- package/dist/shared/{better-auth.s0y6HeiD.mjs → better-auth.X9kq8Nfb.mjs} +4 -2
- package/dist/shared/{better-auth.Bj3CUu_E.cjs → better-auth.demy6Fla.cjs} +1 -1
- package/dist/shared/{better-auth.H3EFatEh.mjs → better-auth.g33XFa_C.mjs} +44 -12
- package/dist/shared/{better-auth.hTYig3sA.cjs → better-auth.spSlDaxD.cjs} +1 -1
- package/dist/shared/{better-auth.CrJtYW24.d.cts → better-auth.yovXNUaS.d.cts} +3 -1
- package/dist/social-providers/index.cjs +1 -1
- 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 +1 -1
- package/dist/test-utils/index.cjs +10 -10
- package/dist/test-utils/index.d.cts +47 -47
- package/dist/test-utils/index.d.mts +47 -47
- package/dist/test-utils/index.d.ts +47 -47
- package/dist/test-utils/index.mjs +10 -10
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/shared/better-auth.CBmWHa8f.mjs +0 -70
- package/dist/shared/better-auth.Xzr0Utyk.cjs +0 -87
|
@@ -2,7 +2,7 @@
|
|
|
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.
|
|
5
|
+
const index = require('../../shared/better-auth.CyoHIFUH.cjs');
|
|
6
6
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
7
7
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -248,7 +248,7 @@ const drizzleAdapter = (db, config) => {
|
|
|
248
248
|
adapterName: "Drizzle Adapter",
|
|
249
249
|
usePlural: config.usePlural ?? false,
|
|
250
250
|
debugLogs: config.debugLogs ?? false,
|
|
251
|
-
transaction: config.transaction ??
|
|
251
|
+
transaction: config.transaction ?? false ? (cb) => db.transaction((tx) => {
|
|
252
252
|
const adapter2 = index.createAdapterFactory({
|
|
253
253
|
config: adapterOptions.config,
|
|
254
254
|
adapter: createCustomAdapter(tx)
|
|
@@ -1,9 +1,9 @@
|
|
|
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.B1kKIM0o.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.7zTmTxT4.cjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.Gu1qAjVj.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BHPr8J54.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.Brg-UO7k.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.C6qXK08w.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,6 +1,6 @@
|
|
|
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.
|
|
3
|
+
import { c as createAdapterFactory } from '../../shared/better-auth.X9kq8Nfb.mjs';
|
|
4
4
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
5
5
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -246,7 +246,7 @@ const drizzleAdapter = (db, config) => {
|
|
|
246
246
|
adapterName: "Drizzle Adapter",
|
|
247
247
|
usePlural: config.usePlural ?? false,
|
|
248
248
|
debugLogs: config.debugLogs ?? false,
|
|
249
|
-
transaction: config.transaction ??
|
|
249
|
+
transaction: config.transaction ?? false ? (cb) => db.transaction((tx) => {
|
|
250
250
|
const adapter2 = createAdapterFactory({
|
|
251
251
|
config: adapterOptions.config,
|
|
252
252
|
adapter: createCustomAdapter(tx)
|
package/dist/adapters/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('../shared/better-auth.
|
|
3
|
+
const index = require('../shared/better-auth.CyoHIFUH.cjs');
|
|
4
4
|
require('../shared/better-auth.DgMx7bVs.cjs');
|
|
5
5
|
require('../shared/better-auth.DTvRBuq4.cjs');
|
|
6
6
|
require('../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.B1kKIM0o.cjs';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.B1kKIM0o.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import '../shared/better-auth.
|
|
7
|
+
import '../shared/better-auth.7zTmTxT4.cjs';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.Gu1qAjVj.mjs';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.Gu1qAjVj.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import '../shared/better-auth.
|
|
7
|
+
import '../shared/better-auth.BHPr8J54.mjs';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.Brg-UO7k.js';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.Brg-UO7k.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import '../shared/better-auth.
|
|
7
|
+
import '../shared/better-auth.C6qXK08w.js';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
package/dist/adapters/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createAdapterFactory } from '../shared/better-auth.
|
|
1
|
+
import { c as createAdapterFactory } from '../shared/better-auth.X9kq8Nfb.mjs';
|
|
2
2
|
import '../shared/better-auth.CvNZNAOW.mjs';
|
|
3
3
|
import '../shared/better-auth.C4g12FAA.mjs';
|
|
4
4
|
import '../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const kyselyAdapter = require('../../shared/better-auth.
|
|
3
|
+
const kyselyAdapter = require('../../shared/better-auth.DXGtScCP.cjs');
|
|
4
4
|
require('kysely');
|
|
5
|
-
require('../../shared/better-auth.
|
|
5
|
+
require('../../shared/better-auth.CyoHIFUH.cjs');
|
|
6
6
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
7
7
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -1,9 +1,9 @@
|
|
|
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.B1kKIM0o.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.7zTmTxT4.cjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -11,8 +11,13 @@ import 'node:sqlite';
|
|
|
11
11
|
|
|
12
12
|
declare function getKyselyDatabaseType(db: BetterAuthOptions["database"]): KyselyDatabaseType | null;
|
|
13
13
|
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
14
|
+
kysely: Kysely<any>;
|
|
15
|
+
databaseType: KyselyDatabaseType;
|
|
16
|
+
transaction: boolean | undefined;
|
|
17
|
+
} | {
|
|
14
18
|
kysely: Kysely<any> | null;
|
|
15
19
|
databaseType: KyselyDatabaseType | null;
|
|
20
|
+
transaction: undefined;
|
|
16
21
|
}>;
|
|
17
22
|
|
|
18
23
|
interface KyselyAdapterConfig {
|
|
@@ -1,9 +1,9 @@
|
|
|
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.Gu1qAjVj.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BHPr8J54.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -11,8 +11,13 @@ import 'node:sqlite';
|
|
|
11
11
|
|
|
12
12
|
declare function getKyselyDatabaseType(db: BetterAuthOptions["database"]): KyselyDatabaseType | null;
|
|
13
13
|
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
14
|
+
kysely: Kysely<any>;
|
|
15
|
+
databaseType: KyselyDatabaseType;
|
|
16
|
+
transaction: boolean | undefined;
|
|
17
|
+
} | {
|
|
14
18
|
kysely: Kysely<any> | null;
|
|
15
19
|
databaseType: KyselyDatabaseType | null;
|
|
20
|
+
transaction: undefined;
|
|
16
21
|
}>;
|
|
17
22
|
|
|
18
23
|
interface KyselyAdapterConfig {
|
|
@@ -1,9 +1,9 @@
|
|
|
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.Brg-UO7k.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.C6qXK08w.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -11,8 +11,13 @@ import 'node:sqlite';
|
|
|
11
11
|
|
|
12
12
|
declare function getKyselyDatabaseType(db: BetterAuthOptions["database"]): KyselyDatabaseType | null;
|
|
13
13
|
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
14
|
+
kysely: Kysely<any>;
|
|
15
|
+
databaseType: KyselyDatabaseType;
|
|
16
|
+
transaction: boolean | undefined;
|
|
17
|
+
} | {
|
|
14
18
|
kysely: Kysely<any> | null;
|
|
15
19
|
databaseType: KyselyDatabaseType | null;
|
|
20
|
+
transaction: undefined;
|
|
16
21
|
}>;
|
|
17
22
|
|
|
18
23
|
interface KyselyAdapterConfig {
|
|
@@ -1,6 +1,6 @@
|
|
|
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.Ddv1-cj-.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
|
-
import '../../shared/better-auth.
|
|
3
|
+
import '../../shared/better-auth.X9kq8Nfb.mjs';
|
|
4
4
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
5
5
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const memoryAdapter = require('../../shared/better-auth.
|
|
3
|
+
const memoryAdapter = require('../../shared/better-auth.Bhva6lEh.cjs');
|
|
4
4
|
require('@better-auth/utils/random');
|
|
5
5
|
require('zod');
|
|
6
6
|
require('better-call');
|
|
@@ -15,7 +15,7 @@ require('@noble/hashes/utils.js');
|
|
|
15
15
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
16
16
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
17
17
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
18
|
-
require('../../shared/better-auth.
|
|
18
|
+
require('../../shared/better-auth.CyoHIFUH.cjs');
|
|
19
19
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
20
20
|
require('../../shared/better-auth.DF_1VOmo.cjs');
|
|
21
21
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
@@ -1,9 +1,9 @@
|
|
|
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.B1kKIM0o.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.7zTmTxT4.cjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.Gu1qAjVj.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BHPr8J54.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.Brg-UO7k.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.C6qXK08w.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as memoryAdapter } from '../../shared/better-auth.
|
|
1
|
+
export { m as memoryAdapter } from '../../shared/better-auth.C1AWk7z7.mjs';
|
|
2
2
|
import '@better-auth/utils/random';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
@@ -13,7 +13,7 @@ import '@noble/hashes/utils.js';
|
|
|
13
13
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
14
14
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
15
15
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
16
|
-
import '../../shared/better-auth.
|
|
16
|
+
import '../../shared/better-auth.X9kq8Nfb.mjs';
|
|
17
17
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
18
18
|
import '../../shared/better-auth.Cjw1GDsh.mjs';
|
|
19
19
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const mongodbAdapter = require('../../shared/better-auth.
|
|
3
|
+
const mongodbAdapter = require('../../shared/better-auth.CcIu4pGY.cjs');
|
|
4
4
|
require('mongodb');
|
|
5
|
-
require('../../shared/better-auth.
|
|
5
|
+
require('../../shared/better-auth.CyoHIFUH.cjs');
|
|
6
6
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
7
7
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
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.B1kKIM0o.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.7zTmTxT4.cjs';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
@@ -1,10 +1,10 @@
|
|
|
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.Gu1qAjVj.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.BHPr8J54.mjs';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
@@ -1,10 +1,10 @@
|
|
|
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.Brg-UO7k.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.C6qXK08w.js';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { m as mongodbAdapter } from '../../shared/better-auth.
|
|
1
|
+
export { m as mongodbAdapter } from '../../shared/better-auth.DceWxI_m.mjs';
|
|
2
2
|
import 'mongodb';
|
|
3
|
-
import '../../shared/better-auth.
|
|
3
|
+
import '../../shared/better-auth.X9kq8Nfb.mjs';
|
|
4
4
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
5
5
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index$1 = require('../../shared/better-auth.ANpbi45u.cjs');
|
|
4
|
-
const index = require('../../shared/better-auth.
|
|
4
|
+
const index = require('../../shared/better-auth.CyoHIFUH.cjs');
|
|
5
5
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
6
6
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
7
7
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -180,7 +180,7 @@ const prismaAdapter = (prisma, config) => {
|
|
|
180
180
|
adapterName: "Prisma Adapter",
|
|
181
181
|
usePlural: config.usePlural ?? false,
|
|
182
182
|
debugLogs: config.debugLogs ?? false,
|
|
183
|
-
transaction: config.transaction ??
|
|
183
|
+
transaction: config.transaction ?? false ? (cb) => prisma.$transaction((tx) => {
|
|
184
184
|
const adapter2 = index.createAdapterFactory({
|
|
185
185
|
config: adapterOptions.config,
|
|
186
186
|
adapter: createCustomAdapter(tx)
|
|
@@ -1,9 +1,9 @@
|
|
|
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.B1kKIM0o.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.7zTmTxT4.cjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.Gu1qAjVj.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BHPr8J54.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.Brg-UO7k.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.C6qXK08w.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BetterAuthError } from '../../shared/better-auth.DdzSJf-n.mjs';
|
|
2
|
-
import { c as createAdapterFactory } from '../../shared/better-auth.
|
|
2
|
+
import { c as createAdapterFactory } from '../../shared/better-auth.X9kq8Nfb.mjs';
|
|
3
3
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
4
4
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
5
5
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -178,7 +178,7 @@ const prismaAdapter = (prisma, config) => {
|
|
|
178
178
|
adapterName: "Prisma Adapter",
|
|
179
179
|
usePlural: config.usePlural ?? false,
|
|
180
180
|
debugLogs: config.debugLogs ?? false,
|
|
181
|
-
transaction: config.transaction ??
|
|
181
|
+
transaction: config.transaction ?? false ? (cb) => prisma.$transaction((tx) => {
|
|
182
182
|
const adapter2 = createAdapterFactory({
|
|
183
183
|
config: adapterOptions.config,
|
|
184
184
|
adapter: createCustomAdapter(tx)
|
package/dist/adapters/test.cjs
CHANGED
|
@@ -770,12 +770,20 @@ async function adapterTest({ getAdapter, disableTests: disabledTests, testPrefix
|
|
|
770
770
|
);
|
|
771
771
|
vitest.test.skipIf(disabledTests?.SHOULD_ROLLBACK_FAILING_TRANSACTION)(
|
|
772
772
|
`${testPrefix ? `${testPrefix} - ` : ""}${adapterTests.SHOULD_ROLLBACK_FAILING_TRANSACTION}`,
|
|
773
|
-
async ({ onTestFailed }) => {
|
|
773
|
+
async ({ onTestFailed, skip }) => {
|
|
774
774
|
await resetDebugLogs();
|
|
775
775
|
onTestFailed(async () => {
|
|
776
776
|
await printDebugLogs();
|
|
777
777
|
});
|
|
778
778
|
const customAdapter = await adapter();
|
|
779
|
+
const enableTransaction = customAdapter?.options?.adapterConfig.transaction;
|
|
780
|
+
if (!enableTransaction) {
|
|
781
|
+
skip(
|
|
782
|
+
`Skipping test: ${customAdapter?.options?.adapterConfig.adapterName || "Adapter"}
|
|
783
|
+
does not support transactions`
|
|
784
|
+
);
|
|
785
|
+
return;
|
|
786
|
+
}
|
|
779
787
|
const user5 = {
|
|
780
788
|
name: "user5",
|
|
781
789
|
email: getUniqueEmail("user5@email.com"),
|
|
@@ -812,12 +820,20 @@ async function adapterTest({ getAdapter, disableTests: disabledTests, testPrefix
|
|
|
812
820
|
);
|
|
813
821
|
vitest.test.skipIf(disabledTests?.SHOULD_RETURN_TRANSACTION_RESULT)(
|
|
814
822
|
`${testPrefix ? `${testPrefix} - ` : ""}${adapterTests.SHOULD_RETURN_TRANSACTION_RESULT}`,
|
|
815
|
-
async ({ onTestFailed }) => {
|
|
823
|
+
async ({ onTestFailed, skip }) => {
|
|
816
824
|
await resetDebugLogs();
|
|
817
825
|
onTestFailed(async () => {
|
|
818
826
|
await printDebugLogs();
|
|
819
827
|
});
|
|
820
828
|
const customAdapter = await adapter();
|
|
829
|
+
const enableTransaction = customAdapter?.options?.adapterConfig.transaction;
|
|
830
|
+
if (!enableTransaction) {
|
|
831
|
+
skip(
|
|
832
|
+
`Skipping test: ${customAdapter?.options?.adapterConfig.adapterName || "Adapter"}
|
|
833
|
+
does not support transactions`
|
|
834
|
+
);
|
|
835
|
+
return;
|
|
836
|
+
}
|
|
821
837
|
const result = await customAdapter.transaction(async (tx) => {
|
|
822
838
|
const createdUser = await tx.create({
|
|
823
839
|
model: "user",
|
package/dist/adapters/test.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.B1kKIM0o.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.7zTmTxT4.cjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
package/dist/adapters/test.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.Gu1qAjVj.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.BHPr8J54.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
package/dist/adapters/test.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.Brg-UO7k.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.C6qXK08w.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
package/dist/adapters/test.mjs
CHANGED
|
@@ -768,12 +768,20 @@ async function adapterTest({ getAdapter, disableTests: disabledTests, testPrefix
|
|
|
768
768
|
);
|
|
769
769
|
test.skipIf(disabledTests?.SHOULD_ROLLBACK_FAILING_TRANSACTION)(
|
|
770
770
|
`${testPrefix ? `${testPrefix} - ` : ""}${adapterTests.SHOULD_ROLLBACK_FAILING_TRANSACTION}`,
|
|
771
|
-
async ({ onTestFailed }) => {
|
|
771
|
+
async ({ onTestFailed, skip }) => {
|
|
772
772
|
await resetDebugLogs();
|
|
773
773
|
onTestFailed(async () => {
|
|
774
774
|
await printDebugLogs();
|
|
775
775
|
});
|
|
776
776
|
const customAdapter = await adapter();
|
|
777
|
+
const enableTransaction = customAdapter?.options?.adapterConfig.transaction;
|
|
778
|
+
if (!enableTransaction) {
|
|
779
|
+
skip(
|
|
780
|
+
`Skipping test: ${customAdapter?.options?.adapterConfig.adapterName || "Adapter"}
|
|
781
|
+
does not support transactions`
|
|
782
|
+
);
|
|
783
|
+
return;
|
|
784
|
+
}
|
|
777
785
|
const user5 = {
|
|
778
786
|
name: "user5",
|
|
779
787
|
email: getUniqueEmail("user5@email.com"),
|
|
@@ -810,12 +818,20 @@ async function adapterTest({ getAdapter, disableTests: disabledTests, testPrefix
|
|
|
810
818
|
);
|
|
811
819
|
test.skipIf(disabledTests?.SHOULD_RETURN_TRANSACTION_RESULT)(
|
|
812
820
|
`${testPrefix ? `${testPrefix} - ` : ""}${adapterTests.SHOULD_RETURN_TRANSACTION_RESULT}`,
|
|
813
|
-
async ({ onTestFailed }) => {
|
|
821
|
+
async ({ onTestFailed, skip }) => {
|
|
814
822
|
await resetDebugLogs();
|
|
815
823
|
onTestFailed(async () => {
|
|
816
824
|
await printDebugLogs();
|
|
817
825
|
});
|
|
818
826
|
const customAdapter = await adapter();
|
|
827
|
+
const enableTransaction = customAdapter?.options?.adapterConfig.transaction;
|
|
828
|
+
if (!enableTransaction) {
|
|
829
|
+
skip(
|
|
830
|
+
`Skipping test: ${customAdapter?.options?.adapterConfig.adapterName || "Adapter"}
|
|
831
|
+
does not support transactions`
|
|
832
|
+
);
|
|
833
|
+
return;
|
|
834
|
+
}
|
|
819
835
|
const result = await customAdapter.transaction(async (tx) => {
|
|
820
836
|
const createdUser = await tx.create({
|
|
821
837
|
model: "user",
|
package/dist/api/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
4
|
+
const socialProviders_index = require('../shared/better-auth.D6pGomIg.cjs');
|
|
5
5
|
const session = require('../shared/better-auth.CAcHGnwq.cjs');
|
|
6
6
|
const z = require('zod');
|
|
7
7
|
const cookies_index = require('../shared/better-auth.CXM9s0dx.cjs');
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.7zTmTxT4.cjs';
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.B1kKIM0o.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.BHPr8J54.mjs';
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.Gu1qAjVj.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.mjs';
|