Skip to content

Commit

Permalink
reduce node.js version (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jun 23, 2016
1 parent cdff5bd commit 5e78faf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# 1.0.3

* reduce node required 4.3 -> 0.10.43
7 changes: 7 additions & 0 deletions configfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,17 @@ function get_path_to_config_dir () {
}

if (process.env.NODE_ENV === 'test') {
// loaded by haraka-config/test/*
cfreader.config_path = path.join(__dirname, 'test', 'config');
return;
}

if (/node_modules\/haraka-config$/.test(__dirname)) {
// loaded by a npm packaged module
cfreader.config_path = path.resolve(__dirname, '..', '..');
return;
}

for (var i=0; i < config_dir_candidates.length; i++) {
try {
var stat = fs.statSync(config_dir_candidates[i]);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"name": "haraka-config",
"license": "MIT",
"description": "Haraka's config file loader",
"version": "1.0.2",
"version": "1.0.3",
"homepage": "http://haraka.github.io",
"repository": {
"type": "git",
"url": "git@github.com:haraka/haraka-config.git"
},
"main": "config.js",
"engines": {
"node": ">= 4.3"
"node": ">= 0.10.43"
},
"dependencies": {
"js-yaml": "^3.5.3"
Expand Down

0 comments on commit 5e78faf

Please sign in to comment.