@sonnechasser/ntrp 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6045,7 +6045,7 @@ function secretPromptLine(question) {
6045
6045
  return ` ${paint("accent", "\u25B8")} ${bold(question)} ${chalk3.dim("(hidden \u2014 paste once, Enter)")} `;
6046
6046
  }
6047
6047
  function stripTerminalArtifacts(input) {
6048
- return input.replace(/\x1b\[[0-9;]*[a-zA-Z~]/g, "").replace(/\x1b\][^\x07]*(\x07|\x1b\\)/g, "");
6048
+ return input.replace(/\x1b\[[0-9;]*[a-zA-Z~]/g, "").replace(/\x1b\][^\x07]*(\x07|\x1b\\)/g, "").replace(/\x1b\[200~/g, "").replace(/\x1b\[201~/g, "");
6049
6049
  }
6050
6050
  function renderQuestion(question, defaultValue) {
6051
6051
  const base = ` ${marker()}${bold(question)}`;
@@ -6232,12 +6232,18 @@ function createPromptSession(existing, ctx) {
6232
6232
  console.log(" " + chalk3.dim("Try again \u2014 paste the key once, then Enter."));
6233
6233
  }
6234
6234
  }
6235
+ async function askPressEnter(message) {
6236
+ await rl.question(
6237
+ ` ${paint("accent", "\u25B8")} ${bold(message)} ${chalk3.dim("(Enter)")} `
6238
+ );
6239
+ }
6235
6240
  return {
6236
6241
  ask,
6237
6242
  askRequired,
6238
6243
  confirm,
6239
6244
  choose,
6240
6245
  askMulti,
6246
+ askPressEnter,
6241
6247
  askSecret,
6242
6248
  close: () => {
6243
6249
  if (ctx && existing) {