Skip to content

Commit 7edb80d

Browse files
committed
Add Node.js 16.x pattern to environment check
1 parent dc66523 commit 7edb80d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
export default function isLambdaRuntimeEnvironment(): boolean {
2-
return ['AWS_Lambda_nodejs10.x', 'AWS_Lambda_nodejs12.x', 'AWS_Lambda_nodejs14.x'].includes(
3-
process.env.AWS_EXECUTION_ENV as string
4-
);
2+
return [
3+
'AWS_Lambda_nodejs10.x',
4+
'AWS_Lambda_nodejs12.x',
5+
'AWS_Lambda_nodejs14.x',
6+
'AWS_Lambda_nodejs16.x',
7+
].includes(process.env.AWS_EXECUTION_ENV as string);
58
}

0 commit comments

Comments
 (0)