@better-auth/stripe 1.5.0-beta.1 → 1.5.0-beta.10

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/tsdown.config.ts CHANGED
@@ -5,4 +5,5 @@ export default defineConfig({
5
5
  format: ["esm"],
6
6
  entry: ["./src/index.ts", "./src/client.ts"],
7
7
  external: ["better-auth", "better-call", "@better-fetch/fetch", "stripe"],
8
+ sourcemap: true,
8
9
  });
package/CHANGELOG.md DELETED
@@ -1,22 +0,0 @@
1
- # @better-auth/stripe
2
-
3
- ## 1.3.4
4
-
5
- ### Patch Changes
6
-
7
- - ac6baba: chore: fix typo on `freeTrial`
8
- - c2fb1aa: Fix duplicate trials when switching plans
9
- - 2bd2fa9: Added support for listing organization members with pagination, sorting, and filtering, and improved client inference for additional organization fields. Also fixed date handling in rate limits and tokens, improved Notion OAuth user extraction, and ensured session is always set in context.
10
-
11
- Organization
12
-
13
- - Added listMembers API with pagination, sorting, and filtering.
14
- - Added membersLimit param to getFullOrganization.
15
- - Improved client inference for additional fields in organization schemas.
16
- - Bug Fixes
17
- - Fixed date handling by casting DB values to Date objects before using date methods.
18
- - Fixed Notion OAuth to extract user info correctly.
19
- - Ensured session is set in context when reading from cookie cache
20
-
21
- - Updated dependencies [2bd2fa9]
22
- - better-auth@1.3.4
@@ -1,16 +0,0 @@
1
- import { defineErrorCodes } from "@better-auth/core/utils";
2
-
3
- //#region src/error-codes.ts
4
- const STRIPE_ERROR_CODES = defineErrorCodes({
5
- SUBSCRIPTION_NOT_FOUND: "Subscription not found",
6
- SUBSCRIPTION_PLAN_NOT_FOUND: "Subscription plan not found",
7
- ALREADY_SUBSCRIBED_PLAN: "You're already subscribed to this plan",
8
- UNABLE_TO_CREATE_CUSTOMER: "Unable to create customer",
9
- FAILED_TO_FETCH_PLANS: "Failed to fetch plans",
10
- EMAIL_VERIFICATION_REQUIRED: "Email verification is required before you can subscribe to a plan",
11
- SUBSCRIPTION_NOT_ACTIVE: "Subscription is not active",
12
- SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION: "Subscription is not scheduled for cancellation"
13
- });
14
-
15
- //#endregion
16
- export { STRIPE_ERROR_CODES as t };