@better-auth/stripe 1.4.0-beta.8 → 1.4.0

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,17 +1,16 @@
1
1
 
2
- > @better-auth/stripe@1.4.0-beta.8 build /home/runner/work/better-auth/better-auth/packages/stripe
3
- > unbuild
2
+ > @better-auth/stripe@1.4.0 build /home/runner/work/better-auth/better-auth/packages/stripe
3
+ > tsdown
4
4
 
5
- [info] Automatically detected entries: src/index, src/client [esm] [cjs] [dts]
6
- [info] Building stripe
7
- [success] Build succeeded for stripe
8
- [log] dist/index.cjs (total size: 49.2 kB, chunk size: 49.2 kB, exports: stripe)
9
-
10
- [log] dist/client.cjs (total size: 270 B, chunk size: 270 B, exports: stripeClient)
11
-
12
- [log] dist/index.mjs (total size: 48.3 kB, chunk size: 48.3 kB, exports: stripe)
13
-
14
- [log] dist/client.mjs (total size: 243 B, chunk size: 243 B, exports: stripeClient)
15
-
16
- Σ Total dist size (byte size): 236 kB
17
- [log]
5
+ ℹ tsdown v0.16.5 powered by rolldown v1.0.0-beta.50
6
+ ℹ Using tsdown config: /home/runner/work/better-auth/better-auth/packages/stripe/tsdown.config.ts
7
+ ℹ entry: src/index.ts, src/client.ts
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ dist/index.mjs 37.60 kB │ gzip: 7.25 kB
11
+ ℹ dist/client.mjs  0.26 kB │ gzip: 0.20 kB
12
+ ℹ dist/client.d.mts  0.62 kB │ gzip: 0.35 kB
13
+ ℹ dist/index.d.mts  0.17 kB │ gzip: 0.13 kB
14
+ ℹ dist/index-aXzLoFtK.d.mts 26.02 kB │ gzip: 5.01 kB
15
+ ℹ 5 files, total: 64.67 kB
16
+ ✔ Build complete in 11421ms
package/dist/client.d.mts CHANGED
@@ -1,28 +1,25 @@
1
- import { stripe } from './index.mjs';
2
- import 'better-auth';
3
- import 'better-call';
4
- import 'stripe';
5
- import 'zod/v4';
1
+ import { n as stripe } from "./index-aXzLoFtK.mjs";
6
2
 
3
+ //#region src/client.d.ts
7
4
  declare const stripeClient: <O extends {
8
- subscription: boolean;
9
- }>(options?: O) => {
10
- id: "stripe-client";
11
- $InferServerPlugin: ReturnType<typeof stripe<O["subscription"] extends true ? {
12
- stripeClient: any;
13
- stripeWebhookSecret: string;
14
- subscription: {
15
- enabled: true;
16
- plans: [];
17
- };
18
- } : {
19
- stripeClient: any;
20
- stripeWebhookSecret: string;
21
- }>>;
22
- pathMethods: {
23
- "/subscription/restore": "POST";
24
- "/subscription/billing-portal": "POST";
5
+ subscription: boolean;
6
+ }>(options?: O | undefined) => {
7
+ id: "stripe-client";
8
+ $InferServerPlugin: ReturnType<typeof stripe<O["subscription"] extends true ? {
9
+ stripeClient: any;
10
+ stripeWebhookSecret: string;
11
+ subscription: {
12
+ enabled: true;
13
+ plans: [];
25
14
  };
15
+ } : {
16
+ stripeClient: any;
17
+ stripeWebhookSecret: string;
18
+ }>>;
19
+ pathMethods: {
20
+ "/subscription/restore": "POST";
21
+ "/subscription/billing-portal": "POST";
22
+ };
26
23
  };
27
-
28
- export { stripeClient };
24
+ //#endregion
25
+ export { stripeClient };
package/dist/client.mjs CHANGED
@@ -1,12 +1,14 @@
1
+ //#region src/client.ts
1
2
  const stripeClient = (options) => {
2
- return {
3
- id: "stripe-client",
4
- $InferServerPlugin: {},
5
- pathMethods: {
6
- "/subscription/restore": "POST",
7
- "/subscription/billing-portal": "POST"
8
- }
9
- };
3
+ return {
4
+ id: "stripe-client",
5
+ $InferServerPlugin: {},
6
+ pathMethods: {
7
+ "/subscription/restore": "POST",
8
+ "/subscription/billing-portal": "POST"
9
+ }
10
+ };
10
11
  };
11
12
 
12
- export { stripeClient };
13
+ //#endregion
14
+ export { stripeClient };