lambda-tester
Advanced tools
Comparing version
# Change Log | ||
## 3.4.0 (2018-04-20) | ||
Updated: | ||
* Improved version checking using `semver`. Thanks @AlexHankins @wheresrhys | ||
Fixed: | ||
* `package.json` engines to include node 8.x. Thanks @zanzamar | ||
## 3.3.0 (2018-04-03) | ||
@@ -4,0 +14,0 @@ |
# Node.js Version Verification | ||
The default behavior of `lambda-tester` is to verify the version of the Node.js environment to ensure compatibility with the AWS Lambda | ||
runtime. Node.js versions of `6.10.x` and higher up to `7.0.0` are allowed. | ||
runtime. Node.js versions of `6.10` and higher up to `8.10` are allowed. | ||
@@ -6,0 +6,0 @@ ## To disable version Verification |
@@ -17,3 +17,3 @@ # lambda-tester | ||
* Automatically loads .env files | ||
* Works with Node 6.10.x | ||
* Works with Node 6.10 and 8.10 | ||
@@ -43,3 +43,3 @@ ## Table of Contents | ||
Version 3.x targets Lambda handlers using Node 6.10.x. If you require support for Node 4.x, please use version 2.x | ||
Version 3 targets Lambda handlers using Node 6.10 and 8.10. If you require support for Node 4.x, please use version 2 | ||
@@ -46,0 +46,0 @@ |
'use strict'; | ||
const semver = require('semver') | ||
const LambdaRunner = require( './runner' ); | ||
@@ -11,3 +13,3 @@ | ||
const TARGET_NODE_VERSION = '6.10.1'; | ||
const SUPPORTED_NODE_RANGE = '6.10.1 - 8.10.0'; | ||
@@ -27,10 +29,6 @@ var checkForHandleLeak = false; | ||
if( process.versions.node < TARGET_NODE_VERSION ) { | ||
if( !semver.satisfies( process.versions.node, SUPPORTED_NODE_RANGE ) ) { | ||
throw new Error( 'Please test with node.js >= ' + TARGET_NODE_VERSION ); | ||
throw new Error( 'Please test with node.js versions: ' + SUPPORTED_NODE_RANGE ); | ||
} | ||
else if ( process.versions.node >= '8.11.0' ) { | ||
throw new Error( 'node.js version is not currently supported, please test with an older version.' ); | ||
} | ||
} | ||
@@ -37,0 +35,0 @@ |
{ | ||
"name": "lambda-tester", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "Unit/Integration tests for AWS Lambda handlers", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": ">=6.0.0 <7.0.0" | ||
"node": "^6.0.0, ^8.0.0" | ||
}, | ||
@@ -47,3 +47,3 @@ "repository": { | ||
"aws-xray-sdk-core": "^1.1.1", | ||
"bluebird": "^3.5.0", | ||
"bluebird": "^3.5.1", | ||
"chai": "^4.1.2", | ||
@@ -61,2 +61,3 @@ "freshy": "^1.0.2", | ||
"lambda-leak": "^2.0.0", | ||
"semver": "^5.5.0", | ||
"uuid": "^3.0.1", | ||
@@ -63,0 +64,0 @@ "vandium-utils": "^1.1.1" |
@@ -20,3 +20,3 @@ [](https://travis-ci.org/vandium-io/lambda-tester) | ||
* Automatically loads .env files | ||
* Works with Node 6.10.x | ||
* Works with Node 6.10 and 8.10 | ||
@@ -95,3 +95,3 @@ ## Installation | ||
Version 3.x targets Lambda handlers using Node 6.10.x. If you require support for Node 4.x, please use version 2.x | ||
Version 3 targets Lambda handlers using Node 6.10 and 8.10. If you require support for Node 4.x, please use version 2.x | ||
@@ -98,0 +98,0 @@ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
100632
-0.25%7
16.67%28
-3.45%547
-0.36%+ Added
+ Added