Socket
Socket
Sign inDemoInstall

prompt-base

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompt-base - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

5

index.js

@@ -586,6 +586,7 @@ 'use strict';

this.status = 'answered';
this.answer = answer;
this.end();
this.emit('answer', answer);
this.emit('answer', this.answer);
this.rl.line = '';
this.callback(answer);
this.callback(this.answer);
}.bind(this));

@@ -592,0 +593,0 @@ };

6

package.json
{
"name": "prompt-base",
"description": "Base prompt module used for creating custom prompts.",
"version": "3.0.4",
"version": "3.0.5",
"homepage": "https://github.com/enquirer/prompt-base",

@@ -21,3 +21,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"engines": {
"node": ">=4.0"
"node": ">=5.0"
},

@@ -33,3 +33,3 @@ "scripts": {

"prompt-actions": "^3.0.2",
"prompt-question": "^4.0.2",
"prompt-question": "^4.0.3",
"readline-ui": "^2.2.3",

@@ -36,0 +36,0 @@ "readline-utils": "^2.2.1",

@@ -354,3 +354,3 @@ # prompt-base [![NPM version](https://img.shields.io/npm/v/prompt-base.svg?style=flat)](https://www.npmjs.com/package/prompt-base) [![NPM monthly downloads](https://img.shields.io/npm/dm/prompt-base.svg?style=flat)](https://npmjs.org/package/prompt-base) [![NPM total downloads](https://img.shields.io/npm/dt/prompt-base.svg?style=flat)](https://npmjs.org/package/prompt-base) [![Linux Build Status](https://img.shields.io/travis/enquirer/prompt-base.svg?style=flat&label=Travis)](https://travis-ci.org/enquirer/prompt-base) [![Windows Build Status](https://img.shields.io/appveyor/ci/enquirer/prompt-base.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/enquirer/prompt-base)

### [.only](index.js#L606)
### [.only](index.js#L607)

@@ -367,3 +367,3 @@ Ensures that events for event `name` are only **registered** once and are disabled correctly when specified. This is different from `.once`, which only **emits** once.

### [.mute](index.js#L635)
### [.mute](index.js#L636)

@@ -384,3 +384,3 @@ Mutes the output stream that was used to create the readline interface, and returns a function for unmuting the stream. This is useful in unit tests.

### [.end](index.js#L655)
### [.end](index.js#L656)

@@ -391,3 +391,3 @@ Pause the readline and unmute the output stream that was

### [.resume](index.js#L670)
### [.resume](index.js#L671)

@@ -398,3 +398,3 @@ [Resume](https://nodejs.org/api/readline.html#readline_rl_resume) the readline input stream if it has been paused.

### [.choices](index.js#L723)
### [.choices](index.js#L724)

@@ -405,3 +405,3 @@ Getter for getting the choices array from the question.

### [.message](index.js#L740)
### [.message](index.js#L741)

@@ -412,3 +412,3 @@ Getter that returns `question.message` after passing it to [format](#format).

### [.symbol](index.js#L761)
### [.symbol](index.js#L762)

@@ -426,3 +426,3 @@ Getter/setter for getting the checkbox symbol to use.

### [.prefix](index.js#L787)
### [.prefix](index.js#L788)

@@ -440,3 +440,3 @@ Getter/setter that returns the prefix to use before `question.message`. The default value is a green `?`.

### [.ask](index.js#L815)
### [.ask](index.js#L816)

@@ -463,3 +463,3 @@ Static convenience method for running the [.ask](#ask) method. Takes the same arguments as the contructror.

### [.run](index.js#L841)
### [.run](index.js#L842)

@@ -486,3 +486,3 @@ Static convenience method for running the [.run](#run) method. Takes the same arguments as the contructror.

### [.Question](index.js#L857)
### [.Question](index.js#L858)

@@ -502,3 +502,3 @@ Create a new `Question`. See [prompt-question](https://github.com/enquirer/prompt-question) for more details.

### [.Choices](index.js#L871)
### [.Choices](index.js#L872)

@@ -518,3 +518,3 @@ Create a new `Choices` object. See [prompt-choices](https://github.com/enquirer/prompt-choices) for more details.

### [.Separator](index.js#L884)
### [.Separator](index.js#L885)

@@ -618,3 +618,3 @@ Create a new `Separator` object. See [choices-separator](https://github.com/enquirer/choices-separator) for more details.

| --- | --- |
| 137 | [jonschlinkert](https://github.com/jonschlinkert) |
| 142 | [jonschlinkert](https://github.com/jonschlinkert) |
| 6 | [doowb](https://github.com/doowb) |

@@ -654,2 +654,2 @@

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 04, 2017._
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 05, 2017._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc