Skip to content

Commit

Permalink
Merge pull request #65 from ollnixon/main
Browse files Browse the repository at this point in the history
Support Node.js 18.x
  • Loading branch information
austinkelleher authored Feb 16, 2023
2 parents 43df5d2 + 189f950 commit 100f3c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install playwright-core playwright-aws-lambda --save

## Usage

This package works with the `nodejs10.x`, `nodejs12.x`, `nodejs14.x` and `nodejs16.x` AWS Lambda runtimes
This package works with the `nodejs10.x`, `nodejs12.x`, `nodejs14.x`, `nodejs16.x` and `nodejs18.x` AWS Lambda runtimes
out of the box.

```javascript
Expand Down
1 change: 1 addition & 0 deletions src/util/isLambdaRuntimeEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export default function isLambdaRuntimeEnvironment(): boolean {
'AWS_Lambda_nodejs12.x',
'AWS_Lambda_nodejs14.x',
'AWS_Lambda_nodejs16.x',
'AWS_Lambda_nodejs18.x',
].includes(process.env.AWS_EXECUTION_ENV as string);
}

0 comments on commit 100f3c6

Please sign in to comment.