better-auth 1.3.8-beta.1 → 1.3.8-beta.2
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 +3 -3
- package/dist/adapters/drizzle-adapter/index.d.cts +3 -3
- package/dist/adapters/drizzle-adapter/index.d.mts +3 -3
- package/dist/adapters/drizzle-adapter/index.d.ts +3 -3
- package/dist/adapters/drizzle-adapter/index.mjs +3 -3
- package/dist/adapters/index.cjs +3 -3
- package/dist/adapters/index.d.cts +4 -4
- package/dist/adapters/index.d.mts +4 -4
- package/dist/adapters/index.d.ts +4 -4
- package/dist/adapters/index.mjs +3 -3
- package/dist/adapters/kysely-adapter/index.cjs +4 -4
- package/dist/adapters/kysely-adapter/index.d.cts +3 -3
- package/dist/adapters/kysely-adapter/index.d.mts +3 -3
- package/dist/adapters/kysely-adapter/index.d.ts +3 -3
- package/dist/adapters/kysely-adapter/index.mjs +4 -4
- package/dist/adapters/memory-adapter/index.cjs +4 -4
- package/dist/adapters/memory-adapter/index.d.cts +3 -3
- package/dist/adapters/memory-adapter/index.d.mts +3 -3
- package/dist/adapters/memory-adapter/index.d.ts +3 -3
- package/dist/adapters/memory-adapter/index.mjs +4 -4
- package/dist/adapters/mongodb-adapter/index.cjs +4 -4
- package/dist/adapters/mongodb-adapter/index.d.cts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.mts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.ts +3 -3
- package/dist/adapters/mongodb-adapter/index.mjs +4 -4
- package/dist/adapters/prisma-adapter/index.cjs +3 -3
- package/dist/adapters/prisma-adapter/index.d.cts +3 -3
- package/dist/adapters/prisma-adapter/index.d.mts +3 -3
- package/dist/adapters/prisma-adapter/index.d.ts +3 -3
- package/dist/adapters/prisma-adapter/index.mjs +3 -3
- package/dist/adapters/test.cjs +1 -1
- package/dist/adapters/test.d.cts +3 -3
- package/dist/adapters/test.d.mts +3 -3
- package/dist/adapters/test.d.ts +3 -3
- package/dist/adapters/test.mjs +1 -1
- package/dist/api/index.cjs +4 -4
- package/dist/api/index.d.cts +3 -3
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.mjs +5 -5
- package/dist/chunks/node-sqlite-dialect.cjs +171 -0
- package/dist/chunks/node-sqlite-dialect.mjs +165 -0
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +5 -5
- package/dist/client/index.d.mts +5 -5
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.mjs +2 -2
- package/dist/client/plugins/index.d.cts +5 -5
- package/dist/client/plugins/index.d.mts +5 -5
- package/dist/client/plugins/index.d.ts +5 -5
- package/dist/client/react/index.cjs +1 -1
- package/dist/client/react/index.d.cts +4 -4
- package/dist/client/react/index.d.mts +4 -4
- package/dist/client/react/index.d.ts +4 -4
- package/dist/client/react/index.mjs +1 -1
- package/dist/client/solid/index.cjs +1 -1
- package/dist/client/solid/index.d.cts +10 -10
- package/dist/client/solid/index.d.mts +10 -10
- package/dist/client/solid/index.d.ts +10 -10
- package/dist/client/solid/index.mjs +1 -1
- package/dist/client/svelte/index.cjs +1 -1
- package/dist/client/svelte/index.d.cts +4 -4
- package/dist/client/svelte/index.d.mts +4 -4
- package/dist/client/svelte/index.d.ts +4 -4
- package/dist/client/svelte/index.mjs +1 -1
- package/dist/client/vue/index.cjs +1 -1
- package/dist/client/vue/index.d.cts +13 -13
- package/dist/client/vue/index.d.mts +13 -13
- package/dist/client/vue/index.d.ts +13 -13
- package/dist/client/vue/index.mjs +1 -1
- package/dist/cookies/index.cjs +20 -430
- package/dist/cookies/index.d.cts +3 -3
- package/dist/cookies/index.d.mts +3 -3
- package/dist/cookies/index.d.ts +3 -3
- package/dist/cookies/index.mjs +10 -424
- package/dist/db/index.cjs +6 -6
- package/dist/db/index.d.cts +4 -4
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.d.ts +4 -4
- package/dist/db/index.mjs +6 -6
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +7 -7
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +9 -9
- package/dist/integrations/next-js.cjs +5 -5
- package/dist/integrations/next-js.d.cts +3 -3
- package/dist/integrations/next-js.d.mts +3 -3
- package/dist/integrations/next-js.d.ts +3 -3
- package/dist/integrations/next-js.mjs +5 -5
- package/dist/integrations/node.d.cts +3 -3
- package/dist/integrations/node.d.mts +3 -3
- package/dist/integrations/node.d.ts +3 -3
- package/dist/integrations/react-start.cjs +5 -5
- package/dist/integrations/react-start.d.cts +3 -3
- package/dist/integrations/react-start.d.mts +3 -3
- package/dist/integrations/react-start.d.ts +3 -3
- package/dist/integrations/react-start.mjs +5 -5
- package/dist/integrations/svelte-kit.cjs +4 -4
- package/dist/integrations/svelte-kit.d.cts +3 -3
- package/dist/integrations/svelte-kit.d.mts +3 -3
- package/dist/integrations/svelte-kit.d.ts +3 -3
- package/dist/integrations/svelte-kit.mjs +4 -4
- package/dist/oauth2/index.cjs +4 -4
- package/dist/oauth2/index.d.cts +5 -5
- package/dist/oauth2/index.d.mts +5 -5
- package/dist/oauth2/index.d.ts +5 -5
- package/dist/oauth2/index.mjs +4 -4
- package/dist/plugins/access/index.d.cts +1 -1
- package/dist/plugins/access/index.d.mts +1 -1
- package/dist/plugins/access/index.d.ts +1 -1
- package/dist/plugins/admin/access/index.d.cts +1 -1
- package/dist/plugins/admin/access/index.d.mts +1 -1
- package/dist/plugins/admin/access/index.d.ts +1 -1
- package/dist/plugins/admin/index.cjs +5 -5
- package/dist/plugins/admin/index.d.cts +3 -3
- package/dist/plugins/admin/index.d.mts +3 -3
- package/dist/plugins/admin/index.d.ts +3 -3
- package/dist/plugins/admin/index.mjs +5 -5
- package/dist/plugins/anonymous/index.cjs +4 -4
- package/dist/plugins/anonymous/index.d.cts +3 -3
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.d.ts +3 -3
- package/dist/plugins/anonymous/index.mjs +4 -4
- package/dist/plugins/bearer/index.cjs +4 -4
- package/dist/plugins/bearer/index.d.cts +3 -3
- package/dist/plugins/bearer/index.d.mts +3 -3
- package/dist/plugins/bearer/index.d.ts +3 -3
- package/dist/plugins/bearer/index.mjs +4 -4
- package/dist/plugins/captcha/index.d.cts +3 -3
- package/dist/plugins/captcha/index.d.mts +3 -3
- package/dist/plugins/captcha/index.d.ts +3 -3
- package/dist/plugins/custom-session/index.cjs +4 -4
- package/dist/plugins/custom-session/index.d.cts +3 -3
- package/dist/plugins/custom-session/index.d.mts +3 -3
- package/dist/plugins/custom-session/index.d.ts +3 -3
- package/dist/plugins/custom-session/index.mjs +4 -4
- package/dist/plugins/email-otp/index.cjs +4 -4
- 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 +4 -4
- package/dist/plugins/generic-oauth/index.cjs +35 -21
- package/dist/plugins/generic-oauth/index.d.cts +5 -19
- package/dist/plugins/generic-oauth/index.d.mts +5 -19
- package/dist/plugins/generic-oauth/index.d.ts +5 -19
- package/dist/plugins/generic-oauth/index.mjs +35 -21
- package/dist/plugins/haveibeenpwned/index.cjs +4 -4
- package/dist/plugins/haveibeenpwned/index.d.cts +3 -3
- package/dist/plugins/haveibeenpwned/index.d.mts +3 -3
- package/dist/plugins/haveibeenpwned/index.d.ts +3 -3
- package/dist/plugins/haveibeenpwned/index.mjs +4 -4
- package/dist/plugins/index.cjs +9 -9
- package/dist/plugins/index.d.cts +5 -5
- package/dist/plugins/index.d.mts +5 -5
- package/dist/plugins/index.d.ts +5 -5
- package/dist/plugins/index.mjs +11 -11
- package/dist/plugins/jwt/index.cjs +52 -12
- package/dist/plugins/jwt/index.d.cts +14 -3
- package/dist/plugins/jwt/index.d.mts +14 -3
- package/dist/plugins/jwt/index.d.ts +14 -3
- package/dist/plugins/jwt/index.mjs +52 -12
- package/dist/plugins/magic-link/index.cjs +4 -4
- package/dist/plugins/magic-link/index.mjs +4 -4
- package/dist/plugins/multi-session/index.cjs +4 -4
- package/dist/plugins/multi-session/index.d.cts +3 -3
- package/dist/plugins/multi-session/index.d.mts +3 -3
- package/dist/plugins/multi-session/index.d.ts +3 -3
- package/dist/plugins/multi-session/index.mjs +4 -4
- package/dist/plugins/oauth-proxy/index.cjs +4 -4
- package/dist/plugins/oauth-proxy/index.d.cts +3 -3
- package/dist/plugins/oauth-proxy/index.d.mts +3 -3
- package/dist/plugins/oauth-proxy/index.d.ts +3 -3
- package/dist/plugins/oauth-proxy/index.mjs +4 -4
- package/dist/plugins/oidc-provider/index.cjs +5 -5
- package/dist/plugins/oidc-provider/index.d.cts +3 -3
- package/dist/plugins/oidc-provider/index.d.mts +3 -3
- package/dist/plugins/oidc-provider/index.d.ts +3 -3
- package/dist/plugins/oidc-provider/index.mjs +5 -5
- package/dist/plugins/one-tap/index.cjs +4 -4
- package/dist/plugins/one-tap/index.mjs +4 -4
- package/dist/plugins/one-time-token/index.cjs +6 -6
- package/dist/plugins/one-time-token/index.d.cts +3 -3
- package/dist/plugins/one-time-token/index.d.mts +3 -3
- package/dist/plugins/one-time-token/index.d.ts +3 -3
- package/dist/plugins/one-time-token/index.mjs +6 -6
- package/dist/plugins/open-api/index.cjs +4 -4
- package/dist/plugins/open-api/index.d.cts +3 -3
- package/dist/plugins/open-api/index.d.mts +3 -3
- package/dist/plugins/open-api/index.d.ts +3 -3
- package/dist/plugins/open-api/index.mjs +4 -4
- package/dist/plugins/organization/access/index.d.cts +1 -1
- package/dist/plugins/organization/access/index.d.mts +1 -1
- package/dist/plugins/organization/access/index.d.ts +1 -1
- package/dist/plugins/organization/index.cjs +6 -6
- package/dist/plugins/organization/index.d.cts +3 -3
- package/dist/plugins/organization/index.d.mts +3 -3
- package/dist/plugins/organization/index.d.ts +3 -3
- package/dist/plugins/organization/index.mjs +6 -6
- package/dist/plugins/passkey/index.cjs +4 -4
- package/dist/plugins/passkey/index.d.cts +3 -3
- package/dist/plugins/passkey/index.d.mts +3 -3
- package/dist/plugins/passkey/index.d.ts +3 -3
- package/dist/plugins/passkey/index.mjs +4 -4
- package/dist/plugins/phone-number/index.cjs +4 -4
- package/dist/plugins/phone-number/index.d.cts +3 -3
- package/dist/plugins/phone-number/index.d.mts +3 -3
- package/dist/plugins/phone-number/index.d.ts +3 -3
- package/dist/plugins/phone-number/index.mjs +4 -4
- package/dist/plugins/siwe/index.cjs +4 -4
- package/dist/plugins/siwe/index.mjs +4 -4
- package/dist/plugins/sso/index.cjs +4 -4
- package/dist/plugins/sso/index.d.cts +3 -3
- package/dist/plugins/sso/index.d.mts +3 -3
- package/dist/plugins/sso/index.d.ts +3 -3
- package/dist/plugins/sso/index.mjs +4 -4
- package/dist/plugins/two-factor/index.cjs +4 -4
- package/dist/plugins/two-factor/index.d.cts +3 -3
- package/dist/plugins/two-factor/index.d.mts +3 -3
- package/dist/plugins/two-factor/index.d.ts +3 -3
- package/dist/plugins/two-factor/index.mjs +4 -4
- package/dist/plugins/username/index.cjs +4 -4
- package/dist/plugins/username/index.d.cts +3 -3
- package/dist/plugins/username/index.d.mts +3 -3
- package/dist/plugins/username/index.d.ts +3 -3
- package/dist/plugins/username/index.mjs +4 -4
- package/dist/shared/{better-auth.6hiPn8Kd.d.mts → better-auth.0DssezSG.d.mts} +1 -1
- package/dist/shared/{better-auth.GpOOav9x.cjs → better-auth.B3274wGK.cjs} +7 -1
- package/dist/shared/{better-auth.D85s0t2j.d.mts → better-auth.BEuRSDgj.d.cts} +1 -1
- package/dist/shared/{better-auth.BDEfedYa.d.mts → better-auth.BLnYm5c_.d.ts} +4 -4
- package/dist/shared/{better-auth.DrzbcRgZ.cjs → better-auth.BNLoFqpd.cjs} +4 -4
- package/dist/shared/{better-auth.BCerfnoo.cjs → better-auth.BNhZazTR.cjs} +20 -1
- package/dist/shared/{better-auth.DIfzDoPN.mjs → better-auth.BQNzC8cU.mjs} +1 -1
- package/dist/shared/{better-auth.gABN3TsS.mjs → better-auth.BSGkasIG.mjs} +2 -2
- package/dist/shared/{better-auth.Co0UDY4N.cjs → better-auth.BTwQqqkl.cjs} +8 -97
- package/dist/shared/{better-auth.PgM8qMHr.mjs → better-auth.BZZKN1g7.mjs} +1 -1
- package/dist/shared/{better-auth.BtemoGGn.mjs → better-auth.B_3Nie7C.mjs} +2 -2
- package/dist/shared/{better-auth.CCCUvENJ.cjs → better-auth.BblrvPZ3.cjs} +1 -1
- package/dist/shared/{better-auth.C_0BlDB0.d.ts → better-auth.Bbp8urLR.d.ts} +1 -1
- package/dist/shared/{better-auth.DrQaSEU_.mjs → better-auth.BhKgzJmk.mjs} +20 -27
- package/dist/shared/{better-auth.DH3YjMQH.mjs → better-auth.BjBlybv-.mjs} +7 -1
- package/dist/shared/{better-auth.WTr4EDT7.cjs → better-auth.BmcCZHit.cjs} +3 -3
- package/dist/shared/{better-auth.Bf5MnLaK.d.cts → better-auth.BoEiBLMv.d.mts} +4 -4
- package/dist/shared/{better-auth.CLfudv58.d.ts → better-auth.C1wrCC3K.d.ts} +1 -1
- package/dist/shared/{better-auth.CVQe8izV.mjs → better-auth.CGGao4aY.mjs} +7 -0
- package/dist/shared/{better-auth.CFtZttAn.cjs → better-auth.CL4S7WA5.cjs} +2 -2
- package/dist/shared/{better-auth.Bgs2SPcK.cjs → better-auth.CMnvkNNK.cjs} +2 -2
- package/dist/shared/{better-auth.DX362szo.mjs → better-auth.CPXAkOat.mjs} +3 -3
- package/dist/shared/{better-auth.PFi3XfiT.mjs → better-auth.CRzkA7S1.mjs} +2 -2
- package/dist/shared/{better-auth.Db2g2HxM.cjs → better-auth.CmdI9lHT.cjs} +1 -1
- package/dist/shared/{better-auth.CVYnNkfw.cjs → better-auth.CtToz4qL.cjs} +7 -0
- package/dist/shared/{better-auth.X6YzBCDT.d.cts → better-auth.D6DP-h2z.d.cts} +1 -1
- package/dist/shared/{better-auth.p1GhhfhV.mjs → better-auth.D6HvWMYN.mjs} +30 -30
- package/dist/shared/{better-auth.0SyTY9U9.d.ts → better-auth.D8SN-Ifb.d.cts} +13 -65
- package/dist/shared/{better-auth.HYhkNVyD.mjs → better-auth.D96SwENp.mjs} +20 -1
- package/dist/shared/{better-auth.CRyLLXtn.cjs → better-auth.D9mpJtxP.cjs} +16 -7
- package/dist/shared/better-auth.DF-MUmVw.mjs +479 -0
- package/dist/shared/{better-auth.CkqBZvXM.d.cts → better-auth.DON7H68e.d.cts} +11 -10
- package/dist/shared/{better-auth.BS4wi0R-.d.mts → better-auth.DOVAUUJb.d.ts} +13 -65
- package/dist/shared/{better-auth.BDR52Rf2.d.cts → better-auth.DTtXpZYr.d.cts} +2 -1
- package/dist/shared/{better-auth.BDR52Rf2.d.mts → better-auth.DTtXpZYr.d.mts} +2 -1
- package/dist/shared/{better-auth.BDR52Rf2.d.ts → better-auth.DTtXpZYr.d.ts} +2 -1
- package/dist/shared/{better-auth.BDBtglk1.mjs → better-auth.DVsI0DHa.mjs} +1 -1
- package/dist/shared/{better-auth.CkEkCniR.d.cts → better-auth.DY7-SHcY.d.mts} +13 -65
- package/dist/shared/{better-auth.DnUZno9_.d.ts → better-auth.DdgudOLF.d.mts} +11 -10
- package/dist/shared/{better-auth.MrJBhiF6.mjs → better-auth.Dqe7GuxR.mjs} +4 -4
- package/dist/shared/{better-auth.BbDyeJdW.cjs → better-auth.DrnlgZUj.cjs} +2 -2
- package/dist/shared/{better-auth.DMus0Wrm.mjs → better-auth.DtI97B2O.mjs} +16 -7
- package/dist/shared/{better-auth.DiE4yQHn.mjs → better-auth.Dy-odIpc.mjs} +4 -4
- package/dist/shared/{better-auth.CwsxfHfN.mjs → better-auth.FCKp3SAZ.mjs} +8 -97
- package/dist/shared/{better-auth.YmpB7UaD.d.cts → better-auth.aOvydSnW.d.mts} +1 -1
- package/dist/shared/{better-auth.NCWQv_ti.cjs → better-auth.eWF1oF7J.cjs} +20 -27
- package/dist/shared/{better-auth.D4eTSyUO.cjs → better-auth.jLMDNZxH.cjs} +30 -30
- package/dist/shared/better-auth.l2-e84v_.cjs +491 -0
- package/dist/shared/{better-auth.Je5iPAGQ.d.mts → better-auth.lvQ7SGjm.d.ts} +11 -10
- package/dist/shared/{better-auth.DrKKZc3v.cjs → better-auth.spuYC23a.cjs} +4 -4
- package/dist/shared/{better-auth.DbrEw0kN.cjs → better-auth.vPQBmXQL.cjs} +1 -1
- package/dist/shared/{better-auth._D1fz1Yx.d.ts → better-auth.w-yWDZbA.d.cts} +4 -4
- package/dist/social-providers/index.cjs +4 -4
- package/dist/social-providers/index.d.cts +2 -2
- package/dist/social-providers/index.d.mts +2 -2
- package/dist/social-providers/index.d.ts +2 -2
- package/dist/social-providers/index.mjs +4 -4
- package/dist/test-utils/index.cjs +13 -13
- package/dist/test-utils/index.d.cts +18 -102
- package/dist/test-utils/index.d.mts +18 -102
- package/dist/test-utils/index.d.ts +18 -102
- package/dist/test-utils/index.mjs +13 -13
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/package.json +2 -2
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const kysely = require('kysely');
|
|
4
|
+
|
|
5
|
+
class NodeSqliteAdapter {
|
|
6
|
+
get supportsCreateIfNotExists() {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
get supportsTransactionalDdl() {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
get supportsReturning() {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
async acquireMigrationLock() {
|
|
16
|
+
}
|
|
17
|
+
async releaseMigrationLock() {
|
|
18
|
+
}
|
|
19
|
+
get supportsOutput() {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
class NodeSqliteDriver {
|
|
24
|
+
#config;
|
|
25
|
+
#connectionMutex = new ConnectionMutex();
|
|
26
|
+
#db;
|
|
27
|
+
#connection;
|
|
28
|
+
constructor(config) {
|
|
29
|
+
this.#config = { ...config };
|
|
30
|
+
}
|
|
31
|
+
async init() {
|
|
32
|
+
this.#db = this.#config.database;
|
|
33
|
+
this.#connection = new NodeSqliteConnection(this.#db);
|
|
34
|
+
if (this.#config.onCreateConnection) {
|
|
35
|
+
await this.#config.onCreateConnection(this.#connection);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async acquireConnection() {
|
|
39
|
+
await this.#connectionMutex.lock();
|
|
40
|
+
return this.#connection;
|
|
41
|
+
}
|
|
42
|
+
async beginTransaction(connection) {
|
|
43
|
+
await connection.executeQuery(kysely.CompiledQuery.raw("begin"));
|
|
44
|
+
}
|
|
45
|
+
async commitTransaction(connection) {
|
|
46
|
+
await connection.executeQuery(kysely.CompiledQuery.raw("commit"));
|
|
47
|
+
}
|
|
48
|
+
async rollbackTransaction(connection) {
|
|
49
|
+
await connection.executeQuery(kysely.CompiledQuery.raw("rollback"));
|
|
50
|
+
}
|
|
51
|
+
async releaseConnection() {
|
|
52
|
+
this.#connectionMutex.unlock();
|
|
53
|
+
}
|
|
54
|
+
async destroy() {
|
|
55
|
+
this.#db?.close();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
class NodeSqliteConnection {
|
|
59
|
+
#db;
|
|
60
|
+
constructor(db) {
|
|
61
|
+
this.#db = db;
|
|
62
|
+
}
|
|
63
|
+
executeQuery(compiledQuery) {
|
|
64
|
+
const { sql: sql2, parameters } = compiledQuery;
|
|
65
|
+
const stmt = this.#db.prepare(sql2);
|
|
66
|
+
const rows = stmt.all(...parameters);
|
|
67
|
+
return Promise.resolve({
|
|
68
|
+
rows
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
async *streamQuery() {
|
|
72
|
+
throw new Error("Streaming query is not supported by SQLite driver.");
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
class ConnectionMutex {
|
|
76
|
+
#promise;
|
|
77
|
+
#resolve;
|
|
78
|
+
async lock() {
|
|
79
|
+
while (this.#promise) {
|
|
80
|
+
await this.#promise;
|
|
81
|
+
}
|
|
82
|
+
this.#promise = new Promise((resolve) => {
|
|
83
|
+
this.#resolve = resolve;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
unlock() {
|
|
87
|
+
const resolve = this.#resolve;
|
|
88
|
+
this.#promise = void 0;
|
|
89
|
+
this.#resolve = void 0;
|
|
90
|
+
resolve?.();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
class NodeSqliteIntrospector {
|
|
94
|
+
#db;
|
|
95
|
+
constructor(db) {
|
|
96
|
+
this.#db = db;
|
|
97
|
+
}
|
|
98
|
+
async getSchemas() {
|
|
99
|
+
return [];
|
|
100
|
+
}
|
|
101
|
+
async getTables(options = { withInternalKyselyTables: false }) {
|
|
102
|
+
let query = this.#db.selectFrom("sqlite_schema").where("type", "=", "table").where("name", "not like", "sqlite_%").select("name").$castTo();
|
|
103
|
+
if (!options.withInternalKyselyTables) {
|
|
104
|
+
query = query.where("name", "!=", kysely.DEFAULT_MIGRATION_TABLE).where("name", "!=", kysely.DEFAULT_MIGRATION_LOCK_TABLE);
|
|
105
|
+
}
|
|
106
|
+
const tables = await query.execute();
|
|
107
|
+
return Promise.all(tables.map(({ name }) => this.#getTableMetadata(name)));
|
|
108
|
+
}
|
|
109
|
+
async getMetadata(options) {
|
|
110
|
+
return {
|
|
111
|
+
tables: await this.getTables(options)
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
async #getTableMetadata(table) {
|
|
115
|
+
const db = this.#db;
|
|
116
|
+
const createSql = await db.selectFrom("sqlite_master").where("name", "=", table).select("sql").$castTo().execute();
|
|
117
|
+
const autoIncrementCol = createSql[0]?.sql?.split(/[\(\),]/)?.find((it) => it.toLowerCase().includes("autoincrement"))?.split(/\s+/)?.[0]?.replace(/["`]/g, "");
|
|
118
|
+
const columns = await db.selectFrom(
|
|
119
|
+
kysely.sql`pragma_table_info(${table})`.as("table_info")
|
|
120
|
+
).select(["name", "type", "notnull", "dflt_value"]).execute();
|
|
121
|
+
return {
|
|
122
|
+
name: table,
|
|
123
|
+
columns: columns.map((col) => ({
|
|
124
|
+
name: col.name,
|
|
125
|
+
dataType: col.type,
|
|
126
|
+
isNullable: !col.notnull,
|
|
127
|
+
isAutoIncrementing: col.name === autoIncrementCol,
|
|
128
|
+
hasDefaultValue: col.dflt_value != null
|
|
129
|
+
})),
|
|
130
|
+
isView: true
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
class NodeSqliteQueryCompiler extends kysely.DefaultQueryCompiler {
|
|
135
|
+
getCurrentParameterPlaceholder() {
|
|
136
|
+
return "?";
|
|
137
|
+
}
|
|
138
|
+
getLeftIdentifierWrapper() {
|
|
139
|
+
return '"';
|
|
140
|
+
}
|
|
141
|
+
getRightIdentifierWrapper() {
|
|
142
|
+
return '"';
|
|
143
|
+
}
|
|
144
|
+
getAutoIncrement() {
|
|
145
|
+
return "autoincrement";
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
class NodeSqliteDialect {
|
|
149
|
+
#config;
|
|
150
|
+
constructor(config) {
|
|
151
|
+
this.#config = { ...config };
|
|
152
|
+
}
|
|
153
|
+
createDriver() {
|
|
154
|
+
return new NodeSqliteDriver(this.#config);
|
|
155
|
+
}
|
|
156
|
+
createQueryCompiler() {
|
|
157
|
+
return new NodeSqliteQueryCompiler();
|
|
158
|
+
}
|
|
159
|
+
createAdapter() {
|
|
160
|
+
return new NodeSqliteAdapter();
|
|
161
|
+
}
|
|
162
|
+
createIntrospector(db) {
|
|
163
|
+
return new NodeSqliteIntrospector(db);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
exports.NodeSqliteAdapter = NodeSqliteAdapter;
|
|
168
|
+
exports.NodeSqliteDialect = NodeSqliteDialect;
|
|
169
|
+
exports.NodeSqliteDriver = NodeSqliteDriver;
|
|
170
|
+
exports.NodeSqliteIntrospector = NodeSqliteIntrospector;
|
|
171
|
+
exports.NodeSqliteQueryCompiler = NodeSqliteQueryCompiler;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { CompiledQuery, DefaultQueryCompiler, DEFAULT_MIGRATION_TABLE, DEFAULT_MIGRATION_LOCK_TABLE, sql } from 'kysely';
|
|
2
|
+
|
|
3
|
+
class NodeSqliteAdapter {
|
|
4
|
+
get supportsCreateIfNotExists() {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
get supportsTransactionalDdl() {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
get supportsReturning() {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
async acquireMigrationLock() {
|
|
14
|
+
}
|
|
15
|
+
async releaseMigrationLock() {
|
|
16
|
+
}
|
|
17
|
+
get supportsOutput() {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
class NodeSqliteDriver {
|
|
22
|
+
#config;
|
|
23
|
+
#connectionMutex = new ConnectionMutex();
|
|
24
|
+
#db;
|
|
25
|
+
#connection;
|
|
26
|
+
constructor(config) {
|
|
27
|
+
this.#config = { ...config };
|
|
28
|
+
}
|
|
29
|
+
async init() {
|
|
30
|
+
this.#db = this.#config.database;
|
|
31
|
+
this.#connection = new NodeSqliteConnection(this.#db);
|
|
32
|
+
if (this.#config.onCreateConnection) {
|
|
33
|
+
await this.#config.onCreateConnection(this.#connection);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async acquireConnection() {
|
|
37
|
+
await this.#connectionMutex.lock();
|
|
38
|
+
return this.#connection;
|
|
39
|
+
}
|
|
40
|
+
async beginTransaction(connection) {
|
|
41
|
+
await connection.executeQuery(CompiledQuery.raw("begin"));
|
|
42
|
+
}
|
|
43
|
+
async commitTransaction(connection) {
|
|
44
|
+
await connection.executeQuery(CompiledQuery.raw("commit"));
|
|
45
|
+
}
|
|
46
|
+
async rollbackTransaction(connection) {
|
|
47
|
+
await connection.executeQuery(CompiledQuery.raw("rollback"));
|
|
48
|
+
}
|
|
49
|
+
async releaseConnection() {
|
|
50
|
+
this.#connectionMutex.unlock();
|
|
51
|
+
}
|
|
52
|
+
async destroy() {
|
|
53
|
+
this.#db?.close();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
class NodeSqliteConnection {
|
|
57
|
+
#db;
|
|
58
|
+
constructor(db) {
|
|
59
|
+
this.#db = db;
|
|
60
|
+
}
|
|
61
|
+
executeQuery(compiledQuery) {
|
|
62
|
+
const { sql: sql2, parameters } = compiledQuery;
|
|
63
|
+
const stmt = this.#db.prepare(sql2);
|
|
64
|
+
const rows = stmt.all(...parameters);
|
|
65
|
+
return Promise.resolve({
|
|
66
|
+
rows
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
async *streamQuery() {
|
|
70
|
+
throw new Error("Streaming query is not supported by SQLite driver.");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
class ConnectionMutex {
|
|
74
|
+
#promise;
|
|
75
|
+
#resolve;
|
|
76
|
+
async lock() {
|
|
77
|
+
while (this.#promise) {
|
|
78
|
+
await this.#promise;
|
|
79
|
+
}
|
|
80
|
+
this.#promise = new Promise((resolve) => {
|
|
81
|
+
this.#resolve = resolve;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
unlock() {
|
|
85
|
+
const resolve = this.#resolve;
|
|
86
|
+
this.#promise = void 0;
|
|
87
|
+
this.#resolve = void 0;
|
|
88
|
+
resolve?.();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
class NodeSqliteIntrospector {
|
|
92
|
+
#db;
|
|
93
|
+
constructor(db) {
|
|
94
|
+
this.#db = db;
|
|
95
|
+
}
|
|
96
|
+
async getSchemas() {
|
|
97
|
+
return [];
|
|
98
|
+
}
|
|
99
|
+
async getTables(options = { withInternalKyselyTables: false }) {
|
|
100
|
+
let query = this.#db.selectFrom("sqlite_schema").where("type", "=", "table").where("name", "not like", "sqlite_%").select("name").$castTo();
|
|
101
|
+
if (!options.withInternalKyselyTables) {
|
|
102
|
+
query = query.where("name", "!=", DEFAULT_MIGRATION_TABLE).where("name", "!=", DEFAULT_MIGRATION_LOCK_TABLE);
|
|
103
|
+
}
|
|
104
|
+
const tables = await query.execute();
|
|
105
|
+
return Promise.all(tables.map(({ name }) => this.#getTableMetadata(name)));
|
|
106
|
+
}
|
|
107
|
+
async getMetadata(options) {
|
|
108
|
+
return {
|
|
109
|
+
tables: await this.getTables(options)
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
async #getTableMetadata(table) {
|
|
113
|
+
const db = this.#db;
|
|
114
|
+
const createSql = await db.selectFrom("sqlite_master").where("name", "=", table).select("sql").$castTo().execute();
|
|
115
|
+
const autoIncrementCol = createSql[0]?.sql?.split(/[\(\),]/)?.find((it) => it.toLowerCase().includes("autoincrement"))?.split(/\s+/)?.[0]?.replace(/["`]/g, "");
|
|
116
|
+
const columns = await db.selectFrom(
|
|
117
|
+
sql`pragma_table_info(${table})`.as("table_info")
|
|
118
|
+
).select(["name", "type", "notnull", "dflt_value"]).execute();
|
|
119
|
+
return {
|
|
120
|
+
name: table,
|
|
121
|
+
columns: columns.map((col) => ({
|
|
122
|
+
name: col.name,
|
|
123
|
+
dataType: col.type,
|
|
124
|
+
isNullable: !col.notnull,
|
|
125
|
+
isAutoIncrementing: col.name === autoIncrementCol,
|
|
126
|
+
hasDefaultValue: col.dflt_value != null
|
|
127
|
+
})),
|
|
128
|
+
isView: true
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
class NodeSqliteQueryCompiler extends DefaultQueryCompiler {
|
|
133
|
+
getCurrentParameterPlaceholder() {
|
|
134
|
+
return "?";
|
|
135
|
+
}
|
|
136
|
+
getLeftIdentifierWrapper() {
|
|
137
|
+
return '"';
|
|
138
|
+
}
|
|
139
|
+
getRightIdentifierWrapper() {
|
|
140
|
+
return '"';
|
|
141
|
+
}
|
|
142
|
+
getAutoIncrement() {
|
|
143
|
+
return "autoincrement";
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
class NodeSqliteDialect {
|
|
147
|
+
#config;
|
|
148
|
+
constructor(config) {
|
|
149
|
+
this.#config = { ...config };
|
|
150
|
+
}
|
|
151
|
+
createDriver() {
|
|
152
|
+
return new NodeSqliteDriver(this.#config);
|
|
153
|
+
}
|
|
154
|
+
createQueryCompiler() {
|
|
155
|
+
return new NodeSqliteQueryCompiler();
|
|
156
|
+
}
|
|
157
|
+
createAdapter() {
|
|
158
|
+
return new NodeSqliteAdapter();
|
|
159
|
+
}
|
|
160
|
+
createIntrospector(db) {
|
|
161
|
+
return new NodeSqliteIntrospector(db);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export { NodeSqliteAdapter, NodeSqliteDialect, NodeSqliteDriver, NodeSqliteIntrospector, NodeSqliteQueryCompiler };
|
package/dist/client/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const vanilla = require('../shared/better-auth.
|
|
3
|
+
const vanilla = require('../shared/better-auth.CmdI9lHT.cjs');
|
|
4
4
|
const query = require('../shared/better-auth.Ck3n8bMC.cjs');
|
|
5
|
-
require('../shared/better-auth.
|
|
5
|
+
require('../shared/better-auth.CtToz4qL.cjs');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
7
|
require('../shared/better-auth.DRmln2Nr.cjs');
|
|
8
8
|
require('../shared/better-auth.B6fIklBU.cjs');
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.D8SN-Ifb.cjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.w-yWDZbA.cjs';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.w-yWDZbA.cjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
10
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.
|
|
10
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.DTtXpZYr.cjs';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'better-call';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../shared/better-auth.
|
|
14
|
+
import '../shared/better-auth.DON7H68e.cjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.DY7-SHcY.mjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.BoEiBLMv.mjs';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.BoEiBLMv.mjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
10
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.
|
|
10
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.DTtXpZYr.mjs';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'better-call';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../shared/better-auth.
|
|
14
|
+
import '../shared/better-auth.DdgudOLF.mjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.DOVAUUJb.js';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.BLnYm5c_.js';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.BLnYm5c_.js';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
10
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.
|
|
10
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.DTtXpZYr.js';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'better-call';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../shared/better-auth.
|
|
14
|
+
import '../shared/better-auth.lvQ7SGjm.js';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { c as createAuthClient } from '../shared/better-auth.
|
|
1
|
+
export { c as createAuthClient } from '../shared/better-auth.DVsI0DHa.mjs';
|
|
2
2
|
export { u as useAuthQuery } from '../shared/better-auth.Buni1mmI.mjs';
|
|
3
|
-
import '../shared/better-auth.
|
|
3
|
+
import '../shared/better-auth.CGGao4aY.mjs';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
5
5
|
import '../shared/better-auth.CuS_eDdK.mjs';
|
|
6
6
|
import '../shared/better-auth.CMQ3rA-I.mjs';
|
|
@@ -4,8 +4,8 @@ import * as nanostores from 'nanostores';
|
|
|
4
4
|
import { atom } from 'nanostores';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
7
|
-
import { a as Prettify } from '../../shared/better-auth.
|
|
8
|
-
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
7
|
+
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
8
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.D8SN-Ifb.cjs';
|
|
9
9
|
import { username } from '../../plugins/username/index.cjs';
|
|
10
10
|
import { Session } from 'inspector';
|
|
11
11
|
import { Passkey, passkey } from '../../plugins/passkey/index.cjs';
|
|
@@ -18,10 +18,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.cjs';
|
|
|
18
18
|
import { jwt } from '../../plugins/jwt/index.cjs';
|
|
19
19
|
import { multiSession } from '../../plugins/multi-session/index.cjs';
|
|
20
20
|
import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
21
|
-
import { S as Store } from '../../shared/better-auth.
|
|
21
|
+
import { S as Store } from '../../shared/better-auth.w-yWDZbA.cjs';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.cjs';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.cjs';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.D6DP-h2z.cjs';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.cjs';
|
|
27
27
|
export * from '@simplewebauthn/server';
|
|
@@ -30,7 +30,7 @@ import 'zod/v4';
|
|
|
30
30
|
import 'better-call';
|
|
31
31
|
import '../../plugins/organization/access/index.cjs';
|
|
32
32
|
import 'kysely';
|
|
33
|
-
import '../../shared/better-auth.
|
|
33
|
+
import '../../shared/better-auth.DON7H68e.cjs';
|
|
34
34
|
import 'jose';
|
|
35
35
|
import 'zod/v4/core';
|
|
36
36
|
import 'zod';
|
|
@@ -4,8 +4,8 @@ import * as nanostores from 'nanostores';
|
|
|
4
4
|
import { atom } from 'nanostores';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
7
|
-
import { a as Prettify } from '../../shared/better-auth.
|
|
8
|
-
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
7
|
+
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
8
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.DY7-SHcY.mjs';
|
|
9
9
|
import { username } from '../../plugins/username/index.mjs';
|
|
10
10
|
import { Session } from 'inspector';
|
|
11
11
|
import { Passkey, passkey } from '../../plugins/passkey/index.mjs';
|
|
@@ -18,10 +18,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.mjs';
|
|
|
18
18
|
import { jwt } from '../../plugins/jwt/index.mjs';
|
|
19
19
|
import { multiSession } from '../../plugins/multi-session/index.mjs';
|
|
20
20
|
import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
21
|
-
import { S as Store } from '../../shared/better-auth.
|
|
21
|
+
import { S as Store } from '../../shared/better-auth.BoEiBLMv.mjs';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.mjs';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.mjs';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.0DssezSG.mjs';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.mjs';
|
|
27
27
|
export * from '@simplewebauthn/server';
|
|
@@ -30,7 +30,7 @@ import 'zod/v4';
|
|
|
30
30
|
import 'better-call';
|
|
31
31
|
import '../../plugins/organization/access/index.mjs';
|
|
32
32
|
import 'kysely';
|
|
33
|
-
import '../../shared/better-auth.
|
|
33
|
+
import '../../shared/better-auth.DdgudOLF.mjs';
|
|
34
34
|
import 'jose';
|
|
35
35
|
import 'zod/v4/core';
|
|
36
36
|
import 'zod';
|
|
@@ -4,8 +4,8 @@ import * as nanostores from 'nanostores';
|
|
|
4
4
|
import { atom } from 'nanostores';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
7
|
-
import { a as Prettify } from '../../shared/better-auth.
|
|
8
|
-
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
7
|
+
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.js';
|
|
8
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.DOVAUUJb.js';
|
|
9
9
|
import { username } from '../../plugins/username/index.js';
|
|
10
10
|
import { Session } from 'inspector';
|
|
11
11
|
import { Passkey, passkey } from '../../plugins/passkey/index.js';
|
|
@@ -18,10 +18,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.js';
|
|
|
18
18
|
import { jwt } from '../../plugins/jwt/index.js';
|
|
19
19
|
import { multiSession } from '../../plugins/multi-session/index.js';
|
|
20
20
|
import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
21
|
-
import { S as Store } from '../../shared/better-auth.
|
|
21
|
+
import { S as Store } from '../../shared/better-auth.BLnYm5c_.js';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.js';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.js';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.C1wrCC3K.js';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.js';
|
|
27
27
|
export * from '@simplewebauthn/server';
|
|
@@ -30,7 +30,7 @@ import 'zod/v4';
|
|
|
30
30
|
import 'better-call';
|
|
31
31
|
import '../../plugins/organization/access/index.js';
|
|
32
32
|
import 'kysely';
|
|
33
|
-
import '../../shared/better-auth.
|
|
33
|
+
import '../../shared/better-auth.lvQ7SGjm.js';
|
|
34
34
|
import 'jose';
|
|
35
35
|
import 'zod/v4/core';
|
|
36
36
|
import 'zod';
|
|
@@ -4,14 +4,14 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.w-yWDZbA.cjs';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.D8SN-Ifb.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../../shared/better-auth.
|
|
14
|
+
import '../../shared/better-auth.DON7H68e.cjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -4,14 +4,14 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BoEiBLMv.mjs';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DY7-SHcY.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../../shared/better-auth.
|
|
14
|
+
import '../../shared/better-auth.DdgudOLF.mjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -4,14 +4,14 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BLnYm5c_.js';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DOVAUUJb.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../../shared/better-auth.
|
|
14
|
+
import '../../shared/better-auth.lvQ7SGjm.js';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.CGGao4aY.mjs';
|
|
2
2
|
import { listenKeys } from 'nanostores';
|
|
3
3
|
import { useRef, useCallback, useSyncExternalStore } from 'react';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const proxy = require('../../shared/better-auth.
|
|
3
|
+
const proxy = require('../../shared/better-auth.CtToz4qL.cjs');
|
|
4
4
|
const misc = require('../../shared/better-auth.BLDOwz3i.cjs');
|
|
5
5
|
const store = require('solid-js/store');
|
|
6
6
|
const solidJs = require('solid-js');
|