@better-auth/stripe 1.4.0-beta.1 → 1.4.0-beta.11

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,23 @@
1
1
 
2
- > @better-auth/stripe@1.4.0-beta.1 build /home/runner/work/better-auth/better-auth/packages/stripe
3
- > unbuild
2
+ > @better-auth/stripe@1.4.0-beta.11 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: 45.3 kB, chunk size: 45.3 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: 44.5 kB, chunk size: 44.5 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): 227 kB
17
- [log]
5
+ ℹ tsdown v0.15.6 powered by rolldown v1.0.0-beta.43
6
+ ℹ Using tsdown config: /home/runner/work/better-auth/better-auth/packages/stripe/tsdown.config.ts
7
+ ℹ entry: src/client.ts, src/index.ts
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ [CJS] dist/index.cjs 37.82 kB │ gzip: 7.40 kB
11
+ ℹ [CJS] dist/client.cjs  0.28 kB │ gzip: 0.20 kB
12
+ ℹ [CJS] 2 files, total: 38.10 kB
13
+ ℹ [ESM] dist/index.js 35.57 kB │ gzip: 6.87 kB
14
+ ℹ [ESM] dist/client.js  0.26 kB │ gzip: 0.20 kB
15
+ ℹ [ESM] dist/client.d.ts  0.60 kB │ gzip: 0.33 kB
16
+ ℹ [ESM] dist/index.d.ts  0.12 kB │ gzip: 0.09 kB
17
+ ℹ [ESM] dist/index-CdfVTdD8.d.ts 38.01 kB │ gzip: 5.34 kB
18
+ ℹ [ESM] 5 files, total: 74.56 kB
19
+ ℹ [CJS] dist/client.d.cts  0.60 kB │ gzip: 0.33 kB
20
+ ℹ [CJS] dist/index.d.cts  0.12 kB │ gzip: 0.10 kB
21
+ ℹ [CJS] dist/index-a0PQPr0m.d.cts 38.01 kB │ gzip: 5.34 kB
22
+ ℹ [CJS] 3 files, total: 38.73 kB
23
+ ✔ Build complete in 6075ms
package/dist/client.cjs CHANGED
@@ -1,14 +1,15 @@
1
- 'use strict';
2
1
 
2
+ //#region src/client.ts
3
3
  const stripeClient = (options) => {
4
- return {
5
- id: "stripe-client",
6
- $InferServerPlugin: {},
7
- pathMethods: {
8
- "/subscription/restore": "POST",
9
- "/subscription/billing-portal": "POST"
10
- }
11
- };
4
+ return {
5
+ id: "stripe-client",
6
+ $InferServerPlugin: {},
7
+ pathMethods: {
8
+ "/subscription/restore": "POST",
9
+ "/subscription/billing-portal": "POST"
10
+ }
11
+ };
12
12
  };
13
13
 
14
- exports.stripeClient = stripeClient;
14
+ //#endregion
15
+ exports.stripeClient = stripeClient;
package/dist/client.d.cts CHANGED
@@ -1,28 +1,25 @@
1
- import { stripe } from './index.cjs';
2
- import 'better-auth';
3
- import 'better-call';
4
- import 'stripe';
5
- import 'zod/v4';
1
+ import { stripe } from "./index-a0PQPr0m.cjs";
6
2
 
3
+ //#region src/client.d.ts
7
4
  declare const stripeClient: <O extends {
8
- subscription: boolean;
5
+ subscription: boolean;
9
6
  }>(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";
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.d.ts CHANGED
@@ -1,28 +1,25 @@
1
- import { stripe } from './index.js';
2
- import 'better-auth';
3
- import 'better-call';
4
- import 'stripe';
5
- import 'zod/v4';
1
+ import { stripe } from "./index-CdfVTdD8.js";
6
2
 
3
+ //#region src/client.d.ts
7
4
  declare const stripeClient: <O extends {
8
- subscription: boolean;
5
+ subscription: boolean;
9
6
  }>(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";
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.js ADDED
@@ -0,0 +1,14 @@
1
+ //#region src/client.ts
2
+ const stripeClient = (options) => {
3
+ return {
4
+ id: "stripe-client",
5
+ $InferServerPlugin: {},
6
+ pathMethods: {
7
+ "/subscription/restore": "POST",
8
+ "/subscription/billing-portal": "POST"
9
+ }
10
+ };
11
+ };
12
+
13
+ //#endregion
14
+ export { stripeClient };