Ind.ie is now Small Technology Foundation.
Commit fe85afda authored by Stanley Shyiko's avatar Stanley Shyiko

Fixed "null" options handling

parent d6412fc7
{
"name": "electron-har",
"description": "A command-line tool for generating HTTP Archive (HAR) (based on Electron)",
"version": "0.1.7",
"version": "0.1.8",
"author": "Stanley Shyiko <stanley.shyiko@gmail.com>",
"license": "MIT",
"repository": {
......
......@@ -33,8 +33,8 @@ module.exports = function electronHAR(url, o, cb) {
execFile(
__dirname + '/../bin/electron-har',
[url].concat(Object.keys(oo).reduce(function (r, k) {
r.push(k.length === 1 ? '-' + k : '--' + k);
oo[k] && r.push(oo[k]);
var v = oo[k];
v != null && r.push(k.length === 1 ? '-' + k : '--' + k, v);
return r;
}, [])),
function (err, stdout, stderr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment