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.1 to 2.0.0

11

lib/config.js

@@ -33,9 +33,12 @@ module.exports = getConfig;

},
pouchdbLeveldb: {
env: 'KAZANA_POUCHDB_LEVELDB_PATH',
pouchdbServerPort: {
env: 'KAZANA_POUCHDB_SERVER_PORT',
default: 4999
},
pouchdbDataPath: {
env: 'KAZANA_POUCHDB_DATA_PATH',
default: './.db'
},
pouchdbHttpUrl: {
env: 'KAZANA_POUCHDB_HTTP_URL',
default: 'http://localhost:5984'
env: 'KAZANA_POUCHDB_HTTP_URL'
},

@@ -42,0 +45,0 @@ pouchdbHttpAdminUser: {

{
"name": "kazana-config",
"version": "1.0.1",
"version": "2.0.0",
"description": "Kazana core module for environment based configuration",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -96,3 +96,3 @@ # kazana-config

</td>
<td><code>http://loca</code></td>
<td><code>http://localhost:5984</code></td>
</tr>

@@ -99,0 +99,0 @@ <tr>

@@ -39,3 +39,3 @@ var test = require('tape');

test('config.pouchdbLeveldb', function (t) {
test('config.pouchdbServerPort', function (t) {
t.plan(1);

@@ -46,5 +46,14 @@

var config = require('../../index');
t.is(config.pouchdbLeveldb, './.db', 'defaults to ./.db');
t.is(config.pouchdbServerPort, 4999, 'defaults to ./.db');
});
test('config.pouchdbDataPath', function (t) {
t.plan(1);
delete process.env.KAZANA_POUCHDB_LEVELDB_PATH;
require.cache = {};
var config = require('../../index');
t.is(config.pouchdbDataPath, './.db', 'defaults to ./.db');
});
test('config.pouchdbHttpUrl', function (t) {

@@ -56,3 +65,3 @@ t.plan(1);

var config = require('../../index');
t.is(config.pouchdbHttpUrl, 'http://localhost:5984', 'defaults to http://localhost:5984');
t.is(config.pouchdbHttpUrl, undefined, 'defaults to undefined');
});

@@ -59,0 +68,0 @@

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