@better-auth/stripe 1.7.4 → 1.7.6
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/dist/client.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as STRIPE_ERROR_CODES, t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { n as STRIPE_ERROR_CODES, t as PACKAGE_VERSION } from "./version-D9uqqtwj.mjs";
|
|
2
2
|
import { APIError, HIDE_METADATA } from "better-auth";
|
|
3
3
|
import { defu } from "defu";
|
|
4
4
|
import { createAuthEndpoint, createAuthMiddleware } from "@better-auth/core/api";
|
|
@@ -1783,6 +1783,10 @@ const stripe = (options) => {
|
|
|
1783
1783
|
where: [{
|
|
1784
1784
|
field: "referenceId",
|
|
1785
1785
|
value: data.organization.id
|
|
1786
|
+
}, {
|
|
1787
|
+
field: "status",
|
|
1788
|
+
operator: "in",
|
|
1789
|
+
value: ["active", "trialing"]
|
|
1786
1790
|
}]
|
|
1787
1791
|
});
|
|
1788
1792
|
if (!dbSub?.stripeSubscriptionId || !isActiveOrTrialing(dbSub) || !seatPlanNames.has(dbSub.plan)) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/stripe",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.6",
|
|
4
4
|
"description": "Stripe plugin for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"better-call": "1.4.0",
|
|
59
59
|
"stripe": "^22.0.1",
|
|
60
60
|
"tsdown": "0.21.10",
|
|
61
|
-
"@better-auth/core": "1.7.
|
|
62
|
-
"better-auth": "1.7.
|
|
61
|
+
"@better-auth/core": "1.7.6",
|
|
62
|
+
"better-auth": "1.7.6"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"better-call": "1.4.0",
|
|
66
66
|
"stripe": "^18 || ^19 || ^20 || ^21 || ^22",
|
|
67
|
-
"@better-auth/core": "^1.7.
|
|
68
|
-
"better-auth": "^1.7.
|
|
67
|
+
"@better-auth/core": "^1.7.6",
|
|
68
|
+
"better-auth": "^1.7.6"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown",
|