Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@inquirer/core

Package Overview
Dependencies
Maintainers
3
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inquirer/core - npm Package Compare versions

Comparing version 10.0.1 to 10.1.0

3

dist/commonjs/lib/theme.d.ts

@@ -9,4 +9,5 @@ import type { Prettify } from '@inquirer/type';

* - `'done'`: The user has submitted an answer and the prompt is finished.
* - `string`: Any other string: The prompt is in a custom state.
*/
export type Status = 'loading' | 'idle' | 'done';
export type Status = 'loading' | 'idle' | 'done' | (string & {});
type DefaultTheme = {

@@ -13,0 +14,0 @@ /**

@@ -38,3 +38,3 @@ "use strict";

const iconName = status === 'loading' ? 'idle' : status;
return typeof prefix === 'string' ? prefix : prefix[iconName];
return typeof prefix === 'string' ? prefix : (prefix[iconName] ?? prefix['idle']);
}

@@ -9,4 +9,5 @@ import type { Prettify } from '@inquirer/type';

* - `'done'`: The user has submitted an answer and the prompt is finished.
* - `string`: Any other string: The prompt is in a custom state.
*/
export type Status = 'loading' | 'idle' | 'done';
export type Status = 'loading' | 'idle' | 'done' | (string & {});
type DefaultTheme = {

@@ -13,0 +14,0 @@ /**

@@ -35,3 +35,3 @@ import { AsyncResource } from 'node:async_hooks';

const iconName = status === 'loading' ? 'idle' : status;
return typeof prefix === 'string' ? prefix : prefix[iconName];
return typeof prefix === 'string' ? prefix : (prefix[iconName] ?? prefix['idle']);
}
{
"name": "@inquirer/core",
"version": "10.0.1",
"version": "10.1.0",
"description": "Core Inquirer prompt API",

@@ -77,4 +77,4 @@ "keywords": [

"dependencies": {
"@inquirer/figures": "^1.0.7",
"@inquirer/type": "^3.0.0",
"@inquirer/figures": "^1.0.8",
"@inquirer/type": "^3.0.1",
"ansi-escapes": "^4.3.2",

@@ -89,7 +89,7 @@ "cli-width": "^4.1.0",

"devDependencies": {
"@arethetypeswrong/cli": "^0.16.4",
"@inquirer/testing": "^2.1.36",
"@arethetypeswrong/cli": "^0.17.0",
"@inquirer/testing": "^2.1.37",
"@repo/tsconfig": "workspace:*",
"@types/mute-stream": "^0.0.4",
"@types/node": "^22.8.0",
"@types/node": "^22.9.0",
"@types/wrap-ansi": "^3.0.0",

@@ -113,3 +113,3 @@ "tshy": "^3.0.2"

},
"gitHead": "da3dd749325495266025f2dbdb339a812da468f8"
"gitHead": "84e49bdb552e1cb4f035d644190913f367a66e74"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc