Skip to content

Commit 0ab5e71

Browse files
authored
fix: deno & release (#149)
Deno fails with SubtleCryptoProvider - using the async method works for both Deno and Node - verified in Supabase Edge Function
1 parent 77af126 commit 0ab5e71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ jobs:
107107
pnpm pack
108108
npm publish --access public
109109
env:
110-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
110+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/sync-engine/src/stripeSync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class StripeSync {
6060
}
6161

6262
async processWebhook(payload: Buffer | string, signature: string | undefined) {
63-
const event = this.stripe.webhooks.constructEvent(
63+
const event = await this.stripe.webhooks.constructEventAsync(
6464
payload,
6565
signature!,
6666
this.config.stripeWebhookSecret

0 commit comments

Comments
 (0)