Comparing version 1.2.0 to 1.2.1
@@ -7,3 +7,3 @@ const _map = require("lodash/map"); | ||
return async function keyPress(state, press) { | ||
if (state.returnCommand) { | ||
if (state.returnCommand && state.command.trim()) { | ||
if (press.key.name === "return") { | ||
@@ -13,5 +13,3 @@ const { info } = state.commandLine(); | ||
state.returnCommand = false; | ||
state.header = chalk`{yellow "${state | ||
.command() | ||
.trim()}" is not a complete command}`; | ||
state.header = chalk`{yellow "${state.command.trim()}" is not a complete command}`; | ||
} | ||
@@ -18,0 +16,0 @@ const missing = _get(info, "input.missing", []); |
{ | ||
"name": "makitso", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A Framework for building composable interactive commandline apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
183832
2209