prompt-question
Advanced tools
Comparing version 0.4.1 to 0.5.0
10
index.js
@@ -31,3 +31,3 @@ 'use strict'; | ||
if (utils.isObject(name) && name.isQuestion) { | ||
if (Question.isQuestion(name)) { | ||
return name; | ||
@@ -198,2 +198,10 @@ } | ||
/** | ||
* Returns true if `val` is an instance of `Question` | ||
*/ | ||
Question.isQuestion = function(val) { | ||
return val instanceof Question || (utils.isObject(val) && val.isQuestion); | ||
}; | ||
/** | ||
* Expose `Question` | ||
@@ -200,0 +208,0 @@ */ |
{ | ||
"name": "prompt-question", | ||
"description": "Question object, used by Enquirer and prompt plugins.", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"homepage": "https://github.com/enquirer/prompt-question", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -78,3 +78,3 @@ # prompt-question [![NPM version](https://img.shields.io/npm/v/prompt-question.svg?style=flat)](https://www.npmjs.com/package/prompt-question) [![NPM monthly downloads](https://img.shields.io/npm/dm/prompt-question.svg?style=flat)](https://npmjs.org/package/prompt-question) [![NPM total downloads](https://img.shields.io/npm/dt/prompt-question.svg?style=flat)](https://npmjs.org/package/prompt-question) [![Linux Build Status](https://img.shields.io/travis/enquirer/prompt-question.svg?style=flat&label=Travis)](https://travis-ci.org/enquirer/prompt-question) | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on March 09, 2017._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 12, 2017._ | ||
@@ -81,0 +81,0 @@ [verb-generate-readme]: https://github.com/verbose/verb-generate-readme |
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
13679
265