Socket
Socket
Sign inDemoInstall

@inquirer/input

Package Overview
Dependencies
Maintainers
3
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inquirer/input - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

14

package.json
{
"name": "@inquirer/input",
"version": "1.0.1",
"version": "1.0.2",
"description": "Inquirer input text prompt",

@@ -57,8 +57,8 @@ "main": "./dist/cjs/index.js",

"dependencies": {
"@inquirer/core": "^1.0.2",
"@inquirer/type": "^1.0.1",
"chalk": "^5.2.0"
"@inquirer/core": "^1.0.3",
"@inquirer/type": "^1.0.2",
"chalk": "^4.1.2"
},
"devDependencies": {
"@inquirer/testing": "^1.0.1"
"@inquirer/testing": "^1.0.2"
},

@@ -70,3 +70,3 @@ "scripts": {

"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},

@@ -91,3 +91,3 @@ "publishConfig": {

},
"gitHead": "5b8563d850962ce48daba46e7e95e7285d581a56"
"gitHead": "865c589ffbc4a66f328dc4e64a08646200c755f3"
}

@@ -29,3 +29,3 @@ # `@inquirer/input`

| default | `string` | no | Default value if no answer is provided (clear it by pressing backspace) |
| transformer | `(string, { isFinal: boolean }) => string` | no | Transform/Format the raw value entered by the user. Once the prompt is completed, `isFinal` will be `true`. This function is purely visual, modify the answer in your code if needed. |
| transformer | `(string, { isFinal: boolean }) => string` | no | Transform/Format the raw value entered by the user. Once the prompt is completed, `isFinal` will be `true`. This function is purely visual, modify the answer in your code if needed. |
| validate | `string => boolean \| string \| Promise<string \| boolean>` | no | On submit, validate the filtered answered content. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |

@@ -32,0 +32,0 @@

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