@optique/inquirer 1.0.0-dev.1536 → 1.0.0-dev.1553
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 +7 -0
- package/dist/index.js +7 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -314,6 +314,8 @@ function prompt(parser, config) {
|
|
|
314
314
|
type: "optional",
|
|
315
315
|
terms: parser.usage
|
|
316
316
|
}],
|
|
317
|
+
leadingNames: parser.leadingNames,
|
|
318
|
+
acceptingAnyToken: parser.acceptingAnyToken,
|
|
317
319
|
get initialState() {
|
|
318
320
|
return new PromptBindInitialStateClass();
|
|
319
321
|
},
|
|
@@ -473,6 +475,11 @@ function prompt(parser, config) {
|
|
|
473
475
|
configurable: true,
|
|
474
476
|
enumerable: false
|
|
475
477
|
});
|
|
478
|
+
if (typeof parser.normalizeValue === "function") Object.defineProperty(promptedParser, "normalizeValue", {
|
|
479
|
+
value: parser.normalizeValue.bind(parser),
|
|
480
|
+
configurable: true,
|
|
481
|
+
enumerable: false
|
|
482
|
+
});
|
|
476
483
|
return promptedParser;
|
|
477
484
|
}
|
|
478
485
|
/** Normalize choices to the format Inquirer.js expects. */
|
package/dist/index.js
CHANGED
|
@@ -291,6 +291,8 @@ function prompt(parser, config) {
|
|
|
291
291
|
type: "optional",
|
|
292
292
|
terms: parser.usage
|
|
293
293
|
}],
|
|
294
|
+
leadingNames: parser.leadingNames,
|
|
295
|
+
acceptingAnyToken: parser.acceptingAnyToken,
|
|
294
296
|
get initialState() {
|
|
295
297
|
return new PromptBindInitialStateClass();
|
|
296
298
|
},
|
|
@@ -450,6 +452,11 @@ function prompt(parser, config) {
|
|
|
450
452
|
configurable: true,
|
|
451
453
|
enumerable: false
|
|
452
454
|
});
|
|
455
|
+
if (typeof parser.normalizeValue === "function") Object.defineProperty(promptedParser, "normalizeValue", {
|
|
456
|
+
value: parser.normalizeValue.bind(parser),
|
|
457
|
+
configurable: true,
|
|
458
|
+
enumerable: false
|
|
459
|
+
});
|
|
453
460
|
return promptedParser;
|
|
454
461
|
}
|
|
455
462
|
/** Normalize choices to the format Inquirer.js expects. */
|
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.1553+1e439439",
|
|
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.1553+1e439439"
|
|
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.1553+1e439439"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsdown",
|