@inquirer/prompts 1.0.0 → 1.0.2

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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2023 Simon Boudrias
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  # Inquirer
4
4
 
5
- [![npm](https://badge.fury.io/js/@inquirer%2Finput.svg.svg)](https://badge.fury.io/js/@inquirer%2Finput.svg)
6
- [![Coverage Status](https://codecov.io/gh/SBoudrias/Inquirer.js/branch/master/graph/badge.svg)](https://codecov.io/gh/SBoudrias/Inquirer.js)
5
+ [![npm](https://badge.fury.io/js/@inquirer%2Fprompts.svg)](https://www.npmjs.com/package/@inquirer/prompts)
7
6
  [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FSBoudrias%2FInquirer.js.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FSBoudrias%2FInquirer.js?ref=badge_shield)
8
7
 
9
8
  A collection of common interactive command line user interfaces.
@@ -117,7 +116,7 @@ The [API documentation is over here](https://github.com/SBoudrias/Inquirer.js/tr
117
116
 
118
117
  # Advanced usage
119
118
 
120
- All inquirer prompts are a function taking 2 arguments. The first argument is the prompt configuration. The second is providing contextual or runtime configuration.
119
+ All inquirer prompts are a function taking 2 arguments. The first argument is the prompt configuration (unique to each prompt). The second is providing contextual or runtime configuration.
121
120
 
122
121
  The context options are:
123
122
 
@@ -156,7 +155,7 @@ When asking many questions, you might not want to keep one variable per answer e
156
155
  import { input, confirm } from '@inquirer/prompts';
157
156
 
158
157
  const answers = {
159
- firstName: await input({ message: 'What\'s your first name?' }),
158
+ firstName: await input({ message: "What's your first name?" }),
160
159
  allowEmail: await confirm({ message: 'Do you allow us to send you email?' }),
161
160
  };
162
161
 
@@ -182,7 +181,16 @@ if (allowEmail) {
182
181
 
183
182
  If you created a cool prompt, [send us a PR adding it](https://github.com/SBoudrias/Inquirer.js/edit/master/README.md) to the list below!
184
183
 
184
+ [**Interactive List Prompt**](https://github.com/pgibler/inquirer-interactive-list-prompt)<br/>
185
+ Select a choice either with arrow keys + Enter or by pressing a key associated with a choice.
186
+
187
+ ```
188
+ ? Choose an option:
189
+ > Run command (D)
190
+ Quit (Q)
191
+ ```
192
+
185
193
  # License
186
194
 
187
- Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
195
+ Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))<br/>
188
196
  Licensed under the MIT license.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/prompts",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Inquirer prompts, combined in a single package",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "typings": "./dist/cjs/types/index.d.mts",
@@ -59,7 +59,7 @@
59
59
  "clean": "rm -rf dist",
60
60
  "tsc:esm": "tsc -p ./tsconfig.esm.json",
61
61
  "tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
62
- "fix-ext": "ts-node ../../tools/rename-ext.ts"
62
+ "fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
63
63
  },
64
64
  "engines": {
65
65
  "node": ">=14.18.0"
@@ -77,13 +77,15 @@
77
77
  }
78
78
  },
79
79
  "dependencies": {
80
- "@inquirer/checkbox": "^1.0.0",
81
- "@inquirer/confirm": "^1.0.0",
82
- "@inquirer/editor": "^1.0.0",
83
- "@inquirer/expand": "^1.0.0",
84
- "@inquirer/input": "^1.0.0",
85
- "@inquirer/password": "^1.0.0",
86
- "@inquirer/rawlist": "^1.0.0",
87
- "@inquirer/select": "^1.0.0"
88
- }
80
+ "@inquirer/checkbox": "^1.0.2",
81
+ "@inquirer/confirm": "^1.0.2",
82
+ "@inquirer/editor": "^1.0.2",
83
+ "@inquirer/expand": "^1.0.2",
84
+ "@inquirer/input": "^1.0.2",
85
+ "@inquirer/password": "^1.0.2",
86
+ "@inquirer/rawlist": "^1.0.2",
87
+ "@inquirer/select": "^1.0.2"
88
+ },
89
+ "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/prompts/README.md",
90
+ "gitHead": "865c589ffbc4a66f328dc4e64a08646200c755f3"
89
91
  }
package/dist/.DS_Store DELETED
Binary file