Comparing version 0.1.3 to 0.1.4
@@ -17,3 +17,3 @@ 'use strict'; | ||
* @memberof featurama | ||
* @param {Object} featureList Key vaule pairs: `featureName: boolean | function` | ||
* @param {Object} featureList Key value pairs: `featureName: boolean | function` | ||
*/ | ||
@@ -20,0 +20,0 @@ function _buildList(featureList) { |
{ | ||
"name": "featurama", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Enable/Disable features via JS config files.", | ||
@@ -5,0 +5,0 @@ "main": "src/featurama.js", |
@@ -16,4 +16,4 @@ 'use strict'; | ||
expect(fs.writeFile).toHaveBeenCalledWith(path.resolve(__dirname, 'runTimeFlags.js'), | ||
'var featuramaRunTimeFlags = {"bothEnabled": true,"bothEnabledRuntimeFunc": function () { return true; },"buildEnabledRuntimeDisabled": false}'); | ||
'var featuramaRunTimeFlags = {"bothEnabled": true,"bothEnabledRuntimeFunc": function () { return true; }};'); | ||
}); | ||
}); |
@@ -17,3 +17,3 @@ 'use strict'; | ||
* @memberof featurama | ||
* @param {Object} featureList Key vaule pairs: `featureName: boolean | function` | ||
* @param {Object} featureList Key value pairs: `featureName: boolean | function` | ||
*/ | ||
@@ -20,0 +20,0 @@ function _buildList(featureList) { |
@@ -161,3 +161,3 @@ 'use strict'; | ||
runTimeFlags = _.trim(runTimeFlags, ',') + '}'; | ||
runTimeFlags = _.trim(runTimeFlags, ',') + '};'; | ||
fs.writeFile(path.resolve(outputFolder, 'runTimeFlags.js'), 'var featuramaRunTimeFlags = ' + runTimeFlags); | ||
@@ -164,0 +164,0 @@ |
252931