@ubean/auth 0.4.4 → 0.4.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.
package/dist/core.d.ts CHANGED
@@ -6,15 +6,15 @@ declare function resolveAuthOptions(options?: UbeanAuthOptions): ResolvedAuthOpt
6
6
  declare function defineAuth(config: UbeanAuthOptions | ((ctx: {
7
7
  defaults: BetterAuthOptions;
8
8
  }) => UbeanAuthOptions)): UbeanAuthOptions;
9
- declare function createAuthHandler(options?: UbeanAuthOptions): {
9
+ export declare function createAuthHandler(options?: UbeanAuthOptions): {
10
10
  handler: (request: Request) => Promise<Response>;
11
11
  resolveAuth: () => Promise<unknown>;
12
12
  getOptions: () => ResolvedAuthOptions;
13
13
  };
14
- declare function authMiddleware(): MiddlewareHandler;
15
- declare function getUser(): AuthUser | null;
16
- declare function getSession(): AuthState | null;
17
- declare function requireAuth(c?: Context): AuthUser;
18
- declare function getServerSession(req?: Request): Promise<AuthSession | null>;
14
+ export declare function authMiddleware(): MiddlewareHandler;
15
+ export declare function getUser(): AuthUser | null;
16
+ export declare function getSession(): AuthState | null;
17
+ export declare function requireAuth(c?: Context): AuthUser;
18
+ export declare function getServerSession(req?: Request): Promise<AuthSession | null>;
19
19
  //#endregion
20
- export { type AuthSession, type AuthState, type AuthUser, authMiddleware, createAuthHandler, defineAuth, getServerSession, getSession, getUser, requireAuth, resolveAuthOptions };
20
+ export { type AuthSession, type AuthState, type AuthUser, defineAuth, resolveAuthOptions };
package/dist/vite.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { d as UbeanAuthOptions } from "./types-DlL9lr7A.js";
2
2
  import { Plugin } from "vite";
3
3
  //#region src/vite.d.ts
4
- declare function ubeanAuthPlugin(userOptions?: UbeanAuthOptions): Plugin;
5
- declare function defineAuthConfig(options: UbeanAuthOptions): UbeanAuthOptions;
4
+ export declare function ubeanAuthPlugin(userOptions?: UbeanAuthOptions): Plugin;
5
+ export declare function defineAuthConfig(options: UbeanAuthOptions): UbeanAuthOptions;
6
6
  //#endregion
7
- export { ubeanAuthPlugin as default, ubeanAuthPlugin, defineAuthConfig };
7
+ export { ubeanAuthPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubean/auth",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "Better Auth integration for ubean framework",
5
5
  "files": [
6
6
  "dist"
@@ -28,16 +28,16 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@ubean/shared": "0.4.4",
31
+ "@ubean/shared": "0.4.6",
32
32
  "better-auth": "^1.7.3",
33
33
  "defu": "6.1.7"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^26.5.0",
37
37
  "hono": "4.13.7",
38
- "typescript": "7.0.2",
39
- "vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
40
- "vite-plus": "0.3.0",
38
+ "typescript": "npm:typescript-native-bridge@latest",
39
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.3.1",
40
+ "vite-plus": "0.3.1",
41
41
  "vue": "^3.5.42"
42
42
  },
43
43
  "peerDependencies": {