@inquirer/core
Advanced tools
Comparing version 10.0.1 to 10.1.0
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97379
2174
+ Added@inquirer/figures@1.0.8(transitive)
+ Added@inquirer/type@3.0.1(transitive)
- Removed@inquirer/figures@1.0.7(transitive)
- Removed@inquirer/type@3.0.0(transitive)
Updated@inquirer/figures@^1.0.8
Updated@inquirer/type@^3.0.1