better-auth-studio 1.0.49-beta.4 → 1.0.49-beta.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAOA,OAAO,EAA+B,MAAM,EAAE,MAAM,SAAS,CAAC;AAS9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA8D9C,wBAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CA8I/E;AAwBD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAm4JR"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAOA,OAAO,EAA+B,MAAM,EAAE,MAAM,SAAS,CAAC;AAS9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA8D9C,wBAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CA8I/E;AAwBD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CA63JR"}
package/dist/routes.js CHANGED
@@ -4302,22 +4302,17 @@ export function createRoutes(authConfig, configPath, geoDbPath) {
4302
4302
  let filename;
4303
4303
  let contentType;
4304
4304
  if (exportFormat === 'csv') {
4305
- // Convert to CSV
4306
4305
  const csvRows = [];
4307
4306
  for (const [tableName, rows] of Object.entries(exportData)) {
4308
4307
  if (rows.length === 0)
4309
4308
  continue;
4310
- // Add table header
4311
4309
  csvRows.push(`\n=== ${tableName.toUpperCase()} ===\n`);
4312
- // Get all unique keys from all rows
4313
4310
  const allKeys = new Set();
4314
4311
  rows.forEach((row) => {
4315
4312
  Object.keys(row).forEach((key) => allKeys.add(key));
4316
4313
  });
4317
4314
  const headers = Array.from(allKeys);
4318
- // Write CSV header
4319
4315
  csvRows.push(headers.map((h) => `"${h}"`).join(','));
4320
- // Write CSV rows
4321
4316
  rows.forEach((row) => {
4322
4317
  const values = headers.map((header) => {
4323
4318
  const value = row[header];
@@ -4335,7 +4330,6 @@ export function createRoutes(authConfig, configPath, geoDbPath) {
4335
4330
  contentType = 'text/csv';
4336
4331
  }
4337
4332
  else {
4338
- // JSON format
4339
4333
  output = JSON.stringify(exportData, null, 2);
4340
4334
  filename = `better-auth-export-${new Date().toISOString().split('T')[0]}.json`;
4341
4335
  contentType = 'application/json';
@@ -4614,7 +4608,7 @@ export function createRoutes(authConfig, configPath, geoDbPath) {
4614
4608
  format: secretFormat,
4615
4609
  length: secretLength,
4616
4610
  entropy,
4617
- envFormat: `AUTH_SECRET=${secret}`,
4611
+ envFormat: `BETTER_AUTH_SECRET=${secret}`,
4618
4612
  });
4619
4613
  }
4620
4614
  catch (error) {