haraka-config
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -36,2 +36,3 @@ 'use strict'; | ||
if (process.env.NODE_ENV === 'test') { | ||
// loaded by haraka-config/test/* | ||
cfreader.config_path = path.join(__dirname, 'test', 'config'); | ||
@@ -41,2 +42,8 @@ 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++) { | ||
@@ -43,0 +50,0 @@ try { |
@@ -6,3 +6,3 @@ { | ||
"description": "Haraka's config file loader", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"homepage": "http://haraka.github.io", | ||
@@ -15,3 +15,3 @@ "repository": { | ||
"engines": { | ||
"node": ">= 4.3" | ||
"node": ">= 0.10.43" | ||
}, | ||
@@ -18,0 +18,0 @@ "dependencies": { |
65765
39
1520