yargs-unparser
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -25,6 +25,2 @@ 'use strict'; | ||
function unparseOption(key, value, unparsed) { | ||
if (value == null) { | ||
throw new TypeError(`Value of \`${key}\` cannot be null or undefined`); | ||
} | ||
if (typeof value === 'string') { | ||
@@ -45,3 +41,3 @@ unparsed.push(keyToFlag(key), value); | ||
// Fallback case (numbers and other types) | ||
} else { | ||
} else if (value != null) { | ||
unparsed.push(keyToFlag(key), `${value}`); | ||
@@ -48,0 +44,0 @@ } |
{ | ||
"name": "yargs-unparser", | ||
"description": "Converts back a yargs argv object to its original array form.", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "yargs", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6858
61