From a3589fab9512a67f6bb15e4322fc1f71b2977dad Mon Sep 17 00:00:00 2001 From: Rob Rodriguez Date: Tue, 4 Feb 2014 04:56:42 -0800 Subject: [PATCH] Fixing provider issue in source --- lib/nconf/provider.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/nconf/provider.js b/lib/nconf/provider.js index 1e32860..b346ee9 100644 --- a/lib/nconf/provider.js +++ b/lib/nconf/provider.js @@ -210,6 +210,12 @@ Provider.prototype.init = function (options) { // Retrieves the value for the specified key (if any). // Provider.prototype.get = function (key, callback) { + if (typeof key === 'function') { + // Allow a * key call to be made + callback = key; + key = null; + } + // // If there is no callback we can short-circuit into the default // logic for traversing stores.