better-auth-studio 1.0.58 → 1.0.59-beta.1
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
CHANGED
|
@@ -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,EAAE,OAAO,UAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAyLhG;AAwBD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,
|
|
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,EAAE,OAAO,UAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAyLhG;AAwBD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAi8KR"}
|
package/dist/routes.js
CHANGED
|
@@ -4425,7 +4425,6 @@ ${fields}
|
|
|
4425
4425
|
}),
|
|
4426
4426
|
}`;
|
|
4427
4427
|
});
|
|
4428
|
-
// Generate middleware
|
|
4429
4428
|
const middlewareCode = middleware
|
|
4430
4429
|
.map((mw) => {
|
|
4431
4430
|
return ` {
|
|
@@ -4462,7 +4461,7 @@ ${fields}
|
|
|
4462
4461
|
return ` ${sanitizedName}: createAuthEndpoint(
|
|
4463
4462
|
"${endpointPath}",
|
|
4464
4463
|
{
|
|
4465
|
-
method: "${endpoint.method || 'POST'}"
|
|
4464
|
+
method: "${endpoint.method || 'POST'}",
|
|
4466
4465
|
},
|
|
4467
4466
|
async (ctx) => {
|
|
4468
4467
|
// ${endpoint.name || sanitizedName}
|
|
@@ -4537,8 +4536,8 @@ ${formattedHandlerLogic}
|
|
|
4537
4536
|
imports.push('import { createAuthEndpoint, createAuthMiddleware } from "@better-auth/core/api"');
|
|
4538
4537
|
}
|
|
4539
4538
|
const serverPluginBody = pluginParts.length > 0
|
|
4540
|
-
? ` id: "${camelCaseName}"
|
|
4541
|
-
: ` id: "${camelCaseName}"
|
|
4539
|
+
? ` id: "${camelCaseName}",\n${pluginParts.join(',\n')}`
|
|
4540
|
+
: ` id: "${camelCaseName}"`;
|
|
4542
4541
|
const serverPluginCode = cleanCode(`import type { BetterAuthPlugin } from "@better-auth/core";
|
|
4543
4542
|
${imports.join('\n')}
|
|
4544
4543
|
|