Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clack/prompts

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clack/prompts - npm Package Compare versions

Comparing version 0.4.5 to 0.5.0

13

CHANGELOG.md
# @clack/prompts
## 0.5.0
### Minor Changes
- d74dd05: Adds a `selectKey` prompt type
- 54c1bc3: **Breaking Change** `multiselect` has renamed `initialValue` to `initialValues`
### Patch Changes
- Updated dependencies [d74dd05]
- Updated dependencies [54c1bc3]
- @clack/core@0.2.0
## 0.4.5

@@ -4,0 +17,0 @@

5

dist/index.d.ts

@@ -36,6 +36,7 @@ export { isCancel } from '@clack/core';

declare const select: <Options extends Option<Value>[], Value extends Primitive>(opts: SelectOptions<Options, Value>) => Promise<symbol | Options[number]["value"]>;
declare const selectKey: <Options extends Option<Value>[], Value extends string>(opts: SelectOptions<Options, Value>) => Promise<symbol | Options[number]["value"]>;
interface MultiSelectOptions<Options extends Option<Value>[], Value extends Primitive> {
message: string;
options: Options;
initialValue?: Options[number]['value'][];
initialValues?: Options[number]['value'][];
required?: boolean;

@@ -76,2 +77,2 @@ cursorAt?: Options[number]['value'];

export { ConfirmOptions, MultiSelectOptions, PasswordOptions, PromptGroup, PromptGroupAwaitedReturn, PromptGroupOptions, SelectOptions, TextOptions, cancel, confirm, group, intro, multiselect, note, outro, password, select, spinner, text };
export { ConfirmOptions, MultiSelectOptions, PasswordOptions, PromptGroup, PromptGroupAwaitedReturn, PromptGroupOptions, SelectOptions, TextOptions, cancel, confirm, group, intro, multiselect, note, outro, password, select, selectKey, spinner, text };

4

package.json
{
"name": "@clack/prompts",
"version": "0.4.5",
"version": "0.5.0",
"type": "module",

@@ -52,3 +52,3 @@ "main": "./dist/index.cjs",

"dependencies": {
"@clack/core": "^0.1.9",
"@clack/core": "^0.2.0",
"picocolors": "^1.0.0",

@@ -55,0 +55,0 @@ "sisteransi": "^1.0.5"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc