@better-auth/stripe 1.2.4-beta.2 → 1.2.4-beta.3
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 +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +2 -2
- package/src/index.ts +5 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @better-auth/stripe@1.2.4-beta.
|
|
2
|
+
> @better-auth/stripe@1.2.4-beta.3 build /home/runner/work/better-auth/better-auth/packages/stripe
|
|
3
3
|
> unbuild
|
|
4
4
|
|
|
5
5
|
[info] Automatically detected entries: src/index, src/client [esm] [cjs] [dts]
|
package/dist/index.cjs
CHANGED
|
@@ -851,7 +851,11 @@ const stripe = (options) => {
|
|
|
851
851
|
message: "Stripe webhook secret not found"
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
|
-
event = client.webhooks.
|
|
854
|
+
event = await client.webhooks.constructEventAsync(
|
|
855
|
+
buf,
|
|
856
|
+
sig,
|
|
857
|
+
webhookSecret
|
|
858
|
+
);
|
|
855
859
|
} catch (err) {
|
|
856
860
|
ctx.context.logger.error(`${err.message}`);
|
|
857
861
|
throw new api.APIError("BAD_REQUEST", {
|
package/dist/index.mjs
CHANGED
|
@@ -849,7 +849,11 @@ const stripe = (options) => {
|
|
|
849
849
|
message: "Stripe webhook secret not found"
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
|
-
event = client.webhooks.
|
|
852
|
+
event = await client.webhooks.constructEventAsync(
|
|
853
|
+
buf,
|
|
854
|
+
sig,
|
|
855
|
+
webhookSecret
|
|
856
|
+
);
|
|
853
857
|
} catch (err) {
|
|
854
858
|
ctx.context.logger.error(`${err.message}`);
|
|
855
859
|
throw new APIError("BAD_REQUEST", {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/stripe",
|
|
3
3
|
"author": "Bereket Engida",
|
|
4
|
-
"version": "1.2.4-beta.
|
|
4
|
+
"version": "1.2.4-beta.3",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"zod": "^3.24.1",
|
|
38
|
-
"better-auth": "^1.2.4-beta.
|
|
38
|
+
"better-auth": "^1.2.4-beta.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/better-sqlite3": "^7.6.12",
|
package/src/index.ts
CHANGED
|
@@ -696,7 +696,11 @@ export const stripe = <O extends StripeOptions>(options: O) => {
|
|
|
696
696
|
message: "Stripe webhook secret not found",
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
|
-
event = client.webhooks.
|
|
699
|
+
event = await client.webhooks.constructEventAsync(
|
|
700
|
+
buf,
|
|
701
|
+
sig,
|
|
702
|
+
webhookSecret,
|
|
703
|
+
);
|
|
700
704
|
} catch (err: any) {
|
|
701
705
|
ctx.context.logger.error(`${err.message}`);
|
|
702
706
|
throw new APIError("BAD_REQUEST", {
|