Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

Commit

Permalink
build(nodejs): Add support for node.js version 4
Browse files Browse the repository at this point in the history
  • Loading branch information
birhoff committed Mar 15, 2017
1 parent 2abb912 commit fdf72b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ language: node_js

matrix:
include:
- node_js: "4"
- node_js: "6"
- node_js: "7"
env: COVERALLS=1
Expand Down
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const handlers = require('./handlers');
* @param {Boolean} [options.scope] - If true all nodes will be elements of root block.
* @returns {Function} transform function
*/
function transformFactory(tree, options = {}) {
function transformFactory(tree, options) {
options || (options = {});

transform.definition = definitions(tree, options);
transform.handlers = Object.assign({}, handlers);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"github-release": "conventional-github-releaser -p angular -r 0"
},
"engines": {
"node": ">= 6"
"node": ">= 4"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit fdf72b0

Please sign in to comment.