@better-auth/stripe 1.4.2-beta.1 → 1.4.2-beta.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.
@@ -1,16 +1,16 @@
1
1
 
2
- > @better-auth/stripe@1.4.2-beta.1 build /home/runner/work/better-auth/better-auth/packages/stripe
2
+ > @better-auth/stripe@1.4.2-beta.4 build /home/runner/work/better-auth/better-auth/packages/stripe
3
3
  > tsdown
4
4
 
5
- ℹ tsdown v0.16.5 powered by rolldown v1.0.0-beta.50
5
+ ℹ tsdown v0.16.6 powered by rolldown v1.0.0-beta.51
6
6
  ℹ Using tsdown config: /home/runner/work/better-auth/better-auth/packages/stripe/tsdown.config.ts
7
7
  ℹ entry: src/index.ts, src/client.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/index.mjs 37.60 kB │ gzip: 7.25 kB
10
+ ℹ dist/index.mjs 37.60 kB │ gzip: 7.24 kB
11
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 12185ms
12
+ ℹ dist/client.d.mts  0.62 kB │ gzip: 0.34 kB
13
+ ℹ dist/index.d.mts  0.21 kB │ gzip: 0.14 kB
14
+ ℹ dist/index-CaKRxghy.d.mts 26.05 kB │ gzip: 5.02 kB
15
+ ℹ 5 files, total: 64.74 kB
16
+ ✔ Build complete in 11836ms
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as stripe } from "./index-aXzLoFtK.mjs";
1
+ import { n as stripe } from "./index-CaKRxghy.mjs";
2
2
 
3
3
  //#region src/client.d.ts
4
4
  declare const stripeClient: <O extends {
@@ -804,4 +804,4 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
804
804
  };
805
805
  type StripePlugin<O extends StripeOptions> = ReturnType<typeof stripe<O>>;
806
806
  //#endregion
807
- export { Subscription as i, stripe as n, StripePlan as r, StripePlugin as t };
807
+ export { SubscriptionOptions as a, Subscription as i, stripe as n, StripePlan as r, StripePlugin as t };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as Subscription, n as stripe, r as StripePlan, t as StripePlugin } from "./index-aXzLoFtK.mjs";
2
- export { StripePlan, StripePlugin, Subscription, stripe };
1
+ import { a as SubscriptionOptions, i as Subscription, n as stripe, r as StripePlan, t as StripePlugin } from "./index-CaKRxghy.mjs";
2
+ export { StripePlan, StripePlugin, Subscription, SubscriptionOptions, stripe };
package/dist/index.mjs CHANGED
@@ -316,7 +316,7 @@ const stripe = (options) => {
316
316
  use: [
317
317
  sessionMiddleware,
318
318
  originCheck((c) => {
319
- return [c.body.successURL, c.body.cancelURL];
319
+ return [c.body.successUrl, c.body.cancelUrl];
320
320
  }),
321
321
  referenceMiddleware("upgrade-subscription")
322
322
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@better-auth/stripe",
3
3
  "author": "Bereket Engida",
4
- "version": "1.4.2-beta.1",
4
+ "version": "1.4.2-beta.4",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
7
7
  "license": "MIT",
@@ -49,15 +49,15 @@
49
49
  },
50
50
  "peerDependencies": {
51
51
  "stripe": "^18 || ^19 || ^20",
52
- "@better-auth/core": "1.4.2-beta.1",
53
- "better-auth": "1.4.2-beta.1"
52
+ "@better-auth/core": "1.4.2-beta.4",
53
+ "better-auth": "1.4.2-beta.4"
54
54
  },
55
55
  "devDependencies": {
56
56
  "better-call": "1.1.0",
57
57
  "stripe": "^20.0.0",
58
- "tsdown": "^0.16.0",
59
- "@better-auth/core": "1.4.2-beta.1",
60
- "better-auth": "1.4.2-beta.1"
58
+ "tsdown": "^0.16.6",
59
+ "@better-auth/core": "1.4.2-beta.4",
60
+ "better-auth": "1.4.2-beta.4"
61
61
  },
62
62
  "scripts": {
63
63
  "test": "vitest",
package/src/index.ts CHANGED
@@ -246,7 +246,7 @@ export const stripe = <O extends StripeOptions>(options: O) => {
246
246
  use: [
247
247
  sessionMiddleware,
248
248
  originCheck((c) => {
249
- return [c.body.successURL as string, c.body.cancelURL as string];
249
+ return [c.body.successUrl as string, c.body.cancelUrl as string];
250
250
  }),
251
251
  referenceMiddleware("upgrade-subscription"),
252
252
  ],
@@ -1509,4 +1509,4 @@ export type StripePlugin<O extends StripeOptions> = ReturnType<
1509
1509
  typeof stripe<O>
1510
1510
  >;
1511
1511
 
1512
- export type { Subscription, StripePlan };
1512
+ export type { Subscription, SubscriptionOptions, StripePlan };