Commit Graph

16 Commits (2e33082f0bc058aea30f77a20aaa19f18ee05e5f)

Author SHA1 Message Date
indexzero 2e33082f0b [api] Automatically search for a file if `options.search` is true in File store 2011-10-22 02:36:45 -04:00
indexzero 1ef5797e83 [api test] Finished API and tests for hierarchical configuration storage. 2011-09-18 21:37:01 -04:00
indexzero fb392ddc51 [api test] Updated test/provider-test.js and associated merge implementation 2011-08-28 08:50:26 -04:00
indexzero a6533aa7bf [dist api test] Finished integrating features from reconf and updating associated tests 2011-08-23 06:38:51 -04:00
indexzero add8922c04 [api dist] Begin to integrate features from reconf 2011-08-22 20:17:28 -04:00
indexzero d8b5a80280 [minor] Small style updates to the File store 2011-06-24 03:31:26 -04:00
Marak Squires c43685160d [refactor]: Cleaned up error handling on File.loadSync and File.load
[refactor]: Using path module to determine if file exists instead of throwing error
[api]: File.load and File.loadSync will now automatically create the requested JSON file path if no file is found.
2011-06-23 18:06:26 -07:00
Dominic Tarr 6c6887a850 move callback outside of try / catch
it's dangerous to callback inside try, because you may catch unexpected throws in callback.
2011-06-12 15:45:02 -07:00
indexzero 76db254740 [fix test] Update nconf.stores.File to respond with an error when loading malformed JSON async 2011-06-08 00:06:58 -04:00
avian e7c216e970 [minor] Clarified error message returned when a config file contains invalid JSON. 2011-05-20 01:16:22 -07:00
indexzero d65922dc7a [api] Add `.saveSync()` and `.loadSync()` methods to File store 2011-04-20 01:57:56 -04:00
indexzero 067d58a99d [minor test] Add tests for File store `save()`. Improve default file format to pretty print the JSON output 2011-04-19 17:32:13 -04:00
indexzero 752bb980ac [api] Improve the `.use()` method. Use the memory engine by default 2011-04-02 19:17:04 -04:00
indexzero 09b8c75383 [api test doc] Internal fixes from testing. More tests and docs 2011-04-02 04:31:20 -04:00
indexzero 73bf78339f [api doc test] Finalize API. Add more test coverage 2011-04-02 03:03:16 -04:00
indexzero 67b5c8ab2a [api test] First pass at implementation 2011-03-31 02:32:47 -04:00