Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "confme", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Opinionated config library that allows you to have complex config and behaves according to Twelve Factor App rules", | ||
@@ -5,0 +5,0 @@ "main": "src/confme.js", |
@@ -7,6 +7,13 @@ require("dotenv-defaults").config(); | ||
const template = fs.readFileSync(configPath).toString(); | ||
const configStr = replace(template, process.env); | ||
let config = JSON.parse(configStr); | ||
let config = {}; | ||
try { | ||
config = JSON.parse(configStr); | ||
} catch (error) { | ||
console.error("CANNOT PARSE JSON:", configStr); | ||
throw error; | ||
} | ||
if (livrSchemaPath) { | ||
@@ -13,0 +20,0 @@ config = validateConfig(config, livrSchemaPath); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10257
80