@better-auth/stripe 1.4.0-beta.25 → 1.4.0-beta.27
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @better-auth/stripe@1.4.0-beta.
|
|
2
|
+
> @better-auth/stripe@1.4.0-beta.27 build /home/runner/work/better-auth/better-auth/packages/stripe
|
|
3
3
|
> tsdown
|
|
4
4
|
|
|
5
5
|
[34mℹ[39m tsdown [2mv0.16.5[22m powered by rolldown [2mv1.0.0-beta.50[22m
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
[34mℹ[39m entry: [34msrc/index.ts, src/client.ts[39m
|
|
8
8
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
|
-
[34mℹ[39m [2mdist/[22m[1mindex.mjs[22m [2m37.
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mindex.mjs[22m [2m37.60 kB[22m [2m│ gzip: 7.25 kB[22m
|
|
11
11
|
[34mℹ[39m [2mdist/[22m[1mclient.mjs[22m [2m 0.26 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[32m[1mclient.d.mts[22m[39m [2m 0.62 kB[22m [2m│ gzip: 0.
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[32m[1mclient.d.mts[22m[39m [2m 0.62 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.mts[22m[39m [2m 0.17 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
14
|
-
[34mℹ[39m [2mdist/[22m[32mindex-
|
|
15
|
-
[34mℹ[39m 5 files, total: 64.
|
|
16
|
-
[32m✔[39m Build complete in [
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[32mindex-aXzLoFtK.d.mts[39m [2m26.02 kB[22m [2m│ gzip: 5.01 kB[22m
|
|
15
|
+
[34mℹ[39m 5 files, total: 64.67 kB
|
|
16
|
+
[32m✔[39m Build complete in [32m11950ms[39m
|
package/dist/client.d.mts
CHANGED
|
@@ -366,7 +366,7 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
366
366
|
stripeWebhook: better_call0.StrictEndpoint<"/stripe/webhook", {
|
|
367
367
|
method: "POST";
|
|
368
368
|
metadata: {
|
|
369
|
-
isAction:
|
|
369
|
+
isAction: false;
|
|
370
370
|
openapi: {
|
|
371
371
|
operationId: string;
|
|
372
372
|
};
|
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-
|
|
1
|
+
import { i as Subscription, n as stripe, r as StripePlan, t as StripePlugin } from "./index-aXzLoFtK.mjs";
|
|
2
2
|
export { StripePlan, StripePlugin, Subscription, stripe };
|
package/dist/index.mjs
CHANGED
|
@@ -633,7 +633,7 @@ const stripe = (options) => {
|
|
|
633
633
|
* incase we missed the event from stripe, we set it manually
|
|
634
634
|
* this is a rare case and should not happen
|
|
635
635
|
*/
|
|
636
|
-
if (!subscription.cancelAtPeriodEnd) await ctx.context.adapter.
|
|
636
|
+
if (!subscription.cancelAtPeriodEnd) await ctx.context.adapter.updateMany({
|
|
637
637
|
model: "subscription",
|
|
638
638
|
update: { cancelAtPeriodEnd: true },
|
|
639
639
|
where: [{
|
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.0-beta.
|
|
4
|
+
"version": "1.4.0-beta.27",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"zod": "^4.1.12"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"stripe": "^18 || ^19",
|
|
52
|
-
"@better-auth/core": "1.4.0-beta.
|
|
53
|
-
"better-auth": "1.4.0-beta.
|
|
51
|
+
"stripe": "^18 || ^19 || ^20",
|
|
52
|
+
"@better-auth/core": "1.4.0-beta.27",
|
|
53
|
+
"better-auth": "1.4.0-beta.27"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"better-call": "1.0
|
|
57
|
-
"stripe": "^
|
|
56
|
+
"better-call": "1.1.0",
|
|
57
|
+
"stripe": "^20.0.0",
|
|
58
58
|
"tsdown": "^0.16.0",
|
|
59
|
-
"@better-auth/core": "1.4.0-beta.
|
|
60
|
-
"better-auth": "1.4.0-beta.
|
|
59
|
+
"@better-auth/core": "1.4.0-beta.27",
|
|
60
|
+
"better-auth": "1.4.0-beta.27"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"test": "vitest",
|
package/src/index.ts
CHANGED
|
@@ -858,7 +858,7 @@ export const stripe = <O extends StripeOptions>(options: O) => {
|
|
|
858
858
|
* this is a rare case and should not happen
|
|
859
859
|
*/
|
|
860
860
|
if (!subscription.cancelAtPeriodEnd) {
|
|
861
|
-
await ctx.context.adapter.
|
|
861
|
+
await ctx.context.adapter.updateMany({
|
|
862
862
|
model: "subscription",
|
|
863
863
|
update: {
|
|
864
864
|
cancelAtPeriodEnd: true,
|