Jarrett Cruger
87a3b82418
[fix] we shouldnt be reversing here fixes #127
2014-11-26 12:51:33 -05:00
indexzero
af0e9fb7e7
[dist fix] Cleanup some whitespace.
2014-11-26 01:31:48 -05:00
indexzero
09342555ba
[fix] Fixed regression introduced by #98 .
2014-11-26 01:28:31 -05:00
indexzero
8d5fb25701
[fix] Fix my own sloppy coding fixing the sloppy coding from #76 .
2014-11-26 01:14:44 -05:00
Charlie Robbins
5502f2cf98
Merge pull request #111 from martinheidegger/patch-1
...
Adding helpful information in case parsing failed.
2014-11-26 01:08:02 -05:00
indexzero
f07bc40d64
[fix] Fix inconsistent style from #98 .
2014-11-26 01:06:44 -05:00
Charlie Robbins
d5bd26c0b6
Merge pull request #98 from joaoafrmartins/master
...
filter process.env by regexp
2014-11-26 01:06:11 -05:00
Charlie Robbins
c6d8f5d140
Merge pull request #79 from jfromaniello/master
...
Use optionally a different separator for memorystore
2014-11-26 01:04:35 -05:00
indexzero
f771500266
[dist] Semantic cleanup from sloppy coding in #76 .
2014-11-26 01:02:59 -05:00
Charlie Robbins
a3404b4062
Merge pull request #76 from jmonster/usage
...
Resolves #64 , usage and help
2014-11-26 00:59:36 -05:00
Martin Heidegger
c8b6c98c7a
Adding helpful information in case parsing failed.
...
I stumbled over 2 slight problems of broken configuration files:
1) It said that a error in my JSON file existed (even though it was a yaml file, parsed by libyaml)
2) It didn't tell me which error occured.
both should be fixed with this PR
2014-03-09 21:40:10 +09:00
Christopher Jeffrey
8105c761ad
[fix] only reverse keys for "get" action to be safe.
2014-02-12 12:32:34 -06:00
Christopher Jeffrey
2241a36789
[fix] have latter stores precede the former stores again.
2014-02-12 12:26:38 -06:00
Christopher Jeffrey
0bb89ee2b4
[fix] have latter stores precede the former stores.
2014-02-11 12:40:41 -06:00
joaoafrmartins
120f5f0a4b
added documentation
2014-01-10 00:26:07 +00:00
joaoafrmartins
681fd2f6b4
added regexp filtering to nconf env store
2014-01-10 00:17:52 +00:00
Jarrett Cruger
92311c81c3
[rm] kill pkginfo
2013-12-01 22:21:21 -08:00
midknight41
6c1eb5e917
fixed white spacing and added (embarrassing absent) variable declarations
2013-10-26 20:40:12 +01:00
midknight41
29f1ca281b
added support for BOM in load() and loadSync()
2013-10-03 09:17:36 +01:00
Marcin Floryan
0135d95a06
Additional error information when JSON config file cannot be read
2013-04-29 16:34:48 +01:00
José F. Romaniello
039057c730
allow different separator for memorystore
2013-04-05 15:07:33 -03:00
Johnny Domino
b73b0e1a37
attach help and showHelp arguments to the argv store
2013-02-23 12:33:23 -05:00
Johnny Domino
4894c8fcf7
resolves #64 passing usage string to optimist
2013-02-23 12:32:42 -05:00
Charlie Robbins
818526ca62
Merge pull request #63 from SchoonologyRRL/patch-1
...
Updated Memory.merge to handle null values
2012-12-20 22:56:54 -08:00
Michael Hart
bb57c497d3
Prefer this fix for #65 to 6045618
2012-12-20 18:12:42 -05:00
indexzero
60456186d7
[fix] Fix for #65
2012-12-20 18:03:37 -05:00
Michael Schoonmaker
ed41c51850
Updated Memory.merge to handle null values
...
Previously, if the Memory store was merged with an object containing a null value, the following Error occurred:
TypeError: Object.keys called on non-object
at Function.keys (native)
at Memory.merge (/.../node_modules/nconf/lib/nconf/stores/memory.js:199:17)
at Memory.merge (/.../node_modules/nconf/lib/nconf/stores/memory.js:200:17)
at Array.every (native)
at Memory.merge (/.../node_modules/nconf/lib/nconf/stores/memory.js:199:29)
at common.merge (/.../node_modules/nconf/lib/nconf/common.js:99:13)
at Array.forEach (native)
at common.merge (/.../node_modules/nconf/lib/nconf/common.js:98:22)
at Array.forEach (native)
at Object.common.merge (/.../node_modules/nconf/lib/nconf/common.js:97:8)
This commit prevents that.
2012-09-27 11:26:56 -07:00
Christian Tellnes
8e987b8d3d
make it possible to use other formats than json in common.loadFiles and common.loadFilesSync
2012-09-16 17:45:00 +02:00
Bradley Meck
da39d3cac3
[fix] null values should merge properly instead of throwing errors
2012-09-08 20:10:58 -05:00
Bradley Meck
683f78918c
[fix] #59 root get/set should work via null/undefined as key
2012-09-07 09:29:30 -05:00
indexzero
d96d2544bc
[fix] Fix regression introduced by 36e061c4bd
2012-07-10 03:16:54 -04:00
indexzero
30734301e7
[api test doc] Make options to Provider.prototype.file
take more flexible options
2012-07-10 01:50:18 -04:00
indexzero
7515f66572
[fix] Ensure that all options are passed to Provider.prototype.add
in Provider.prototype.file
. Fixes #51
...
[doc] Update README.md and method documentation
[dist] Remove vim comments
2012-07-10 01:27:28 -04:00
Michael Hart
9aaafc5a22
Ugh, fixed whitespace
2012-06-21 18:05:52 +10:00
Michael Hart
3c08fad1c9
Changed to as it's more accurate
2012-06-21 18:04:37 +10:00
Michael Hart
e15f787940
Updated README and allowed a simpley syntax
2012-06-21 17:18:22 +10:00
Michael Hart
8921d0502e
Added support for nested configs via env
2012-06-21 16:46:10 +10:00
Michael Hart
6cbc323005
Add reset to the list of destructive commands
2012-06-14 19:40:28 +05:30
Michael Hart
26d81e8dca
Merge objects if necessary when traversing stores on get()
2012-06-13 18:28:54 +05:30
Christian Tellnes
83440f9956
fix spelling in error message
2012-05-24 07:27:19 +02:00
Maciej Małecki
87b0dd01c9
[minor] Use fs.exists
when available
...
`path.exists*` was moved to `fs` module in
joyent/node@e10ed097cb .
2012-05-15 11:02:46 +02:00
Jonathan Stewmon
6353d028f7
api and doc change for flatiron/nconf#28 (.file
may now take a string instead of an object)
...
Conflicts:
lib/nconf/provider.js
2012-05-03 17:10:19 -07:00
Russell Frank
36e061c4bd
Fixes to Provider.save()
and tests.
...
Fixed `Provider.save()` to properly ignore stores which do not provide
a saveSync method. Also, fixed `save()` to properly save asynchronously
when an async `save()` method on a store is provided.
Removed the tests from `nconf-test.js` which expected `save()` to throw
or return an error when a store without `save()` methods was
encountered. Also removed a `console.log` from `provider-test.js`.
2012-05-01 22:44:15 -04:00
Pavan Kumar Sunkara
29eb5f905d
[minor] Fix whitespaces
2012-04-15 00:58:55 +05:30
Jordan Harband
6ce0b7aef3
Surfacing additional JSON.stringify arguments in formats.json.stringify, and adding the json_spacing option to the File constructor.
2012-04-13 13:22:42 -07:00
Maciej Małecki
b3699314cf
[minor] Use fs.existsSync
when available
...
`path.exists*` was moved to `fs` module in
joyent/node@e10ed097cb .
2012-03-29 13:13:16 +02:00
indexzero
6242caafda
[api minor] Add .loadSync()
to Memory store. Fixes #24
2012-01-02 17:20:06 -05:00
indexzero
9e9e37bb84
[minor] Update whitespace
2012-01-02 17:14:03 -05:00
Jonathan Stewmon
a216336290
updated Provider.load to respect sources hierarchy
2012-01-02 17:11:51 -05:00
Jonathan Stewmon
5c43d546d1
fixed merge issue in Provider.load by reversing store keys in getStores
2012-01-02 17:11:31 -05:00