From c327fc6dc3a78d1e40ebee92e8d2241b97b0dbdb Mon Sep 17 00:00:00 2001 From: Ahmad Bamieh Date: Mon, 13 Dec 2021 12:59:31 +0200 Subject: [PATCH] add node v14 support --- .node-version | 1 + .travis.yml | 1 + README.md | 2 +- lib/index.js | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .node-version diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..ed9f5a0 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +14.18.2 diff --git a/.travis.yml b/.travis.yml index 4555503..bf1ec4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ language: node_js node_js: - "10" + - "14" diff --git a/README.md b/README.md index d09c1b1..ff50282 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Simplifies writing unit tests for [AWS Lambda](https://aws.amazon.com/lambda/det * Lightweight and won't impact performance * Maps the environment variable `LAMBDA_TASK_ROOT` to the application's root * Automatically loads .env files -* Works with Node 10.x, and 12.x +* Works with Node 10.x, 12.x, and 14.x ## Installation Install via npm. diff --git a/lib/index.js b/lib/index.js index c5880b4..ab1f77d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,7 +14,7 @@ const config = require( './config' ); const DEFAULT_TIMEOUT = 0; -const SUPPORTED_NODE_RANGE = '10.0.0 - 10.999.0 || 12.0.0 - 12.999.0'; +const SUPPORTED_NODE_RANGE = '10.0.0 - 10.999.0 || 12.0.0 - 12.999.0 || 14.0.0 - 14.999.0'; var checkForHandleLeak = false;