kazana-config
Advanced tools
Comparing version 1.0.1 to 2.0.0
@@ -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 @@ |
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
16262
246
20