jscrambler
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -7,8 +7,8 @@ 'use strict'; | ||
module.exports = { | ||
// Convert from command line option format to snake case for the jscrambler API. | ||
// Convert from command line option format to snake case for the JScrambler API. | ||
// It also replaces truthy boolean flags with %DEFAULT% values | ||
parseConfig: function (commander, config) { | ||
config = clone(config); | ||
mergeAndParseParams: function (commander, params) { | ||
params = clone(params || {}); | ||
// Override config file changes with any specified command line options | ||
// Override params file changes with any specified command line options | ||
var name, is_bool_flag = { | ||
@@ -44,5 +44,5 @@ assertsElimination: false, | ||
if (is_bool_flag[name] === true) { | ||
config[snakeCase(name)] = '%DEFAULT%'; | ||
params[snakeCase(name)] = '%DEFAULT%'; | ||
} else { | ||
config[snakeCase(name)] = commander[name]; | ||
params[snakeCase(name)] = commander[name]; | ||
} | ||
@@ -52,4 +52,4 @@ } | ||
return config; | ||
return params; | ||
} | ||
}; |
{ | ||
"name": "jscrambler", | ||
"description": "JScrambler API client.", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"homepage": "https://github.com/jscrambler/node-jscrambler", | ||
@@ -6,0 +6,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
45775