Skip to content

Commit

Permalink
Enforce supported versions of node and npm
Browse files Browse the repository at this point in the history
This package uses node features which require node v6.x and higher.
Prior to this change the package would install but a user would
get runtime errors for constructs (e.g. class) which are not
natively supported in prior version of node.  For compatibility with
prior versions of npm < 3.0.0, included both the "engine-strict" and
"engineStrict" (deprecated) flags.

Fixes FAB-725

Change-Id: Ib7042ecdec51bdcfddbd6be23f69d5391519572d
Signed-off-by: Gari Singh <[email protected]>
  • Loading branch information
mastersingh24 committed Oct 23, 2016
1 parent 1fa6c27 commit 0dbf4a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"scripts": {
"test": "node test/unit/headless-tests.js"
},
"engines": {"node": ">=6.7.0","npm":">=3.0.0"},
"engine-strict": true,
"engineStrict": true,
"dependencies": {
"aes-js": "^1.0.0",
"asn1": "https://github.com/mcavage/node-asn1",
Expand Down

0 comments on commit 0dbf4a7

Please sign in to comment.