@foal/core
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -16,10 +16,2 @@ "use strict"; | ||
} | ||
const defaultJSONValue = this.readJSONValue('config/default.json', key); | ||
if (defaultJSONValue !== undefined) { | ||
return defaultJSONValue; | ||
} | ||
const defaultYAMLValue = this.readYAMLValue('config/default.yml', key); | ||
if (defaultYAMLValue !== undefined) { | ||
return defaultYAMLValue; | ||
} | ||
const envJSONFilePath = `config/${process.env.NODE_ENV || 'development'}.json`; | ||
@@ -35,2 +27,10 @@ const envJSONValue = this.readJSONValue(envJSONFilePath, key); | ||
} | ||
const defaultJSONValue = this.readJSONValue('config/default.json', key); | ||
if (defaultJSONValue !== undefined) { | ||
return defaultJSONValue; | ||
} | ||
const defaultYAMLValue = this.readYAMLValue('config/default.yml', key); | ||
if (defaultYAMLValue !== undefined) { | ||
return defaultYAMLValue; | ||
} | ||
return defaultValue; | ||
@@ -37,0 +37,0 @@ } |
{ | ||
"name": "@foal/core", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "High level web framework to create enterprise-grade Node.JS applications.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |