@better-auth/stripe 1.4.10-beta.1 → 1.4.11-beta.1

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,5 +1,5 @@
1
1
 
2
- > @better-auth/stripe@1.4.10-beta.1 build /home/runner/work/better-auth/better-auth/packages/stripe
2
+ > @better-auth/stripe@1.4.11-beta.1 build /home/runner/work/better-auth/better-auth/packages/stripe
3
3
  > tsdown
4
4
 
5
5
  ℹ tsdown v0.17.2 powered by rolldown v1.0.0-beta.53
@@ -7,11 +7,10 @@
7
7
  ℹ entry: src/index.ts, src/client.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/index.mjs 40.12 kB │ gzip: 7.63 kB
11
- ℹ dist/client.mjs  0.35 kB │ gzip: 0.25 kB
12
- ℹ dist/error-codes-qqooUh6R.mjs  0.72 kB │ gzip: 0.42 kB
13
- ℹ dist/client.d.mts  2.97 kB │ gzip: 0.79 kB
14
- ℹ dist/index.d.mts  0.21 kB │ gzip: 0.14 kB
15
- ℹ dist/index-DpiQGYLJ.d.mts 25.42 kB │ gzip: 4.88 kB
16
- ℹ 6 files, total: 69.80 kB
17
- ✔ Build complete in 16515ms
10
+ ℹ dist/index.mjs 57.62 kB │ gzip: 10.51 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.21 kB │ gzip: 0.14 kB
14
+ ℹ dist/index-CkO4CTbB.d.mts 28.52 kB │ gzip: 5.03 kB
15
+ ℹ 5 files, total: 87.24 kB
16
+ ✔ Build complete in 27064ms
package/dist/client.d.mts CHANGED
@@ -1,41 +1,5 @@
1
- import { n as stripe } from "./index-DpiQGYLJ.mjs";
1
+ import { n as stripe } from "./index-CkO4CTbB.mjs";
2
2
 
3
- //#region src/error-codes.d.ts
4
- declare const STRIPE_ERROR_CODES: {
5
- readonly SUBSCRIPTION_NOT_FOUND: {
6
- code: "SUBSCRIPTION_NOT_FOUND";
7
- message: "Subscription not found";
8
- };
9
- readonly SUBSCRIPTION_PLAN_NOT_FOUND: {
10
- code: "SUBSCRIPTION_PLAN_NOT_FOUND";
11
- message: "Subscription plan not found";
12
- };
13
- readonly ALREADY_SUBSCRIBED_PLAN: {
14
- code: "ALREADY_SUBSCRIBED_PLAN";
15
- message: "You're already subscribed to this plan";
16
- };
17
- readonly UNABLE_TO_CREATE_CUSTOMER: {
18
- code: "UNABLE_TO_CREATE_CUSTOMER";
19
- message: "Unable to create customer";
20
- };
21
- readonly FAILED_TO_FETCH_PLANS: {
22
- code: "FAILED_TO_FETCH_PLANS";
23
- message: "Failed to fetch plans";
24
- };
25
- readonly EMAIL_VERIFICATION_REQUIRED: {
26
- code: "EMAIL_VERIFICATION_REQUIRED";
27
- message: "Email verification is required before you can subscribe to a plan";
28
- };
29
- readonly SUBSCRIPTION_NOT_ACTIVE: {
30
- code: "SUBSCRIPTION_NOT_ACTIVE";
31
- message: "Subscription is not active";
32
- };
33
- readonly SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION: {
34
- code: "SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION";
35
- message: "Subscription is not scheduled for cancellation";
36
- };
37
- };
38
- //#endregion
39
3
  //#region src/client.d.ts
40
4
  declare const stripeClient: <O extends {
41
5
  subscription: boolean;
@@ -54,41 +18,8 @@ declare const stripeClient: <O extends {
54
18
  }>>;
55
19
  pathMethods: {
56
20
  "/subscription/billing-portal": "POST";
57
- };
58
- $ERROR_CODES: {
59
- readonly SUBSCRIPTION_NOT_FOUND: {
60
- code: "SUBSCRIPTION_NOT_FOUND";
61
- message: "Subscription not found";
62
- };
63
- readonly SUBSCRIPTION_PLAN_NOT_FOUND: {
64
- code: "SUBSCRIPTION_PLAN_NOT_FOUND";
65
- message: "Subscription plan not found";
66
- };
67
- readonly ALREADY_SUBSCRIBED_PLAN: {
68
- code: "ALREADY_SUBSCRIBED_PLAN";
69
- message: "You're already subscribed to this plan";
70
- };
71
- readonly UNABLE_TO_CREATE_CUSTOMER: {
72
- code: "UNABLE_TO_CREATE_CUSTOMER";
73
- message: "Unable to create customer";
74
- };
75
- readonly FAILED_TO_FETCH_PLANS: {
76
- code: "FAILED_TO_FETCH_PLANS";
77
- message: "Failed to fetch plans";
78
- };
79
- readonly EMAIL_VERIFICATION_REQUIRED: {
80
- code: "EMAIL_VERIFICATION_REQUIRED";
81
- message: "Email verification is required before you can subscribe to a plan";
82
- };
83
- readonly SUBSCRIPTION_NOT_ACTIVE: {
84
- code: "SUBSCRIPTION_NOT_ACTIVE";
85
- message: "Subscription is not active";
86
- };
87
- readonly SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION: {
88
- code: "SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION";
89
- message: "Subscription is not scheduled for cancellation";
90
- };
21
+ "/subscription/restore": "POST";
91
22
  };
92
23
  };
93
24
  //#endregion
94
- export { STRIPE_ERROR_CODES, stripeClient };
25
+ export { stripeClient };
package/dist/client.mjs CHANGED
@@ -1,14 +1,14 @@
1
- import { t as STRIPE_ERROR_CODES } from "./error-codes-qqooUh6R.mjs";
2
-
3
1
  //#region src/client.ts
4
2
  const stripeClient = (options) => {
5
3
  return {
6
4
  id: "stripe-client",
7
5
  $InferServerPlugin: {},
8
- pathMethods: { "/subscription/billing-portal": "POST" },
9
- $ERROR_CODES: STRIPE_ERROR_CODES
6
+ pathMethods: {
7
+ "/subscription/billing-portal": "POST",
8
+ "/subscription/restore": "POST"
9
+ }
10
10
  };
11
11
  };
12
12
 
13
13
  //#endregion
14
- export { STRIPE_ERROR_CODES, stripeClient };
14
+ export { stripeClient };