kazana-config
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -49,8 +49,8 @@ module.exports = getConfig; | ||
}, | ||
dbDataReports: { | ||
env: 'KAZANA_DB_DATA_REPORTS', | ||
dbRawData: { | ||
env: 'KAZANA_DB_RAW_DATA', | ||
default: 'kazana-raw-data' | ||
}, | ||
dbIntegratedData: { | ||
env: 'KAZANA_DB_INDICATORS', | ||
env: 'KAZANA_DB_INTEGRATED_DATA', | ||
default: 'kazana-integrated-data' | ||
@@ -57,0 +57,0 @@ }, |
{ | ||
"name": "kazana-config", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Kazana core module for environment based configuration", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,3 +45,3 @@ # kazana-config | ||
Within services, the settings below are accessible at `server.settings.app.<setting name>`, | ||
e.g. `sever.settings.app.dbDataReports`. | ||
e.g. `sever.settings.app.dbRawData`. | ||
@@ -115,7 +115,7 @@ <table> | ||
<td> | ||
<strong>dbDataReports</strong><br> | ||
KAZANA_DB_DATA_REPORTS | ||
<strong>dbRawData</strong><br> | ||
KAZANA_DB_RAW_DATA | ||
</td> | ||
<td> | ||
Name of database holding the imported data reports | ||
Name of database containing submitted raw data | ||
</td> | ||
@@ -127,6 +127,6 @@ <td><code>kazana-raw-data</code></td> | ||
<strong>dbIntegratedData</strong><br> | ||
KAZANA_DB_INDICATORS | ||
KAZANA_DB_INTEGRATED_DATA | ||
</td> | ||
<td> | ||
Name of database holding the imported data reports | ||
Name of database containing integrated data | ||
</td> | ||
@@ -133,0 +133,0 @@ <td><code>kazana-raw-data</code></td> |
@@ -75,9 +75,9 @@ var test = require('tape'); | ||
test('config.dbDataReports', function (t) { | ||
test('config.dbRawData', function (t) { | ||
t.plan(1); | ||
delete process.env.KAZANA_DB_DATA_REPORTS; | ||
delete process.env.KAZANA_DB_RAW_DATA; | ||
require.cache = {}; | ||
var config = require('../../index'); | ||
t.is(config.dbDataReports, 'kazana-raw-data', 'defaults to kazana-raw-data'); | ||
t.is(config.dbRawData, 'kazana-raw-data', 'defaults to kazana-raw-data'); | ||
}); | ||
@@ -88,3 +88,3 @@ | ||
delete process.env.KAZANA_DB_INDICATORS; | ||
delete process.env.KAZANA_DB_INTEGRATED_DATA; | ||
require.cache = {}; | ||
@@ -91,0 +91,0 @@ var config = require('../../index'); |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
15986