@inquirer/select 1.0.1 → 1.0.3
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/README.md +5 -5
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -46,11 +46,11 @@ const answer = await select({
|
|
|
46
46
|
|
|
47
47
|
## Options
|
|
48
48
|
|
|
49
|
-
| Property | Type
|
|
50
|
-
| -------- |
|
|
51
|
-
| message | `string`
|
|
52
|
-
| choices | `Array<{ value: string, name?: string, description?: string, disabled?: boolean \| string }>` | yes
|
|
53
|
-
| pageSize
|
|
49
|
+
| Property | Type | Required | Description |
|
|
50
|
+
| -------- | --------------------------------------------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
51
|
+
| message | `string` | yes | The question to ask |
|
|
52
|
+
| choices | `Array<{ value: string, name?: string, description?: string, disabled?: boolean \| string }>` | yes | List of the available choices. The `value` will be returned as the answer, and used as display if no `name` is defined. Choices who're `disabled` will be displayed, but not selectable. The `description` will be displayed under the prompt when the cursor land over the choice. |
|
|
53
|
+
| pageSize | `number` | no | By default, lists of choice longer than 7 will be paginated. Use this option to control how many choices will appear on the screen at once. |
|
|
54
54
|
|
|
55
55
|
# License
|
|
56
56
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/select",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Inquirer select/list prompt",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"typings": "./dist/cjs/types/index.d.mts",
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"license": "MIT",
|
|
55
55
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/select/README.md",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@inquirer/core": "^1.0.
|
|
58
|
-
"@inquirer/type": "^1.0.
|
|
59
|
-
"ansi-escapes": "^
|
|
60
|
-
"chalk": "^
|
|
61
|
-
"figures": "^
|
|
57
|
+
"@inquirer/core": "^1.0.4",
|
|
58
|
+
"@inquirer/type": "^1.0.3",
|
|
59
|
+
"ansi-escapes": "^4.3.2",
|
|
60
|
+
"chalk": "^4.1.2",
|
|
61
|
+
"figures": "^3.2.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"tsc": "yarn run clean && yarn run tsc:esm && yarn run tsc:cjs",
|
|
65
65
|
"clean": "rm -rf dist",
|
|
66
66
|
"tsc:esm": "tsc -p ./tsconfig.esm.json",
|
|
67
67
|
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
|
|
68
|
-
"fix-ext": "ts-node ../../tools/rename-ext.mts"
|
|
68
|
+
"fix-ext": "node --no-warnings=ExperimentalWarning --loader=ts-node/esm ../../tools/rename-ext.mts"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "12fecef5292da253564c845ef5be67b37441e381"
|
|
89
89
|
}
|