From e6b74148ec5eb60eae83e13d7871641003ab3f00 Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 13 May 2022 09:18:46 -0400 Subject: [PATCH] Add support for nodejs16.x --- source/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/index.ts b/source/index.ts index cbfce35..d8e6577 100644 --- a/source/index.ts +++ b/source/index.ts @@ -7,7 +7,7 @@ import { join } from 'path'; import { PuppeteerNode, Viewport } from 'puppeteer-core'; import { URL } from 'url'; -if (/^AWS_Lambda_nodejs(?:10|12|14)[.]x$/.test(process.env.AWS_EXECUTION_ENV) === true) { +if (/^AWS_Lambda_nodejs(?:10|12|14|16)[.]x$/.test(process.env.AWS_EXECUTION_ENV) === true) { if (process.env.FONTCONFIG_PATH === undefined) { process.env.FONTCONFIG_PATH = '/tmp/aws'; } @@ -165,7 +165,7 @@ class Chromium { LambdaFS.inflate(`${input}/swiftshader.tar.br`), ]; - if (/^AWS_Lambda_nodejs(?:10|12|14)[.]x$/.test(process.env.AWS_EXECUTION_ENV) === true) { + if (/^AWS_Lambda_nodejs(?:10|12|14|16)[.]x$/.test(process.env.AWS_EXECUTION_ENV) === true) { promises.push(LambdaFS.inflate(`${input}/aws.tar.br`)); }