github SBoudrias/Inquirer.js @inquirer/core@9.0.6

latest releases: @inquirer/prompts@7.0.1, inquirer@12.0.1, @inquirer/testing@2.1.36...
3 months ago

All custom errors thrown from inquirer now includes a name attribute reflecting the error class. When checking if an error comes from inquirer AND using a bundler (like tsup, rollup, etc), instanceof might not work as you expect it to. So instead, it is recommend to follow this example:

- if (error instanceof ExitPromptError) {
+ if (error.name === 'ExitPromptError') {

Don't miss a new Inquirer.js release

NewReleases is sending notifications on new releases.