Comparing version 0.3.1 to 0.3.2
@@ -197,7 +197,4 @@ 'use strict'; | ||
var prompt = this.prompt.bind(this); | ||
var finish = this.finish.bind(this); | ||
this.session = true; | ||
// disable `finish` to prevent successive calls | ||
this.finish = utils.identity; | ||
function ask(acc, question) { | ||
@@ -209,4 +206,3 @@ return prompt(question); | ||
return Promise.resolve(queue) | ||
.then(utils.reduce(ask, this.answers)) | ||
.then(finish()); | ||
.then(utils.reduce(ask, this.answers)); | ||
}; | ||
@@ -213,0 +209,0 @@ |
{ | ||
"name": "enquirer", | ||
"description": "Intuitive, plugin-based prompt system for node.js. Much faster and lighter alternative to Inquirer, with all the same prompt types and more, but without the bloat.", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"homepage": "https://github.com/enquirer/enquirer", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -7,3 +7,3 @@ <p align="center"> | ||
[![NPM version](https://img.shields.io/npm/v/enquirer.svg?style=flat)](https://www.npmjs.com/package/enquirer) [![NPM downloads](https://img.shields.io/npm/dm/enquirer.svg?style=flat)](https://npmjs.org/package/enquirer) [![Build Status](https://img.shields.io/travis/enquirer/enquirer.svg?style=flat)](https://travis-ci.org/enquirer/enquirer) | ||
# enquirer [![NPM version](https://img.shields.io/npm/v/enquirer.svg?style=flat)](https://www.npmjs.com/package/enquirer) [![NPM downloads](https://img.shields.io/npm/dm/enquirer.svg?style=flat)](https://npmjs.org/package/enquirer) [![Build Status](https://img.shields.io/travis/enquirer/enquirer.svg?style=flat)](https://travis-ci.org/enquirer/enquirer) | ||
@@ -151,3 +151,3 @@ Intuitive, plugin-based prompt system for node.js. Much faster and lighter alternative to Inquirer, with all the same prompt types and more, but without the bloat. | ||
### [.prompt](index.js#L231) | ||
### [.prompt](index.js#L227) | ||
@@ -178,7 +178,7 @@ Initialize a prompt session for a single question. Used by the [ask](#ask) method. | ||
### [.separator](index.js#L272) | ||
### [.separator](index.js#L268) | ||
Create a new `Separator` to use in a choices array. | ||
### [.Separator](index.js#L295) | ||
### [.Separator](index.js#L291) | ||
@@ -200,3 +200,3 @@ Create a new `Separator` to use in a choices array. | ||
Or you can use [enquirer-prompts][], if you want a bundle with all of the listed prompt types. | ||
Or you can use [enquirer-prompts](https://github.com/enquirer/enquirer-prompts), if you want a bundle with all of the listed prompt types. | ||
@@ -293,2 +293,2 @@ ### Publishing prompt types | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on October 07, 2016._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on October 17, 2016._ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
22116
289