@better-auth/stripe 1.4.0-beta.1 → 1.4.0-beta.11
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 +21 -15
- package/dist/client.cjs +11 -10
- package/dist/client.d.cts +20 -23
- package/dist/client.d.ts +20 -23
- package/dist/client.js +14 -0
- package/dist/index-CdfVTdD8.d.ts +1102 -0
- package/dist/index-a0PQPr0m.d.cts +1102 -0
- package/dist/index.cjs +912 -1323
- package/dist/index.d.cts +2 -1092
- package/dist/index.d.ts +2 -1092
- package/dist/index.js +908 -0
- package/package.json +15 -11
- package/src/hooks.ts +9 -9
- package/src/index.ts +167 -32
- package/src/schema.ts +3 -3
- package/src/stripe.test.ts +449 -0
- package/src/types.ts +2 -5
- package/tsconfig.json +4 -15
- package/tsdown.config.ts +8 -0
- package/build.config.ts +0 -12
- package/dist/client.d.mts +0 -28
- package/dist/client.mjs +0 -12
- package/dist/index.d.mts +0 -1092
- package/dist/index.mjs +0 -1333
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @better-auth/stripe@1.4.0-beta.
|
|
3
|
-
>
|
|
2
|
+
> @better-auth/stripe@1.4.0-beta.11 build /home/runner/work/better-auth/better-auth/packages/stripe
|
|
3
|
+
> tsdown
|
|
4
4
|
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
|
|
10
|
-
[
|
|
11
|
-
|
|
12
|
-
[
|
|
13
|
-
|
|
14
|
-
[
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[
|
|
5
|
+
[34mℹ[39m tsdown [2mv0.15.6[22m powered by rolldown [2mv1.0.0-beta.43[22m
|
|
6
|
+
[34mℹ[39m Using tsdown config: [4m/home/runner/work/better-auth/better-auth/packages/stripe/tsdown.config.ts[24m
|
|
7
|
+
[34mℹ[39m entry: [34msrc/client.ts, src/index.ts[39m
|
|
8
|
+
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
|
+
[34mℹ[39m Build start
|
|
10
|
+
[34mℹ[39m [33m[CJS][39m [2mdist/[22m[1mindex.cjs[22m [2m37.82 kB[22m [2m│ gzip: 7.40 kB[22m
|
|
11
|
+
[34mℹ[39m [33m[CJS][39m [2mdist/[22m[1mclient.cjs[22m [2m 0.28 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
12
|
+
[34mℹ[39m [33m[CJS][39m 2 files, total: 38.10 kB
|
|
13
|
+
[34mℹ[39m [34m[ESM][39m [2mdist/[22m[1mindex.js[22m [2m35.57 kB[22m [2m│ gzip: 6.87 kB[22m
|
|
14
|
+
[34mℹ[39m [34m[ESM][39m [2mdist/[22m[1mclient.js[22m [2m 0.26 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
15
|
+
[34mℹ[39m [34m[ESM][39m [2mdist/[22m[32m[1mclient.d.ts[22m[39m [2m 0.60 kB[22m [2m│ gzip: 0.33 kB[22m
|
|
16
|
+
[34mℹ[39m [34m[ESM][39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m 0.12 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
17
|
+
[34mℹ[39m [34m[ESM][39m [2mdist/[22m[32mindex-CdfVTdD8.d.ts[39m [2m38.01 kB[22m [2m│ gzip: 5.34 kB[22m
|
|
18
|
+
[34mℹ[39m [34m[ESM][39m 5 files, total: 74.56 kB
|
|
19
|
+
[34mℹ[39m [33m[CJS][39m [2mdist/[22m[32m[1mclient.d.cts[22m[39m [2m 0.60 kB[22m [2m│ gzip: 0.33 kB[22m
|
|
20
|
+
[34mℹ[39m [33m[CJS][39m [2mdist/[22m[32m[1mindex.d.cts[22m[39m [2m 0.12 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
21
|
+
[34mℹ[39m [33m[CJS][39m [2mdist/[22m[32mindex-a0PQPr0m.d.cts[39m [2m38.01 kB[22m [2m│ gzip: 5.34 kB[22m
|
|
22
|
+
[34mℹ[39m [33m[CJS][39m 3 files, total: 38.73 kB
|
|
23
|
+
[32m✔[39m Build complete in [32m6075ms[39m
|
package/dist/client.cjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
'use strict';
|
|
2
1
|
|
|
2
|
+
//#region src/client.ts
|
|
3
3
|
const stripeClient = (options) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
return {
|
|
5
|
+
id: "stripe-client",
|
|
6
|
+
$InferServerPlugin: {},
|
|
7
|
+
pathMethods: {
|
|
8
|
+
"/subscription/restore": "POST",
|
|
9
|
+
"/subscription/billing-portal": "POST"
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.stripeClient = stripeClient;
|
package/dist/client.d.cts
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import { stripe } from
|
|
2
|
-
import 'better-auth';
|
|
3
|
-
import 'better-call';
|
|
4
|
-
import 'stripe';
|
|
5
|
-
import 'zod/v4';
|
|
1
|
+
import { stripe } from "./index-a0PQPr0m.cjs";
|
|
6
2
|
|
|
3
|
+
//#region src/client.d.ts
|
|
7
4
|
declare const stripeClient: <O extends {
|
|
8
|
-
|
|
5
|
+
subscription: boolean;
|
|
9
6
|
}>(options?: O) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
} : {
|
|
19
|
-
stripeClient: any;
|
|
20
|
-
stripeWebhookSecret: string;
|
|
21
|
-
}>>;
|
|
22
|
-
pathMethods: {
|
|
23
|
-
"/subscription/restore": "POST";
|
|
24
|
-
"/subscription/billing-portal": "POST";
|
|
7
|
+
id: "stripe-client";
|
|
8
|
+
$InferServerPlugin: ReturnType<typeof stripe<O["subscription"] extends true ? {
|
|
9
|
+
stripeClient: any;
|
|
10
|
+
stripeWebhookSecret: string;
|
|
11
|
+
subscription: {
|
|
12
|
+
enabled: true;
|
|
13
|
+
plans: [];
|
|
25
14
|
};
|
|
15
|
+
} : {
|
|
16
|
+
stripeClient: any;
|
|
17
|
+
stripeWebhookSecret: string;
|
|
18
|
+
}>>;
|
|
19
|
+
pathMethods: {
|
|
20
|
+
"/subscription/restore": "POST";
|
|
21
|
+
"/subscription/billing-portal": "POST";
|
|
22
|
+
};
|
|
26
23
|
};
|
|
27
|
-
|
|
28
|
-
export { stripeClient };
|
|
24
|
+
//#endregion
|
|
25
|
+
export { stripeClient };
|
package/dist/client.d.ts
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import { stripe } from
|
|
2
|
-
import 'better-auth';
|
|
3
|
-
import 'better-call';
|
|
4
|
-
import 'stripe';
|
|
5
|
-
import 'zod/v4';
|
|
1
|
+
import { stripe } from "./index-CdfVTdD8.js";
|
|
6
2
|
|
|
3
|
+
//#region src/client.d.ts
|
|
7
4
|
declare const stripeClient: <O extends {
|
|
8
|
-
|
|
5
|
+
subscription: boolean;
|
|
9
6
|
}>(options?: O) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
} : {
|
|
19
|
-
stripeClient: any;
|
|
20
|
-
stripeWebhookSecret: string;
|
|
21
|
-
}>>;
|
|
22
|
-
pathMethods: {
|
|
23
|
-
"/subscription/restore": "POST";
|
|
24
|
-
"/subscription/billing-portal": "POST";
|
|
7
|
+
id: "stripe-client";
|
|
8
|
+
$InferServerPlugin: ReturnType<typeof stripe<O["subscription"] extends true ? {
|
|
9
|
+
stripeClient: any;
|
|
10
|
+
stripeWebhookSecret: string;
|
|
11
|
+
subscription: {
|
|
12
|
+
enabled: true;
|
|
13
|
+
plans: [];
|
|
25
14
|
};
|
|
15
|
+
} : {
|
|
16
|
+
stripeClient: any;
|
|
17
|
+
stripeWebhookSecret: string;
|
|
18
|
+
}>>;
|
|
19
|
+
pathMethods: {
|
|
20
|
+
"/subscription/restore": "POST";
|
|
21
|
+
"/subscription/billing-portal": "POST";
|
|
22
|
+
};
|
|
26
23
|
};
|
|
27
|
-
|
|
28
|
-
export { stripeClient };
|
|
24
|
+
//#endregion
|
|
25
|
+
export { stripeClient };
|
package/dist/client.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/client.ts
|
|
2
|
+
const stripeClient = (options) => {
|
|
3
|
+
return {
|
|
4
|
+
id: "stripe-client",
|
|
5
|
+
$InferServerPlugin: {},
|
|
6
|
+
pathMethods: {
|
|
7
|
+
"/subscription/restore": "POST",
|
|
8
|
+
"/subscription/billing-portal": "POST"
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { stripeClient };
|