handle-cli-error
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -100,5 +100,6 @@ import isPlainObj from"is-plain-obj"; | ||
const handleInvalidOpts=function(message,value,optName){ | ||
const fullOptName=optName.join("."); | ||
throw new Error(`"${fullOptName}" ${message}: ${value}`); | ||
const fullOptName= | ||
optName.length===0?"options":`"${optName.join(".")}"`; | ||
throw new Error(`${fullOptName} ${message}: ${value}`); | ||
}; | ||
//# sourceMappingURL=validate.js.map |
{ | ||
"name": "handle-cli-error", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "exports": "./build/src/main.js", |
26578
261