Comparing version 0.1.1 to 0.1.2
@@ -26,4 +26,4 @@ 'use strict'; | ||
// skip questins of type null | ||
if (prompt.type === null) continue; | ||
// skip if type is a falsy value | ||
if (!prompt.type) continue; | ||
@@ -30,0 +30,0 @@ if (!types.hasOwnProperty(prompt.type)) { |
{ | ||
"name": "prompts", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Lightweight, beautiful and user-friendly prompts", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/terkelg/prompts", |
@@ -52,3 +52,3 @@ <p align="center"> | ||
let response = await prompts({ | ||
const response = await prompts({ | ||
type: 'number', | ||
@@ -59,3 +59,3 @@ name: 'value', | ||
console.log(response.value); // => 23 | ||
console.log(response); // => { value: 23 } | ||
``` | ||
@@ -100,3 +100,3 @@ | ||
{ | ||
type: 'age', | ||
type: 'number', | ||
name: 'age', | ||
@@ -103,0 +103,0 @@ message: 'How old are you?' |
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
60277