@better-auth/expo 0.8.2-beta.2 → 0.8.2

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,6 +1,6 @@
1
1
 
2
2
  
3
- > @better-auth/expo@0.8.2-beta.1 build /Users/apple/Desktop/development/better-auth-2/packages/expo
3
+ > @better-auth/expo@0.8.2-beta.3 build /Users/apple/Desktop/development/better-auth-2/packages/expo
4
4
  > tsup --dts --minify --clean
5
5
 
6
6
  CLI Building entry: {"index":"src/index.ts","client":"src/client.ts"}
@@ -11,15 +11,15 @@
11
11
  CLI Cleaning output folder
12
12
  ESM Build start
13
13
  CJS Build start
14
- ESM dist/index.mjs 744.00 B
15
- ESM dist/client.mjs 2.32 KB
16
- ESM ⚡️ Build success in 13ms
17
- CJS dist/index.js 1.20 KB
18
14
  CJS dist/client.js 2.95 KB
19
- CJS ⚡️ Build success in 13ms
15
+ CJS dist/index.js 1.20 KB
16
+ CJS ⚡️ Build success in 11ms
17
+ ESM dist/client.mjs 2.32 KB
18
+ ESM dist/index.mjs 744.00 B
19
+ ESM ⚡️ Build success in 12ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 3650ms
22
- DTS dist/index.d.mts 688.00 B
21
+ DTS ⚡️ Build success in 3463ms
22
+ DTS dist/index.d.mts 111.00 B
23
23
  DTS dist/client.d.mts 3.96 KB
24
- DTS dist/index.d.ts 688.00 B
24
+ DTS dist/index.d.ts 111.00 B
25
25
  DTS dist/client.d.ts 3.96 KB
package/dist/index.d.mts CHANGED
@@ -1,25 +1,5 @@
1
- import * as better_auth from 'better-auth';
1
+ import { BetterAuthPlugin } from 'better-auth';
2
2
 
3
- declare const expo: () => {
4
- id: "expo";
5
- init: (ctx: better_auth.AuthContext) => {
6
- options: {
7
- trustedOrigins: string[] | undefined;
8
- };
9
- };
10
- onRequest(request: Request, ctx: better_auth.AuthContext): Promise<{
11
- request: Request;
12
- } | undefined>;
13
- hooks: {
14
- after: {
15
- matcher(context: better_auth.HookEndpointContext<{}>): boolean;
16
- handler: (ctx: better_auth.HookEndpointContext<{
17
- returned: unknown | Response;
18
- }>) => Promise<{
19
- response: Response;
20
- } | undefined>;
21
- }[];
22
- };
23
- };
3
+ declare const expo: () => BetterAuthPlugin;
24
4
 
25
5
  export { expo };
package/dist/index.d.ts CHANGED
@@ -1,25 +1,5 @@
1
- import * as better_auth from 'better-auth';
1
+ import { BetterAuthPlugin } from 'better-auth';
2
2
 
3
- declare const expo: () => {
4
- id: "expo";
5
- init: (ctx: better_auth.AuthContext) => {
6
- options: {
7
- trustedOrigins: string[] | undefined;
8
- };
9
- };
10
- onRequest(request: Request, ctx: better_auth.AuthContext): Promise<{
11
- request: Request;
12
- } | undefined>;
13
- hooks: {
14
- after: {
15
- matcher(context: better_auth.HookEndpointContext<{}>): boolean;
16
- handler: (ctx: better_auth.HookEndpointContext<{
17
- returned: unknown | Response;
18
- }>) => Promise<{
19
- response: Response;
20
- } | undefined>;
21
- }[];
22
- };
23
- };
3
+ declare const expo: () => BetterAuthPlugin;
24
4
 
25
5
  export { expo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/expo",
3
- "version": "0.8.2-beta.2",
3
+ "version": "0.8.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,12 +28,13 @@
28
28
  "expo-secure-store": "~13.0.2",
29
29
  "expo-web-browser": "~13.0.3",
30
30
  "vitest": "^1.6.0",
31
- "better-auth": "0.8.2-beta.2"
31
+ "better-auth": "0.8.2"
32
32
  },
33
33
  "peerDependencies": {
34
- "better-auth": "0.8.2-beta.2"
34
+ "better-auth": "0.8.2"
35
35
  },
36
36
  "dependencies": {
37
+ "better-call": "^0.2.14",
37
38
  "zod": "^3.23.8"
38
39
  },
39
40
  "scripts": {
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { BetterAuthPlugin } from "better-auth";
2
2
 
3
- export const expo = () => {
3
+ export const expo: () => BetterAuthPlugin = () => {
4
4
  return {
5
5
  id: "expo",
6
6
  init: (ctx) => {
@@ -68,5 +68,5 @@ export const expo = () => {
68
68
  },
69
69
  ],
70
70
  },
71
- } satisfies BetterAuthPlugin;
71
+ };
72
72
  };
package/tsup.config.ts CHANGED
@@ -9,5 +9,6 @@ export default defineConfig((env) => {
9
9
  format: ["esm", "cjs"],
10
10
  bundle: true,
11
11
  skipNodeModulesBundle: true,
12
+ external: ["better-call", "better-auth"],
12
13
  };
13
14
  });