@better-auth/stripe 1.7.0-beta.3 → 1.7.0-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.
package/dist/client.d.mts
CHANGED
package/dist/client.mjs
CHANGED
|
@@ -356,7 +356,7 @@ type SubscriptionOptions = {
|
|
|
356
356
|
* @returns
|
|
357
357
|
*/
|
|
358
358
|
onSubscriptionCancel?: ((data: {
|
|
359
|
-
event
|
|
359
|
+
event: Stripe.Event;
|
|
360
360
|
stripeSubscription: Stripe.Subscription;
|
|
361
361
|
subscription: Subscription;
|
|
362
362
|
cancellationDetails?: Stripe.Subscription.CancellationDetails | null;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CheckoutSessionLocale, c as StripeOptions, d as SubscriptionOptions, f as WithActiveOrganizationId, i as CheckoutSessionLineItem, l as StripePlan, n as stripe, o as CustomerType, p as WithStripeCustomerId, r as AuthorizeReferenceAction, s as StripeCtxSession, t as StripePlugin, u as Subscription } from "./index-
|
|
1
|
+
import { a as CheckoutSessionLocale, c as StripeOptions, d as SubscriptionOptions, f as WithActiveOrganizationId, i as CheckoutSessionLineItem, l as StripePlan, n as stripe, o as CustomerType, p as WithStripeCustomerId, r as AuthorizeReferenceAction, s as StripeCtxSession, t as StripePlugin, u as Subscription } from "./index-DtTC1CXc.mjs";
|
|
2
2
|
export { AuthorizeReferenceAction, CheckoutSessionLineItem, CheckoutSessionLocale, CustomerType, StripeCtxSession, StripeOptions, StripePlan, StripePlugin, Subscription, SubscriptionOptions, WithActiveOrganizationId, WithStripeCustomerId, stripe };
|
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-B3kGcq8T.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";
|
|
@@ -91,13 +91,13 @@ function isStripePendingCancel(stripeSub) {
|
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* Escapes a value for use in Stripe search queries.
|
|
94
|
-
* Stripe search query uses
|
|
95
|
-
*
|
|
94
|
+
* Stripe search query uses backslash escaping inside double-quoted
|
|
95
|
+
* string values, so literal backslashes must be escaped before quotes.
|
|
96
96
|
*
|
|
97
97
|
* @see https://docs.stripe.com/search#search-query-language
|
|
98
98
|
*/
|
|
99
99
|
function escapeStripeSearchValue(value) {
|
|
100
|
-
return value.
|
|
100
|
+
return value.replaceAll("\\", "\\\\").replaceAll("\"", "\\\"");
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
103
|
* Resolve the quantity for a subscription by checking the seat item first,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/stripe",
|
|
3
|
-
"version": "1.7.0-beta.
|
|
3
|
+
"version": "1.7.0-beta.4",
|
|
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.3.5",
|
|
59
59
|
"stripe": "^22.0.1",
|
|
60
60
|
"tsdown": "0.21.1",
|
|
61
|
-
"@better-auth/core": "1.7.0-beta.
|
|
62
|
-
"better-auth": "1.7.0-beta.
|
|
61
|
+
"@better-auth/core": "1.7.0-beta.4",
|
|
62
|
+
"better-auth": "1.7.0-beta.4"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"better-call": "1.3.5",
|
|
66
66
|
"stripe": "^18 || ^19 || ^20 || ^21 || ^22",
|
|
67
|
-
"@better-auth/core": "^1.7.0-beta.
|
|
68
|
-
"better-auth": "^1.7.0-beta.
|
|
67
|
+
"@better-auth/core": "^1.7.0-beta.4",
|
|
68
|
+
"better-auth": "^1.7.0-beta.4"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown",
|