Comparing version 0.1.7 to 0.1.8
@@ -28,6 +28,2 @@ 'use strict'; | ||
if (typeof question.message !== 'string') { | ||
throw new Error('prompt message is required'); | ||
} | ||
// if property is a function, invoke it unless it's ignored | ||
@@ -40,2 +36,6 @@ for (let key in question) { | ||
if (typeof question.message !== 'string') { | ||
throw new Error('prompt message is required'); | ||
} | ||
// update vars in case they changed | ||
@@ -42,0 +42,0 @@ ({ name, type } = question); |
{ | ||
"name": "prompts", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Lightweight, beautiful and user-friendly prompts", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/terkelg/prompts", |
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