appflare 0.2.39 → 0.2.40

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.
@@ -18,7 +18,7 @@ export function generateTypesContextSection(
18
18
  const userFields = [adminFieldLines, additionalFieldLines].filter(Boolean).join("\n");
19
19
 
20
20
  const userType = roles.length > 0
21
- ? `type UserRole = ${roles.map((r) => `"${r}"`).join(" | ")};
21
+ ? `export type UserRole = ${roles.map((r) => `"${r}"`).join(" | ")};
22
22
  type User = import("better-auth").User & {
23
23
  ${userFields}
24
24
  };`
package/dist/cli/index.js CHANGED
@@ -4779,7 +4779,7 @@ type TableInsertModel<TName extends TableName> = InferInsertModel<
4779
4779
  `):"",n].filter(Boolean).join(`
4780
4780
  `);return `type AuthSession = typeof auth.$Infer.Session;
4781
4781
  type AuthAdapter = Awaited<typeof auth.$context>["internalAdapter"];
4782
- ${e.length>0?`type UserRole = ${e.map(i=>`"${i}"`).join(" | ")};
4782
+ ${e.length>0?`export type UserRole = ${e.map(i=>`"${i}"`).join(" | ")};
4783
4783
  type User = import("better-auth").User & {
4784
4784
  ${a}
4785
4785
  };`:t.length>0?`type User = import("better-auth").User & {
@@ -4779,7 +4779,7 @@ type TableInsertModel<TName extends TableName> = InferInsertModel<
4779
4779
  `):"",n].filter(Boolean).join(`
4780
4780
  `);return `type AuthSession = typeof auth.$Infer.Session;
4781
4781
  type AuthAdapter = Awaited<typeof auth.$context>["internalAdapter"];
4782
- ${e.length>0?`type UserRole = ${e.map(i=>`"${i}"`).join(" | ")};
4782
+ ${e.length>0?`export type UserRole = ${e.map(i=>`"${i}"`).join(" | ")};
4783
4783
  type User = import("better-auth").User & {
4784
4784
  ${a}
4785
4785
  };`:t.length>0?`type User = import("better-auth").User & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appflare",
3
- "version": "0.2.39",
3
+ "version": "0.2.40",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",