diff --git a/src/adapter/aws-lambda/handler.ts b/src/adapter/aws-lambda/handler.ts index 6ee9c429f..a6170d7a4 100644 --- a/src/adapter/aws-lambda/handler.ts +++ b/src/adapter/aws-lambda/handler.ts @@ -473,11 +473,11 @@ export const getProcessor = (event: LambdaEvent): EventProcessor => } const isProxyEventALB = (event: LambdaEvent): event is ALBProxyEvent => { - return Object.prototype.hasOwnProperty.call(event.requestContext, 'elb') + return Object.hasOwn(event.requestContext, 'elb') } const isProxyEventV2 = (event: LambdaEvent): event is APIGatewayProxyEventV2 => { - return Object.prototype.hasOwnProperty.call(event, 'rawPath') + return Object.hasOwn(event, 'rawPath') } export const isContentTypeBinary = (contentType: string) => {