File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import { Webhooks } from "../api/resources/webhooks/client/Client" ;
2+ import { mergeHeaders , mergeOnlyDefinedHeaders } from "../core/headers.js" ;
23import crypto from "crypto" ;
34
45// Extends the namespace declared in the Fern generated client
@@ -16,7 +17,7 @@ declare module "../api/resources/webhooks/client/Client" {
1617}
1718
1819export class Client extends Webhooks {
19- constructor ( protected readonly _options : Webhooks . Options ) {
20+ constructor ( _options : Webhooks . Options ) {
2021 super ( _options ) ;
2122 }
2223
@@ -47,7 +48,6 @@ export class Client extends Webhooks {
4748 const encoder = new TextEncoder ( ) ;
4849
4950 // Encode the signingSecret key
50- // @ts -expect-error TS2339: Property 'subtle' does not exist on type 'typeof import("crypto")'.
5151 const key = await crypto . subtle . importKey (
5252 "raw" ,
5353 encoder . encode ( signingSecret ) ,
@@ -57,7 +57,6 @@ export class Client extends Webhooks {
5757 ) ;
5858
5959 // Encode the message and compute HMAC signature
60- // @ts -expect-error TS2339: Property 'subtle' does not exist on type 'typeof import("crypto")'.
6160 const signature = await crypto . subtle . sign ( "HMAC" , key , encoder . encode ( message ) ) ;
6261
6362 // Convert signature to hex string
You can’t perform that action at this time.
0 commit comments