@inquirer/password 5.3.0 → 5.3.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -32,8 +32,10 @@ export default createPrompt((config, done) => {
32
32
  done(answer);
33
33
  }
34
34
  else {
35
+ // Keys pressed while validating were ignored, but readline still added them to its line.
35
36
  // Reset the readline line value to the previous value. On line event, the value
36
37
  // get cleared, forcing the user to re-enter the value instead of fixing it.
38
+ rl.clearLine(0);
37
39
  rl.write(value);
38
40
  setError(isValid || 'You must provide a valid value');
39
41
  setStatus('idle');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/password",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "description": "Inquirer password prompt",
5
5
  "keywords": [
6
6
  "answer",
@@ -67,9 +67,9 @@
67
67
  "tsc": "tsc"
68
68
  },
69
69
  "dependencies": {
70
- "@inquirer/ansi": "^2.1.0",
71
- "@inquirer/core": "^12.1.0",
72
- "@inquirer/type": "4.3.0"
70
+ "@inquirer/ansi": "^2.1.1",
71
+ "@inquirer/core": "^12.1.1",
72
+ "@inquirer/type": "4.3.1"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@repo/tsconfig": "0.1.0",
@@ -84,9 +84,9 @@
84
84
  }
85
85
  },
86
86
  "engines": {
87
- "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
87
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
88
88
  },
89
89
  "main": "./dist/index.js",
90
90
  "types": "./dist/index.d.ts",
91
- "gitHead": "00ded073f80523aaeaf8a903bbfb535994990475"
91
+ "gitHead": "6570b8e4d5e33a00dad2b55fa5f5fa5d148a245b"
92
92
  }