@inquirer/editor
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@inquirer/editor", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Inquirer multiline editor prompt", | ||
@@ -57,5 +57,5 @@ "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", | ||
"external-editor": "^3.0.3" | ||
@@ -68,3 +68,3 @@ }, | ||
"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" | ||
}, | ||
@@ -89,3 +89,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "5b8563d850962ce48daba46e7e95e7285d581a56" | ||
"gitHead": "865c589ffbc4a66f328dc4e64a08646200c755f3" | ||
} |
@@ -19,3 +19,3 @@ # `@inquirer/editor` | ||
const answer = await editor({ | ||
message: 'Enter a description' | ||
message: 'Enter a description', | ||
}); | ||
@@ -26,10 +26,9 @@ ``` | ||
| Property | Type | Required | Description | | ||
| -------- | --------- | -------- | ------------------------------ | | ||
| message | `string` | yes | The question to ask | | ||
| default | `string` | no | Default value which will automatically be present in the editor | | ||
| validate | `string => boolean \| string \| Promise<string \| boolean>` | no | On submit, validate the 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. | | ||
| postfix | `string` | no (default to `.txt`) | The postfix of the file being edited. Adding this will add color highlighting to the file content in most editors. | | ||
| Property | Type | Required | Description | | ||
| -------- | ----------------------------------------------------------- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| message | `string` | yes | The question to ask | | ||
| default | `string` | no | Default value which will automatically be present in the editor | | ||
| validate | `string => boolean \| string \| Promise<string \| boolean>` | no | On submit, validate the 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. | | ||
| postfix | `string` | no (default to `.txt`) | The postfix of the file being edited. Adding this will add color highlighting to the file content in most editors. | | ||
# License | ||
@@ -36,0 +35,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10785
36
- Removedchalk@5.3.0(transitive)
Updated@inquirer/core@^1.0.3
Updated@inquirer/type@^1.0.2
Updatedchalk@^4.1.2