update dependencies, fixes to support new authentication features
[websub-hub] / config / index.js
index d06162efd0431d4a980990c9a753168eefb853f5..8f31211317d5689ae240a4a63a708f72b26ecd8c 100644 (file)
@@ -5,6 +5,11 @@ const common = require('../src/common');
 const defaultEnvironment = 'development';
 const testEnvironment = 'test';
 
+/**
+ * Merge environment-specific config objects on top of defaults.
+ * @param {string=} environment from NODE_ENV
+ * @returns {object} config
+ */
 function Config(environment) {
   environment = environment || defaultEnvironment;
   const defaultConfig = require('./default');