diff --git a/source/helper.ts b/source/helper.ts index c7fe1c8..2d68cdb 100644 --- a/source/helper.ts +++ b/source/helper.ts @@ -41,7 +41,7 @@ export const isRunningInAwsLambda = () => { export const isRunningInAwsLambdaNode20 = () => { if ( process.env["AWS_EXECUTION_ENV"] && - process.env["AWS_EXECUTION_ENV"].contains("nodejs20.x") + process.env["AWS_EXECUTION_ENV"].includes("nodejs20.x") ) { return true; }