Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kazana-config

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kazana-config - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

lib/config.js

@@ -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');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc