better-auth-studio 1.0.59-beta.8 → 1.0.59-beta.9
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/routes.d.ts.map +1 -1
- package/dist/routes.js +7 -5
- package/dist/routes.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/{main-GLVvDN7r.js → main-fX0tKK6u.js} +103 -103
- package/public/index.html +1 -1
package/dist/routes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAeA,OAAO,EAA+B,MAAM,EAAE,MAAM,SAAS,CAAC;AAS9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAeA,OAAO,EAA+B,MAAM,EAAE,MAAM,SAAS,CAAC;AAS9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA+D9C,wBAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,UAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAqLhG;AAeD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CA4mLR"}
|
package/dist/routes.js
CHANGED
|
@@ -8,10 +8,10 @@ import { scryptAsync } from '@noble/hashes/scrypt.js';
|
|
|
8
8
|
import { Router } from 'express';
|
|
9
9
|
import { createJiti } from 'jiti';
|
|
10
10
|
import { createMockAccount, createMockSession, createMockUser, createMockVerification, getAuthAdapter, } from './auth-adapter.js';
|
|
11
|
+
import { possiblePaths } from './config.js';
|
|
11
12
|
import { getAuthData } from './data.js';
|
|
12
13
|
import { initializeGeoService, resolveIPLocation, setGeoDbPath } from './geo-service.js';
|
|
13
14
|
import { detectDatabaseWithDialect } from './utils/database-detection.js';
|
|
14
|
-
import { possiblePaths } from './config.js';
|
|
15
15
|
const config = {
|
|
16
16
|
N: 16384,
|
|
17
17
|
r: 16,
|
|
@@ -4348,7 +4348,9 @@ export function createRoutes(authConfig, configPath, geoDbPath) {
|
|
|
4348
4348
|
attrs.push(`unique: ${field.unique ? 'true' : 'false'}`);
|
|
4349
4349
|
attrs.push('input: false');
|
|
4350
4350
|
// Handle defaultValue
|
|
4351
|
-
if (field.defaultValue !== undefined &&
|
|
4351
|
+
if (field.defaultValue !== undefined &&
|
|
4352
|
+
field.defaultValue !== null &&
|
|
4353
|
+
field.defaultValue !== '') {
|
|
4352
4354
|
if (field.type === 'string') {
|
|
4353
4355
|
attrs.push(`defaultValue: "${field.defaultValue}"`);
|
|
4354
4356
|
}
|
|
@@ -4390,15 +4392,15 @@ ${fields}
|
|
|
4390
4392
|
if (!code.trim())
|
|
4391
4393
|
return '';
|
|
4392
4394
|
const lines = code.split('\n');
|
|
4393
|
-
const nonEmptyLines = lines.filter(line => line.trim());
|
|
4395
|
+
const nonEmptyLines = lines.filter((line) => line.trim());
|
|
4394
4396
|
if (nonEmptyLines.length === 0)
|
|
4395
4397
|
return '';
|
|
4396
|
-
const minIndent = Math.min(...nonEmptyLines.map(line => {
|
|
4398
|
+
const minIndent = Math.min(...nonEmptyLines.map((line) => {
|
|
4397
4399
|
const match = line.match(/^(\s*)/);
|
|
4398
4400
|
return match ? match[1].length : 0;
|
|
4399
4401
|
}));
|
|
4400
4402
|
return lines
|
|
4401
|
-
.map(line => {
|
|
4403
|
+
.map((line) => {
|
|
4402
4404
|
if (!line.trim())
|
|
4403
4405
|
return '';
|
|
4404
4406
|
const currentIndent = line.match(/^(\s*)/)?.[1] || '';
|