@mframework/adapter-betterauth 0.0.2 → 0.0.4

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/index.d.ts CHANGED
@@ -13,3 +13,13 @@ export * from './src/framework';
13
13
  export * from './src/registry';
14
14
  export * from './src/validation';
15
15
  export * from './src/config';
16
+ export * from 'better-auth/client/plugins';
17
+ export * from '@polar-sh/better-auth';
18
+ export * as BetterAuth from 'better-auth';
19
+ export { getAuthConfig } from './src/config';
20
+ export { getFrameworkContext } from './src/framework';
21
+ export type { AuthProvider } from './src/types';
22
+ export { registerAuthProvider } from './src/registry';
23
+ export { polarClient } from '@polar-sh/better-auth';
24
+ export { adminClient, inferAdditionalFields } from 'better-auth/client/plugins';
25
+ export { stripeClient } from '@better-auth/stripe/client';
package/dist/index.js CHANGED
@@ -19,3 +19,12 @@ export * from './src/framework';
19
19
  export * from './src/registry';
20
20
  export * from './src/validation';
21
21
  export * from './src/config';
22
+ export * from 'better-auth/client/plugins';
23
+ export * from '@polar-sh/better-auth';
24
+ export * as BetterAuth from 'better-auth';
25
+ export { getAuthConfig } from './src/config';
26
+ export { getFrameworkContext } from './src/framework';
27
+ export { registerAuthProvider } from './src/registry';
28
+ export { polarClient } from '@polar-sh/better-auth';
29
+ export { adminClient, inferAdditionalFields } from 'better-auth/client/plugins';
30
+ export { stripeClient } from '@better-auth/stripe/client';
package/package.json CHANGED
@@ -1,15 +1,9 @@
1
1
  {
2
2
  "name": "@mframework/adapter-betterauth",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Official Better-Auth adapter for M Framework Auth Layer",
5
5
  "main": "index.ts",
6
6
  "types": "module",
7
- "exports": {
8
- ".": {
9
- "import": "./src/index.ts",
10
- "types": "./src/types.d.ts"
11
- }
12
- },
13
7
  "scripts": {
14
8
  "test": "echo \"Error: no test specified\" && exit 1",
15
9
  "build": "tsc -p tsconfig.json",
@@ -19,7 +13,11 @@
19
13
  "keywords": [
20
14
  "meeovi",
21
15
  "adapter",
22
- "starter"
16
+ "authentication",
17
+ "better-auth",
18
+ "auth",
19
+ "typescript",
20
+ "m-framework"
23
21
  ],
24
22
  "author": "M Framework",
25
23
  "license": "MIT",
package/src/types.d.ts CHANGED
@@ -11,3 +11,8 @@ export { prisma, useDB, isValidTable } from '@mframework/api'
11
11
  export function getAuthPlugins(opts?: any): any[]
12
12
  export const BetterAuthProvider: any
13
13
  export default BetterAuthProvider
14
+
15
+ // Re-export the concrete types from the source `types.ts` so the package's
16
+ // declared `.d.ts` entry exposes `AuthProvider` and related interfaces to
17
+ // consumers importing from the package root.
18
+ export type { AuthProvider, AuthCredentials, AuthRegistration, AuthSession } from './types'