@optique/inquirer 1.0.0-dev.1737 → 1.0.0-dev.1739
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 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -379,10 +379,10 @@ function prompt(parser, config) {
|
|
|
379
379
|
if (r instanceof Promise) return r;
|
|
380
380
|
return Promise.resolve(r);
|
|
381
381
|
}
|
|
382
|
-
const isProbe = exec
|
|
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 effectiveInitialState = annotations != null
|
|
385
|
+
const effectiveInitialState = annotations != null ? (0, __optique_core_annotations.inheritAnnotations)(state, innerInitialState) : innerInitialState;
|
|
386
386
|
const finalizePrompt = () => {
|
|
387
387
|
if (shouldDeferPrompt(parser, state, exec)) {
|
|
388
388
|
let ph;
|
package/dist/index.js
CHANGED
|
@@ -356,10 +356,10 @@ function prompt(parser, config) {
|
|
|
356
356
|
if (r instanceof Promise) return r;
|
|
357
357
|
return Promise.resolve(r);
|
|
358
358
|
}
|
|
359
|
-
const isProbe = exec
|
|
359
|
+
const isProbe = exec != null && exec.phase !== "complete";
|
|
360
360
|
const annotations = getAnnotations(state);
|
|
361
361
|
const innerInitialState = parser.initialState;
|
|
362
|
-
const effectiveInitialState = annotations != null
|
|
362
|
+
const effectiveInitialState = annotations != null ? inheritAnnotations(state, innerInitialState) : innerInitialState;
|
|
363
363
|
const finalizePrompt = () => {
|
|
364
364
|
if (shouldDeferPrompt(parser, state, exec)) {
|
|
365
365
|
let ph;
|
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.1739+5fe92e35",
|
|
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.1739+5fe92e35"
|
|
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.1739+5fe92e35"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsdown",
|