better-auth 1.2.6 → 1.2.7
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 -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 +3 -2
- package/dist/adapters/index.cjs +2 -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 +2 -1
- package/dist/adapters/kysely-adapter/index.cjs +3 -2
- package/dist/adapters/kysely-adapter/index.d.cts +2 -2
- package/dist/adapters/kysely-adapter/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/adapters/kysely-adapter/index.mjs +3 -2
- package/dist/adapters/memory-adapter/index.cjs +3 -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 +3 -2
- package/dist/adapters/mongodb-adapter/index.cjs +192 -163
- package/dist/adapters/mongodb-adapter/index.d.cts +47 -18
- package/dist/adapters/mongodb-adapter/index.d.mts +47 -18
- package/dist/adapters/mongodb-adapter/index.d.ts +47 -18
- package/dist/adapters/mongodb-adapter/index.mjs +192 -163
- package/dist/adapters/prisma-adapter/index.cjs +2 -1
- 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 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/plugins/index.d.cts +2 -2
- package/dist/client/plugins/index.d.mts +2 -2
- package/dist/client/plugins/index.d.ts +2 -2
- package/dist/client/react/index.d.cts +1 -1
- package/dist/client/react/index.d.mts +1 -1
- package/dist/client/react/index.d.ts +1 -1
- package/dist/client/solid/index.d.cts +1 -1
- package/dist/client/solid/index.d.mts +1 -1
- package/dist/client/solid/index.d.ts +1 -1
- package/dist/client/svelte/index.d.cts +1 -1
- package/dist/client/svelte/index.d.mts +1 -1
- package/dist/client/svelte/index.d.ts +1 -1
- package/dist/client/vue/index.d.cts +1 -1
- package/dist/client/vue/index.d.mts +1 -1
- package/dist/client/vue/index.d.ts +1 -1
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/db/index.cjs +5 -4
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.mjs +5 -4
- package/dist/index.cjs +5 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +5 -4
- package/dist/integrations/next-js.cjs +1 -1
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/next-js.mjs +1 -1
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.cjs +1 -1
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.d.ts +1 -1
- package/dist/integrations/react-start.mjs +1 -1
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/plugins/admin/index.d.cts +1 -1
- package/dist/plugins/admin/index.d.mts +1 -1
- package/dist/plugins/admin/index.d.ts +1 -1
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.d.cts +1 -1
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.cjs +1 -0
- package/dist/plugins/generic-oauth/index.d.cts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.mjs +1 -0
- package/dist/plugins/haveibeenpwned/index.cjs +7 -2
- package/dist/plugins/haveibeenpwned/index.d.cts +4 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +4 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +4 -1
- package/dist/plugins/haveibeenpwned/index.mjs +7 -2
- package/dist/plugins/index.cjs +1 -1
- package/dist/plugins/index.d.cts +2 -2
- package/dist/plugins/index.d.mts +2 -2
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/index.mjs +1 -1
- package/dist/plugins/jwt/index.d.cts +1 -1
- package/dist/plugins/jwt/index.d.mts +1 -1
- package/dist/plugins/jwt/index.d.ts +1 -1
- package/dist/plugins/multi-session/index.d.cts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.ts +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.ts +1 -1
- package/dist/plugins/oidc-provider/index.d.cts +1 -1
- package/dist/plugins/oidc-provider/index.d.mts +1 -1
- package/dist/plugins/oidc-provider/index.d.ts +1 -1
- package/dist/plugins/one-time-token/index.cjs +1 -1
- package/dist/plugins/one-time-token/index.d.cts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.ts +1 -1
- package/dist/plugins/one-time-token/index.mjs +1 -1
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/organization/index.cjs +1 -1
- package/dist/plugins/organization/index.d.cts +1 -1
- package/dist/plugins/organization/index.d.mts +1 -1
- package/dist/plugins/organization/index.d.ts +1 -1
- package/dist/plugins/organization/index.mjs +1 -1
- package/dist/plugins/passkey/index.d.cts +1 -1
- package/dist/plugins/passkey/index.d.mts +1 -1
- package/dist/plugins/passkey/index.d.ts +1 -1
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/sso/index.d.cts +1 -1
- package/dist/plugins/sso/index.d.mts +1 -1
- package/dist/plugins/sso/index.d.ts +1 -1
- package/dist/plugins/two-factor/index.d.cts +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/two-factor/index.d.ts +1 -1
- package/dist/plugins/username/index.cjs +1 -1
- package/dist/plugins/username/index.d.cts +1 -1
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.d.ts +1 -1
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/shared/better-auth.0TC26uRi.mjs +16 -0
- package/dist/shared/{better-auth.C2GZ5Zx_.mjs → better-auth.1DR6suCQ.mjs} +1 -1
- package/dist/shared/{better-auth.SPmq4a4z.d.mts → better-auth.AsqaYss_.d.mts} +1 -1
- package/dist/shared/{better-auth.BcU1Kjyq.d.cts → better-auth.B3qlboSE.d.cts} +1 -1
- package/dist/shared/{better-auth.CGukGrxT.d.cts → better-auth.BbvqfI1U.d.cts} +1 -1
- package/dist/shared/{better-auth.xllnfUUC.cjs → better-auth.BfG24BjZ.cjs} +1 -1
- package/dist/shared/{better-auth.C0YmvEre.mjs → better-auth.Bk5IMdhM.mjs} +5 -2
- package/dist/shared/{better-auth.CmN4mlPh.d.ts → better-auth.COk-F2tg.d.ts} +1 -1
- package/dist/shared/better-auth.CUdxApHl.cjs +18 -0
- package/dist/shared/{better-auth.D9t9kpmt.cjs → better-auth.CVCo5Z2T.cjs} +1 -1
- package/dist/shared/{better-auth.CT9J6rD-.d.cts → better-auth.CjPXBV10.d.cts} +1 -1
- package/dist/shared/{better-auth.DQ7OSJbI.d.mts → better-auth.DL-QWS_q.d.mts} +1 -1
- package/dist/shared/{better-auth.Bwc-6kOr.d.ts → better-auth.DMtyR5cS.d.ts} +1 -1
- package/dist/shared/{better-auth.DC-lhT2O.mjs → better-auth.DURsStt9.mjs} +1 -1
- package/dist/shared/{better-auth.ChS6_I0e.cjs → better-auth.DYoLD99C.cjs} +5 -2
- package/dist/shared/{better-auth.BCWbJh3H.cjs → better-auth.D_ZIX1O8.cjs} +4 -4
- package/dist/shared/{better-auth.BGJuANtq.cjs → better-auth.DjryM8pE.cjs} +5 -17
- package/dist/shared/{better-auth.BGRBGQM4.mjs → better-auth.Dn_Ms1Uf.mjs} +4 -4
- package/dist/shared/{better-auth.S1jimRbX.d.mts → better-auth.DpXyaoiz.d.mts} +1 -1
- package/dist/shared/{better-auth.DIt2e3lu.d.mts → better-auth.DxMWj3n9.d.mts} +1 -1
- package/dist/shared/{better-auth.CA2hFK4N.d.ts → better-auth.qzSbzJNO.d.ts} +1 -1
- package/dist/shared/{better-auth.Bz1paiXf.mjs → better-auth.rSYJCd3o.mjs} +4 -16
- package/dist/shared/{better-auth.cp2rC2iM.d.ts → better-auth.tvltKzru.d.ts} +1 -1
- package/dist/shared/{better-auth.eVy4DZvP.d.cts → better-auth.yH4MWSR1.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +3 -3
|
@@ -2,8 +2,9 @@
|
|
|
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.DjryM8pE.cjs');
|
|
6
6
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
7
|
+
require('../../shared/better-auth.CUdxApHl.cjs');
|
|
7
8
|
require('../../shared/better-auth.BEphVDyL.cjs');
|
|
8
9
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
9
10
|
require('@better-auth/utils/random');
|
|
@@ -193,7 +194,7 @@ const drizzleAdapter = (db, config) => index.createAdapter({
|
|
|
193
194
|
const schemaModel = getSchema(model);
|
|
194
195
|
const clause = where ? convertWhereClause(where, model) : [];
|
|
195
196
|
const res = await db.select({ count: drizzleOrm.count() }).from(schemaModel).where(...clause);
|
|
196
|
-
return res.count;
|
|
197
|
+
return res[0].count;
|
|
197
198
|
},
|
|
198
199
|
async update({ model, where, update: values }) {
|
|
199
200
|
const schemaModel = getSchema(model);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.
|
|
2
|
-
import { A as AdapterDebugLogs } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.B3qlboSE.cjs';
|
|
2
|
+
import { A as AdapterDebugLogs } from '../../shared/better-auth.yH4MWSR1.cjs';
|
|
3
3
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.DTiSPWEk.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.
|
|
2
|
-
import { A as AdapterDebugLogs } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.DL-QWS_q.mjs';
|
|
2
|
+
import { A as AdapterDebugLogs } from '../../shared/better-auth.AsqaYss_.mjs';
|
|
3
3
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.B88xucNq.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.
|
|
2
|
-
import { A as AdapterDebugLogs } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.qzSbzJNO.js';
|
|
2
|
+
import { A as AdapterDebugLogs } from '../../shared/better-auth.tvltKzru.js';
|
|
3
3
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.DNTAFSt1.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { count, desc, asc, sql, eq, inArray, like, lt, lte, and, or } from 'drizzle-orm';
|
|
2
2
|
import { B as BetterAuthError } from '../../shared/better-auth.DdzSJf-n.mjs';
|
|
3
|
-
import { c as createAdapter } from '../../shared/better-auth.
|
|
3
|
+
import { c as createAdapter } from '../../shared/better-auth.rSYJCd3o.mjs';
|
|
4
4
|
import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
5
|
+
import '../../shared/better-auth.0TC26uRi.mjs';
|
|
5
6
|
import '../../shared/better-auth.DORkW_Ge.mjs';
|
|
6
7
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
7
8
|
import '@better-auth/utils/random';
|
|
@@ -191,7 +192,7 @@ const drizzleAdapter = (db, config) => createAdapter({
|
|
|
191
192
|
const schemaModel = getSchema(model);
|
|
192
193
|
const clause = where ? convertWhereClause(where, model) : [];
|
|
193
194
|
const res = await db.select({ count: count() }).from(schemaModel).where(...clause);
|
|
194
|
-
return res.count;
|
|
195
|
+
return res[0].count;
|
|
195
196
|
},
|
|
196
197
|
async update({ model, where, update: values }) {
|
|
197
198
|
const schemaModel = getSchema(model);
|
package/dist/adapters/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('../shared/better-auth.
|
|
3
|
+
const index = require('../shared/better-auth.DjryM8pE.cjs');
|
|
4
4
|
require('../shared/better-auth.D3mtHEZg.cjs');
|
|
5
|
+
require('../shared/better-auth.CUdxApHl.cjs');
|
|
5
6
|
require('../shared/better-auth.BEphVDyL.cjs');
|
|
6
7
|
require('../shared/better-auth.Bg6iw3ig.cjs');
|
|
7
8
|
require('@better-auth/utils/random');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.
|
|
2
|
-
import { a as AdapterConfig, C as CreateCustomAdapter } from '../shared/better-auth.
|
|
3
|
-
export { A as AdapterDebugLogs, d as AdapterTestDebugLogs, c as CleanedWhere, b as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.B3qlboSE.cjs';
|
|
2
|
+
import { a as AdapterConfig, C as CreateCustomAdapter } from '../shared/better-auth.yH4MWSR1.cjs';
|
|
3
|
+
export { A as AdapterDebugLogs, d as AdapterTestDebugLogs, c as CleanedWhere, b as CustomAdapter } from '../shared/better-auth.yH4MWSR1.cjs';
|
|
4
4
|
import '../shared/better-auth.CYegVoq1.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../shared/better-auth.DTiSPWEk.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.
|
|
2
|
-
import { a as AdapterConfig, C as CreateCustomAdapter } from '../shared/better-auth.
|
|
3
|
-
export { A as AdapterDebugLogs, d as AdapterTestDebugLogs, c as CleanedWhere, b as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.DL-QWS_q.mjs';
|
|
2
|
+
import { a as AdapterConfig, C as CreateCustomAdapter } from '../shared/better-auth.AsqaYss_.mjs';
|
|
3
|
+
export { A as AdapterDebugLogs, d as AdapterTestDebugLogs, c as CleanedWhere, b as CustomAdapter } from '../shared/better-auth.AsqaYss_.mjs';
|
|
4
4
|
import '../shared/better-auth.CYegVoq1.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../shared/better-auth.B88xucNq.mjs';
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.
|
|
2
|
-
import { a as AdapterConfig, C as CreateCustomAdapter } from '../shared/better-auth.
|
|
3
|
-
export { A as AdapterDebugLogs, d as AdapterTestDebugLogs, c as CleanedWhere, b as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.qzSbzJNO.js';
|
|
2
|
+
import { a as AdapterConfig, C as CreateCustomAdapter } from '../shared/better-auth.tvltKzru.js';
|
|
3
|
+
export { A as AdapterDebugLogs, d as AdapterTestDebugLogs, c as CleanedWhere, b as CustomAdapter } from '../shared/better-auth.tvltKzru.js';
|
|
4
4
|
import '../shared/better-auth.CYegVoq1.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../shared/better-auth.DNTAFSt1.js';
|
package/dist/adapters/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { c as createAdapter } from '../shared/better-auth.
|
|
1
|
+
export { c as createAdapter } from '../shared/better-auth.rSYJCd3o.mjs';
|
|
2
2
|
import '../shared/better-auth.tB5eU6EY.mjs';
|
|
3
|
+
import '../shared/better-auth.0TC26uRi.mjs';
|
|
3
4
|
import '../shared/better-auth.DORkW_Ge.mjs';
|
|
4
5
|
import '../shared/better-auth.BUPPRXfK.mjs';
|
|
5
6
|
import '@better-auth/utils/random';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const kyselyAdapter = require('../../shared/better-auth.
|
|
3
|
+
const kyselyAdapter = require('../../shared/better-auth.CVCo5Z2T.cjs');
|
|
4
4
|
require('kysely');
|
|
5
|
-
require('../../shared/better-auth.
|
|
5
|
+
require('../../shared/better-auth.DjryM8pE.cjs');
|
|
6
6
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
7
|
+
require('../../shared/better-auth.CUdxApHl.cjs');
|
|
7
8
|
require('../../shared/better-auth.BEphVDyL.cjs');
|
|
8
9
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
9
10
|
require('@better-auth/utils/random');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { f as BetterAuthOptions, K as KyselyDatabaseType, g as Adapter } from '../../shared/better-auth.
|
|
3
|
-
import { A as AdapterDebugLogs } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, g as Adapter } from '../../shared/better-auth.B3qlboSE.cjs';
|
|
3
|
+
import { A as AdapterDebugLogs } from '../../shared/better-auth.yH4MWSR1.cjs';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../../shared/better-auth.DTiSPWEk.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { f as BetterAuthOptions, K as KyselyDatabaseType, g as Adapter } from '../../shared/better-auth.
|
|
3
|
-
import { A as AdapterDebugLogs } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, g as Adapter } from '../../shared/better-auth.DL-QWS_q.mjs';
|
|
3
|
+
import { A as AdapterDebugLogs } from '../../shared/better-auth.AsqaYss_.mjs';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../../shared/better-auth.B88xucNq.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { f as BetterAuthOptions, K as KyselyDatabaseType, g as Adapter } from '../../shared/better-auth.
|
|
3
|
-
import { A as AdapterDebugLogs } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, g as Adapter } from '../../shared/better-auth.qzSbzJNO.js';
|
|
3
|
+
import { A as AdapterDebugLogs } from '../../shared/better-auth.tvltKzru.js';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../../shared/better-auth.DNTAFSt1.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { c as createKyselyAdapter, k as kyselyAdapter } from '../../shared/better-auth.
|
|
1
|
+
export { c as createKyselyAdapter, k as kyselyAdapter } from '../../shared/better-auth.1DR6suCQ.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
|
-
import '../../shared/better-auth.
|
|
3
|
+
import '../../shared/better-auth.rSYJCd3o.mjs';
|
|
4
4
|
import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
5
|
+
import '../../shared/better-auth.0TC26uRi.mjs';
|
|
5
6
|
import '../../shared/better-auth.DORkW_Ge.mjs';
|
|
6
7
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
7
8
|
import '@better-auth/utils/random';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const memoryAdapter = require('../../shared/better-auth.
|
|
4
|
-
require('../../shared/better-auth.
|
|
3
|
+
const memoryAdapter = require('../../shared/better-auth.BfG24BjZ.cjs');
|
|
4
|
+
require('../../shared/better-auth.DjryM8pE.cjs');
|
|
5
5
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
6
|
+
require('../../shared/better-auth.CUdxApHl.cjs');
|
|
6
7
|
require('../../shared/better-auth.BEphVDyL.cjs');
|
|
7
8
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
8
9
|
require('@better-auth/utils/random');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.
|
|
2
|
-
import { A as AdapterDebugLogs } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.B3qlboSE.cjs';
|
|
2
|
+
import { A as AdapterDebugLogs } from '../../shared/better-auth.yH4MWSR1.cjs';
|
|
3
3
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.DTiSPWEk.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.
|
|
2
|
-
import { A as AdapterDebugLogs } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.DL-QWS_q.mjs';
|
|
2
|
+
import { A as AdapterDebugLogs } from '../../shared/better-auth.AsqaYss_.mjs';
|
|
3
3
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.B88xucNq.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.
|
|
2
|
-
import { A as AdapterDebugLogs } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../../shared/better-auth.qzSbzJNO.js';
|
|
2
|
+
import { A as AdapterDebugLogs } from '../../shared/better-auth.tvltKzru.js';
|
|
3
3
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.DNTAFSt1.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { m as memoryAdapter } from '../../shared/better-auth.
|
|
2
|
-
import '../../shared/better-auth.
|
|
1
|
+
export { m as memoryAdapter } from '../../shared/better-auth.DURsStt9.mjs';
|
|
2
|
+
import '../../shared/better-auth.rSYJCd3o.mjs';
|
|
3
3
|
import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
4
|
+
import '../../shared/better-auth.0TC26uRi.mjs';
|
|
4
5
|
import '../../shared/better-auth.DORkW_Ge.mjs';
|
|
5
6
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
6
7
|
import '@better-auth/utils/random';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const mongodb = require('mongodb');
|
|
4
|
-
|
|
5
|
-
require('../../shared/better-auth.
|
|
6
|
-
require('../../shared/better-auth.BEphVDyL.cjs');
|
|
7
|
-
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
4
|
+
require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
5
|
+
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
8
6
|
require('@better-auth/utils/random');
|
|
9
7
|
require('zod');
|
|
10
8
|
require('better-call');
|
|
@@ -20,129 +18,134 @@ require('@better-auth/utils/hex');
|
|
|
20
18
|
require('@noble/hashes/utils');
|
|
21
19
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
22
20
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
21
|
+
const getTables = require('../../shared/better-auth.BEphVDyL.cjs');
|
|
22
|
+
require('kysely');
|
|
23
|
+
const utils = require('../../shared/better-auth.CUdxApHl.cjs');
|
|
23
24
|
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
supportsNumericIds: false,
|
|
37
|
-
customTransformInput({
|
|
38
|
-
action,
|
|
39
|
-
data,
|
|
40
|
-
field,
|
|
41
|
-
fieldAttributes,
|
|
42
|
-
schema,
|
|
43
|
-
model
|
|
44
|
-
}) {
|
|
45
|
-
if (field === "_id" || fieldAttributes.references?.field === "id") {
|
|
46
|
-
if (action === "update") {
|
|
47
|
-
return data;
|
|
48
|
-
}
|
|
49
|
-
if (Array.isArray(data)) {
|
|
50
|
-
return data.map((v) => new mongodb.ObjectId());
|
|
51
|
-
}
|
|
52
|
-
if (typeof data === "string") {
|
|
53
|
-
try {
|
|
54
|
-
return new mongodb.ObjectId(data);
|
|
55
|
-
} catch (error) {
|
|
56
|
-
return new mongodb.ObjectId();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return new mongodb.ObjectId();
|
|
60
|
-
}
|
|
61
|
-
return data;
|
|
62
|
-
},
|
|
63
|
-
customTransformOutput({ data, field, fieldAttributes }) {
|
|
64
|
-
if (field === "id" || fieldAttributes.references?.field === "id") {
|
|
65
|
-
if (data instanceof mongodb.ObjectId) {
|
|
66
|
-
return data.toHexString();
|
|
25
|
+
const createTransform = (options) => {
|
|
26
|
+
const schema = getTables.getAuthTables(options);
|
|
27
|
+
const customIdGen = options.advanced?.database?.generateId || options.advanced?.generateId;
|
|
28
|
+
function serializeID(field, value, model) {
|
|
29
|
+
if (customIdGen) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
if (field === "id" || field === "_id" || schema[model].fields[field].references?.field === "id") {
|
|
33
|
+
if (typeof value !== "string") {
|
|
34
|
+
if (value instanceof mongodb.ObjectId) {
|
|
35
|
+
return value;
|
|
67
36
|
}
|
|
68
|
-
if (Array.isArray(
|
|
69
|
-
return
|
|
37
|
+
if (Array.isArray(value)) {
|
|
38
|
+
return value.map((v) => {
|
|
39
|
+
if (typeof v === "string") {
|
|
40
|
+
try {
|
|
41
|
+
return new mongodb.ObjectId(v);
|
|
42
|
+
} catch (e) {
|
|
43
|
+
return v;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
70
46
|
if (v instanceof mongodb.ObjectId) {
|
|
71
|
-
return v
|
|
47
|
+
return v;
|
|
72
48
|
}
|
|
73
|
-
|
|
49
|
+
throw new Error("Invalid id value");
|
|
74
50
|
});
|
|
75
51
|
}
|
|
76
|
-
|
|
52
|
+
throw new Error("Invalid id value");
|
|
77
53
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
adapter: ({ options, getFieldName, schema, getDefaultModelName }) => {
|
|
82
|
-
const customIdGen = options.advanced?.database?.generateId;
|
|
83
|
-
function serializeID({
|
|
84
|
-
field,
|
|
85
|
-
value,
|
|
86
|
-
model
|
|
87
|
-
}) {
|
|
88
|
-
if (customIdGen) {
|
|
54
|
+
try {
|
|
55
|
+
return new mongodb.ObjectId(value);
|
|
56
|
+
} catch (e) {
|
|
89
57
|
return value;
|
|
90
58
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
if (v instanceof mongodb.ObjectId) {
|
|
107
|
-
return v;
|
|
108
|
-
}
|
|
109
|
-
throw new Error("Invalid id value");
|
|
110
|
-
});
|
|
59
|
+
}
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
function deserializeID(field, value, model) {
|
|
63
|
+
if (customIdGen) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
if (field === "id" || schema[model].fields[field].references?.field === "id") {
|
|
67
|
+
if (value instanceof mongodb.ObjectId) {
|
|
68
|
+
return value.toHexString();
|
|
69
|
+
}
|
|
70
|
+
if (Array.isArray(value)) {
|
|
71
|
+
return value.map((v) => {
|
|
72
|
+
if (v instanceof mongodb.ObjectId) {
|
|
73
|
+
return v.toHexString();
|
|
111
74
|
}
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
try {
|
|
115
|
-
return new mongodb.ObjectId(value);
|
|
116
|
-
} catch (e) {
|
|
117
|
-
return value;
|
|
118
|
-
}
|
|
75
|
+
return v;
|
|
76
|
+
});
|
|
119
77
|
}
|
|
120
78
|
return value;
|
|
121
79
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
function getField(field, model) {
|
|
83
|
+
if (field === "id") {
|
|
84
|
+
if (customIdGen) {
|
|
85
|
+
return "id";
|
|
86
|
+
}
|
|
87
|
+
return "_id";
|
|
88
|
+
}
|
|
89
|
+
const f = schema[model].fields[field];
|
|
90
|
+
return f.fieldName || field;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
transformInput(data, model, action) {
|
|
94
|
+
const transformedData = action === "update" ? {} : customIdGen ? {
|
|
95
|
+
id: customIdGen({ model })
|
|
96
|
+
} : {
|
|
97
|
+
_id: new mongodb.ObjectId()
|
|
98
|
+
};
|
|
99
|
+
const fields = schema[model].fields;
|
|
100
|
+
for (const field in fields) {
|
|
101
|
+
const value = data[field];
|
|
102
|
+
if (value === void 0 && (!fields[field].defaultValue || action === "update")) {
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
transformedData[fields[field].fieldName || field] = utils.withApplyDefault(
|
|
106
|
+
serializeID(field, value, model),
|
|
107
|
+
fields[field],
|
|
108
|
+
action
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
return transformedData;
|
|
112
|
+
},
|
|
113
|
+
transformOutput(data, model, select = []) {
|
|
114
|
+
const transformedData = data.id || data._id ? select.length === 0 || select.includes("id") ? {
|
|
115
|
+
id: data.id ? data.id.toString() : data._id.toString()
|
|
116
|
+
} : {} : {};
|
|
117
|
+
const tableSchema = schema[model].fields;
|
|
118
|
+
for (const key in tableSchema) {
|
|
119
|
+
if (select.length && !select.includes(key)) {
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
const field = tableSchema[key];
|
|
123
|
+
if (field) {
|
|
124
|
+
transformedData[key] = deserializeID(
|
|
125
|
+
key,
|
|
126
|
+
data[field.fieldName || key],
|
|
127
|
+
model
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return transformedData;
|
|
132
|
+
},
|
|
133
|
+
convertWhereClause(where, model) {
|
|
126
134
|
if (!where.length) return {};
|
|
127
135
|
const conditions = where.map((w) => {
|
|
128
|
-
|
|
136
|
+
const { field: _field, value, operator = "eq", connector = "AND" } = w;
|
|
129
137
|
let condition;
|
|
130
|
-
|
|
131
|
-
if (field === "id") field = "_id";
|
|
138
|
+
const field = getField(_field, model);
|
|
132
139
|
switch (operator.toLowerCase()) {
|
|
133
140
|
case "eq":
|
|
134
141
|
condition = {
|
|
135
|
-
[field]: serializeID(
|
|
136
|
-
field,
|
|
137
|
-
value,
|
|
138
|
-
model
|
|
139
|
-
})
|
|
142
|
+
[field]: serializeID(_field, value, model)
|
|
140
143
|
};
|
|
141
144
|
break;
|
|
142
145
|
case "in":
|
|
143
146
|
condition = {
|
|
144
147
|
[field]: {
|
|
145
|
-
$in: Array.isArray(value) ?
|
|
148
|
+
$in: Array.isArray(value) ? serializeID(_field, value, model) : [serializeID(_field, value, model)]
|
|
146
149
|
}
|
|
147
150
|
};
|
|
148
151
|
break;
|
|
@@ -188,66 +191,92 @@ const mongodbAdapter = (db, config) => index.createAdapter({
|
|
|
188
191
|
clause = { ...clause, $or: orConditions };
|
|
189
192
|
}
|
|
190
193
|
return clause;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
if (offset) cursor.skip(offset);
|
|
209
|
-
if (sortBy)
|
|
210
|
-
cursor.sort(
|
|
211
|
-
getFieldName({ field: sortBy.field, model }),
|
|
212
|
-
sortBy.direction === "desc" ? -1 : 1
|
|
213
|
-
);
|
|
214
|
-
const res = await cursor.toArray();
|
|
215
|
-
return res;
|
|
216
|
-
},
|
|
217
|
-
async count({ model }) {
|
|
218
|
-
const res = await db.collection(model).countDocuments();
|
|
219
|
-
return res;
|
|
220
|
-
},
|
|
221
|
-
async update({ model, where, update: values }) {
|
|
222
|
-
const clause = convertWhereClause({ where, model });
|
|
223
|
-
const res = await db.collection(model).findOneAndUpdate(
|
|
224
|
-
clause,
|
|
225
|
-
{ $set: values },
|
|
226
|
-
{
|
|
227
|
-
returnDocument: "after"
|
|
228
|
-
}
|
|
229
|
-
);
|
|
230
|
-
if (!res) return null;
|
|
231
|
-
return res;
|
|
232
|
-
},
|
|
233
|
-
async updateMany({ model, where, update: values }) {
|
|
234
|
-
const clause = convertWhereClause({ where, model });
|
|
235
|
-
const res = await db.collection(model).updateMany(clause, {
|
|
236
|
-
$set: values
|
|
237
|
-
});
|
|
238
|
-
return res.modifiedCount;
|
|
239
|
-
},
|
|
240
|
-
async delete({ model, where }) {
|
|
241
|
-
const clause = convertWhereClause({ where, model });
|
|
242
|
-
await db.collection(model).deleteOne(clause);
|
|
243
|
-
},
|
|
244
|
-
async deleteMany({ model, where }) {
|
|
245
|
-
const clause = convertWhereClause({ where, model });
|
|
246
|
-
const res = await db.collection(model).deleteMany(clause);
|
|
247
|
-
return res.deletedCount;
|
|
194
|
+
},
|
|
195
|
+
getModelName: (model) => {
|
|
196
|
+
return schema[model].modelName;
|
|
197
|
+
},
|
|
198
|
+
getField
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
const mongodbAdapter = (db) => (options) => {
|
|
202
|
+
const transform = createTransform(options);
|
|
203
|
+
const hasCustomId = options.advanced?.generateId;
|
|
204
|
+
return {
|
|
205
|
+
id: "mongodb-adapter",
|
|
206
|
+
async create(data) {
|
|
207
|
+
const { model, data: values, select } = data;
|
|
208
|
+
const transformedData = transform.transformInput(values, model, "create");
|
|
209
|
+
if (transformedData.id && !hasCustomId) {
|
|
210
|
+
delete transformedData.id;
|
|
248
211
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
212
|
+
const res = await db.collection(transform.getModelName(model)).insertOne(transformedData);
|
|
213
|
+
const id = res.insertedId;
|
|
214
|
+
const insertedData = { id: id.toString(), ...transformedData };
|
|
215
|
+
const t = transform.transformOutput(insertedData, model, select);
|
|
216
|
+
return t;
|
|
217
|
+
},
|
|
218
|
+
async findOne(data) {
|
|
219
|
+
const { model, where, select } = data;
|
|
220
|
+
const clause = transform.convertWhereClause(where, model);
|
|
221
|
+
const res = await db.collection(transform.getModelName(model)).findOne(clause);
|
|
222
|
+
if (!res) return null;
|
|
223
|
+
const transformedData = transform.transformOutput(res, model, select);
|
|
224
|
+
return transformedData;
|
|
225
|
+
},
|
|
226
|
+
async findMany(data) {
|
|
227
|
+
const { model, where, limit, offset, sortBy } = data;
|
|
228
|
+
const clause = where ? transform.convertWhereClause(where, model) : {};
|
|
229
|
+
const cursor = db.collection(transform.getModelName(model)).find(clause);
|
|
230
|
+
if (limit) cursor.limit(limit);
|
|
231
|
+
if (offset) cursor.skip(offset);
|
|
232
|
+
if (sortBy)
|
|
233
|
+
cursor.sort(
|
|
234
|
+
transform.getField(sortBy.field, model),
|
|
235
|
+
sortBy.direction === "desc" ? -1 : 1
|
|
236
|
+
);
|
|
237
|
+
const res = await cursor.toArray();
|
|
238
|
+
return res.map((r) => transform.transformOutput(r, model));
|
|
239
|
+
},
|
|
240
|
+
async count(data) {
|
|
241
|
+
const { model } = data;
|
|
242
|
+
const res = await db.collection(transform.getModelName(model)).countDocuments();
|
|
243
|
+
return res;
|
|
244
|
+
},
|
|
245
|
+
async update(data) {
|
|
246
|
+
const { model, where, update: values } = data;
|
|
247
|
+
const clause = transform.convertWhereClause(where, model);
|
|
248
|
+
const transformedData = transform.transformInput(values, model, "update");
|
|
249
|
+
const res = await db.collection(transform.getModelName(model)).findOneAndUpdate(
|
|
250
|
+
clause,
|
|
251
|
+
{ $set: transformedData },
|
|
252
|
+
{
|
|
253
|
+
returnDocument: "after"
|
|
254
|
+
}
|
|
255
|
+
);
|
|
256
|
+
if (!res) return null;
|
|
257
|
+
return transform.transformOutput(res, model);
|
|
258
|
+
},
|
|
259
|
+
async updateMany(data) {
|
|
260
|
+
const { model, where, update: values } = data;
|
|
261
|
+
const clause = transform.convertWhereClause(where, model);
|
|
262
|
+
const transformedData = transform.transformInput(values, model, "update");
|
|
263
|
+
const res = await db.collection(transform.getModelName(model)).updateMany(clause, { $set: transformedData });
|
|
264
|
+
return res.modifiedCount;
|
|
265
|
+
},
|
|
266
|
+
async delete(data) {
|
|
267
|
+
const { model, where } = data;
|
|
268
|
+
const clause = transform.convertWhereClause(where, model);
|
|
269
|
+
const res = await db.collection(transform.getModelName(model)).findOneAndDelete(clause);
|
|
270
|
+
if (!res) return null;
|
|
271
|
+
return transform.transformOutput(res, model);
|
|
272
|
+
},
|
|
273
|
+
async deleteMany(data) {
|
|
274
|
+
const { model, where } = data;
|
|
275
|
+
const clause = transform.convertWhereClause(where, model);
|
|
276
|
+
const res = await db.collection(transform.getModelName(model)).deleteMany(clause);
|
|
277
|
+
return res.deletedCount;
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
};
|
|
252
281
|
|
|
253
282
|
exports.mongodbAdapter = mongodbAdapter;
|