From c683d755459140f69b017c0f57b5c719df37ac8c Mon Sep 17 00:00:00 2001 From: Sparticuz Date: Thu, 16 Nov 2023 12:46:16 -0500 Subject: [PATCH] includes not contains... --- source/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }