-
Notifications
You must be signed in to change notification settings - Fork 1
chore(deps): update dependency @inquirer/password to v4.0.21 #1363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
📦 Packages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 2 files
|
|
||
| "@inquirer/input": ["@inquirer/input@4.2.4", "", { "dependencies": { "@inquirer/core": "^10.2.2", "@inquirer/type": "^3.0.8" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-cwSGpLBMwpwcZZsc6s1gThm0J+it/KIJ+1qFL2euLmSKUMGumJ5TcbMgxEjMjNHRGadouIYbiIgruKoDZk7klw=="], | ||
|
|
||
| "@inquirer/password": ["@inquirer/password@4.0.20", "", { "dependencies": { "@inquirer/ansi": "^1.0.0", "@inquirer/core": "^10.2.2", "@inquirer/type": "^3.0.8" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-nxSaPV2cPvvoOmRygQR+h0B+Av73B01cqYLcr7NXcGXhbmsYfUb8fDdw2Us1bI2YsX+VvY7I7upgFYsyf8+Nug=="], | ||
| "@inquirer/password": ["@inquirer/password@4.0.21", "", { "dependencies": { "@inquirer/ansi": "^1.0.1", "@inquirer/core": "^10.3.0", "@inquirer/type": "^3.0.9" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-xxeW1V5SbNFNig2pLfetsDb0svWlKuhmr7MPJZMYuDnCTkpVBI+X/doudg4pznc1/U+yYmWFFOi4hNvGgUo7EA=="], | ||
|
|
||
| "@inquirer/select": ["@inquirer/select@4.3.4", "", { "dependencies": { "@inquirer/ansi": "^1.0.0", "@inquirer/core": "^10.2.2", "@inquirer/figures": "^1.0.13", "@inquirer/type": "^3.0.8", "yoctocolors-cjs": "^2.1.2" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-Qp20nySRmfbuJBBsgPU7E/cL62Hf250vMZRzYDcBHty2zdD1kKCnoDFWRr0WO2ZzaXp3R7a4esaVGJUx0E6zvA=="], | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential bug: The use of instanceof for error checking will fail because two different versions of @inquirer/core are installed, causing unexpected crashes when users cancel prompts.
-
Description: The lockfile introduces two versions of
@inquirer/core:10.2.2and10.3.0(via@inquirer/password). The error handling logic insdk/cli/src/commands/index.tsusesinstanceofto check for specific Inquirer errors likeExitPromptError. When a user cancels a password prompt, an error is thrown by@inquirer/password, which uses@inquirer/core@10.3.0. However, theinstanceofcheck compares this error against a class from@inquirer/core@10.2.2. This check will always fail because the error instance and the class constructor come from different package versions. As a result, the CLI will crash with an "Unknown error" message instead of exiting gracefully as intended. -
Suggested fix: Refactor the error handling logic in
sdk/cli/src/commands/index.tsto check theerror.nameproperty (e.g.,error.name === 'ExitPromptError') instead of usinginstanceof. This approach is robust against multiple versions of the same library being present in the dependency tree.
severity: 0.65, confidence: 0.95
Did we get this right? 👍 / 👎 to inform future reviews.
8f6f4f2 to
c06ebd6
Compare
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
c06ebd6 to
84bdee0
Compare
This PR contains the following updates:
4.0.20->4.0.21Release Notes
SBoudrias/Inquirer.js (@inquirer/password)
v4.0.21Compare Source
Configuration
📅 Schedule: Branch creation - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.