@optique/inquirer 1.0.0-dev.1547 → 1.0.0-dev.1555
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 +5 -0
- package/dist/index.js +5 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -475,6 +475,11 @@ function prompt(parser, config) {
|
|
|
475
475
|
configurable: true,
|
|
476
476
|
enumerable: false
|
|
477
477
|
});
|
|
478
|
+
if (typeof parser.normalizeValue === "function") Object.defineProperty(promptedParser, "normalizeValue", {
|
|
479
|
+
value: parser.normalizeValue.bind(parser),
|
|
480
|
+
configurable: true,
|
|
481
|
+
enumerable: false
|
|
482
|
+
});
|
|
478
483
|
return promptedParser;
|
|
479
484
|
}
|
|
480
485
|
/** Normalize choices to the format Inquirer.js expects. */
|
package/dist/index.js
CHANGED
|
@@ -452,6 +452,11 @@ function prompt(parser, config) {
|
|
|
452
452
|
configurable: true,
|
|
453
453
|
enumerable: false
|
|
454
454
|
});
|
|
455
|
+
if (typeof parser.normalizeValue === "function") Object.defineProperty(promptedParser, "normalizeValue", {
|
|
456
|
+
value: parser.normalizeValue.bind(parser),
|
|
457
|
+
configurable: true,
|
|
458
|
+
enumerable: false
|
|
459
|
+
});
|
|
455
460
|
return promptedParser;
|
|
456
461
|
}
|
|
457
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.1555+118c402b",
|
|
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.1555+118c402b"
|
|
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.1555+118c402b"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsdown",
|