@optique/inquirer 1.0.0-dev.1747 → 1.0.0-dev.1751
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.
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -382,7 +382,8 @@ function prompt(parser, config) {
|
|
|
382
382
|
const isProbe = exec != null && exec.phase !== "complete";
|
|
383
383
|
const annotations = (0, __optique_core_annotations.getAnnotations)(state);
|
|
384
384
|
const innerInitialState = parser.initialState;
|
|
385
|
-
const
|
|
385
|
+
const shouldInheritInitialStateAnnotations = annotations != null && (innerInitialState == null || typeof innerInitialState === "object");
|
|
386
|
+
const effectiveInitialState = shouldInheritInitialStateAnnotations ? (0, __optique_core_annotations.inheritAnnotations)(state, innerInitialState) : innerInitialState;
|
|
386
387
|
const readPlaceholder = () => {
|
|
387
388
|
try {
|
|
388
389
|
return "placeholder" in parser ? parser.placeholder : void 0;
|
package/dist/index.js
CHANGED
|
@@ -359,7 +359,8 @@ function prompt(parser, config) {
|
|
|
359
359
|
const isProbe = exec != null && exec.phase !== "complete";
|
|
360
360
|
const annotations = getAnnotations(state);
|
|
361
361
|
const innerInitialState = parser.initialState;
|
|
362
|
-
const
|
|
362
|
+
const shouldInheritInitialStateAnnotations = annotations != null && (innerInitialState == null || typeof innerInitialState === "object");
|
|
363
|
+
const effectiveInitialState = shouldInheritInitialStateAnnotations ? inheritAnnotations(state, innerInitialState) : innerInitialState;
|
|
363
364
|
const readPlaceholder = () => {
|
|
364
365
|
try {
|
|
365
366
|
return "placeholder" in parser ? parser.placeholder : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/inquirer",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.1751+ba8aadea",
|
|
4
4
|
"description": "Interactive prompt support for Optique via Inquirer.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"sideEffects": false,
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@inquirer/prompts": "^8.3.0",
|
|
59
|
-
"@optique/core": "1.0.0-dev.
|
|
59
|
+
"@optique/core": "1.0.0-dev.1751+ba8aadea"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "^20.19.9",
|
|
63
63
|
"tsdown": "^0.13.0",
|
|
64
64
|
"typescript": "^5.8.3",
|
|
65
|
-
"@optique/env": "1.0.0-dev.
|
|
65
|
+
"@optique/env": "1.0.0-dev.1751+ba8aadea"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsdown",
|