@optique/inquirer 1.0.0-dev.615 → 1.0.0-dev.617
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 +4 -12
- package/dist/index.js +4 -12
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -38,24 +38,16 @@ const defaultPromptFunctions = {
|
|
|
38
38
|
expand: __inquirer_prompts.expand,
|
|
39
39
|
checkbox: __inquirer_prompts.checkbox
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"input",
|
|
45
|
-
"password",
|
|
46
|
-
"editor",
|
|
47
|
-
"select",
|
|
48
|
-
"rawlist",
|
|
49
|
-
"expand",
|
|
50
|
-
"checkbox"
|
|
51
|
-
];
|
|
41
|
+
function promptFunctionKeys() {
|
|
42
|
+
return Object.keys(defaultPromptFunctions);
|
|
43
|
+
}
|
|
52
44
|
function assignPromptFunctionOverride(override, key, candidate) {
|
|
53
45
|
if (typeof candidate === "function") override[key] = candidate;
|
|
54
46
|
}
|
|
55
47
|
function getPromptFunctionsOverride(value) {
|
|
56
48
|
if (typeof value !== "object" || value == null) return void 0;
|
|
57
49
|
const override = {};
|
|
58
|
-
for (const key of promptFunctionKeys) assignPromptFunctionOverride(override, key, Reflect.get(value, key));
|
|
50
|
+
for (const key of promptFunctionKeys()) assignPromptFunctionOverride(override, key, Reflect.get(value, key));
|
|
59
51
|
return override;
|
|
60
52
|
}
|
|
61
53
|
function getPromptFunctions() {
|
package/dist/index.js
CHANGED
|
@@ -15,24 +15,16 @@ const defaultPromptFunctions = {
|
|
|
15
15
|
expand,
|
|
16
16
|
checkbox
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"input",
|
|
22
|
-
"password",
|
|
23
|
-
"editor",
|
|
24
|
-
"select",
|
|
25
|
-
"rawlist",
|
|
26
|
-
"expand",
|
|
27
|
-
"checkbox"
|
|
28
|
-
];
|
|
18
|
+
function promptFunctionKeys() {
|
|
19
|
+
return Object.keys(defaultPromptFunctions);
|
|
20
|
+
}
|
|
29
21
|
function assignPromptFunctionOverride(override, key, candidate) {
|
|
30
22
|
if (typeof candidate === "function") override[key] = candidate;
|
|
31
23
|
}
|
|
32
24
|
function getPromptFunctionsOverride(value) {
|
|
33
25
|
if (typeof value !== "object" || value == null) return void 0;
|
|
34
26
|
const override = {};
|
|
35
|
-
for (const key of promptFunctionKeys) assignPromptFunctionOverride(override, key, Reflect.get(value, key));
|
|
27
|
+
for (const key of promptFunctionKeys()) assignPromptFunctionOverride(override, key, Reflect.get(value, key));
|
|
36
28
|
return override;
|
|
37
29
|
}
|
|
38
30
|
function getPromptFunctions() {
|
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.617+c4b77759",
|
|
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.617+c4b77759"
|
|
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.617+c4b77759"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsdown",
|