File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @envoy/envoy-integrations-sdk" ,
3- "version" : " 2.4.0-beta.1 " ,
3+ "version" : " 2.4.0-beta.2 " ,
44 "description" : " SDK for building Envoy integrations." ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import EnvoyPluginAPI from './EnvoyPluginAPI';
1212/**
1313 * Options for configuring the Envoy middleware.
1414 */
15- export interface EnvoyMiddlewareOptions extends EnvoySignatureVerifierOptions {
15+ export interface EnvoyMiddlewareOptions extends Partial < EnvoySignatureVerifierOptions > {
1616 /** Optional custom client ID to use for API authentication instead of environment variable */
1717 customClientId ?: string ;
1818 /** Optional custom client secret to use for API authentication instead of environment variable */
@@ -29,7 +29,7 @@ export interface EnvoyMiddlewareOptions extends EnvoySignatureVerifierOptions {
2929 * @category Middleware
3030 */
3131export function envoyMiddleware ( options ?: EnvoyMiddlewareOptions ) : RequestHandler {
32- const signatureVerifier = new EnvoySignatureVerifier ( options ) ;
32+ const signatureVerifier = new EnvoySignatureVerifier ( options as EnvoySignatureVerifierOptions ) ;
3333 const verify = ( req : VerifiedRequest , res : Response , rawBody : Buffer ) => {
3434 req [ VERIFIED ] = signatureVerifier . verify ( req , rawBody ) ;
3535 } ;
You can’t perform that action at this time.
0 commit comments