promptly
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="3.0.1"></a> | ||
## [3.0.1](https://github.com/moxystudio/node-promptly/compare/v3.0.0...v3.0.1) (2018-01-15) | ||
<a name="3.0.0"></a> | ||
@@ -7,0 +12,0 @@ # [3.0.0](https://github.com/moxystudio/node-promptly/compare/2.2.0...3.0.0) (2018-01-15) |
{ | ||
"name": "promptly", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Simple command line prompting utility", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"lint": "eslint .", | ||
"test": "jest --env node --coverage --runInBand", | ||
"test": "jest --env node --coverage", | ||
"prerelease": "npm t && npm run lint", | ||
@@ -29,0 +29,0 @@ "release": "standard-version", |
@@ -89,3 +89,3 @@ # promptly | ||
try { | ||
const name = promptly.prompt('Name: ', { validator, retry: false }); | ||
const name = await promptly.prompt('Name: ', { validator, retry: false }); | ||
@@ -147,3 +147,3 @@ console.log('Name is:', value); | ||
```js | ||
const choice = promptly.choose('Do you want an apple or an orange? ', ['apple', 'orange']); | ||
const choice = await promptly.choose('Do you want an apple or an orange? ', ['apple', 'orange']); | ||
@@ -165,3 +165,3 @@ console.log('Choice:', choice); | ||
```js | ||
const password = promptly.password('Type a password: '); | ||
const password = await promptly.password('Type a password: '); | ||
@@ -174,3 +174,3 @@ console.log('Password:', password); | ||
```js | ||
const password = promptly.password('Type a password: ', { replace: '*' }); | ||
const password = await promptly.password('Type a password: ', { replace: '*' }); | ||
@@ -177,0 +177,0 @@ console.log('Password:', password); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12772
0