Skip to content

Commit

Permalink
Merge pull request #167 from tschaub/assign
Browse files Browse the repository at this point in the history
Require Node 4+
  • Loading branch information
tschaub authored May 6, 2017
2 parents 129d6bc + 061ba9b commit 5c4a5a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 1 addition & 9 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,7 @@ exports.publish = function publish(basePath, config, callback) {
logger: function() {}
};

// override defaults with any task options
// TODO: Require Node >= 4 and use Object.assign
var options = {};
for (var d in defaults) {
options[d] = defaults[d];
}
for (var c in config) {
options[c] = config[c];
}
var options = Object.assign({}, defaults, config);

function log(message) {
if (!options.silent) {
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"pretest": "eslint lib test bin/gh-pages",
"test": "mocha --recursive test"
},
"engines": {
"node": ">=4"
},
"dependencies": {
"async": "2.1.4",
"commander": "2.9.0",
Expand Down

0 comments on commit 5c4a5a1

Please sign in to comment.