Socket
Socket
Sign inDemoInstall

prompt-base

Package Overview
Dependencies
87
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.3 to 4.1.0

6

changelog.md
# Release history
## v4.1.0
**Changed**
- `render` is now emitted before the message is created.
## v4.0.2

@@ -4,0 +10,0 @@

8

index.js

@@ -387,2 +387,5 @@ 'use strict';

// override message in custom prompts
this.emit('render', context);
// render message with default settings

@@ -411,5 +414,2 @@ switch (context.status) {

this.contextHistory.push(context);
// override message in custom prompts
this.emit('render', context);
this.ui.render(context.message, context.append);

@@ -581,3 +581,3 @@ };

Promise.resolve(this.validate(input, key))
return Promise.resolve(this.validate(input, key))
.then(function(state) {

@@ -584,0 +584,0 @@ self.state = state;

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

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

"component-emitter": "^1.2.1",
"debug": "^2.6.8",
"debug": "^3.0.1",
"koalas": "^1.0.2",
"log-utils": "^0.2.1",
"prompt-actions": "^3.0.2",
"prompt-question": "^5.0.0",
"prompt-question": "^5.0.1",
"readline-ui": "^2.2.3",
"readline-utils": "^2.2.1",
"readline-utils": "^2.2.3",
"static-extend": "^0.1.2"

@@ -47,3 +47,3 @@ },

"gulp-mocha": "^3.0.1",
"mocha": "^3.4.2",
"mocha": "^3.5.0",
"repeat-string": "^1.6.1",

@@ -50,0 +50,0 @@ "strip-color": "^0.1.0"

@@ -5,2 +5,4 @@ # 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)

Follow this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), for updates on this project and others.
## Install

@@ -463,3 +465,3 @@

### [.ask](index.js#L851)
### [.ask](index.js#L855)

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

### [.run](index.js#L877)
### [.run](index.js#L881)

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

### [.Question](index.js#L893)
### [.Question](index.js#L897)

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

### [.Choices](index.js#L907)
### [.Choices](index.js#L911)

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

### [.Separator](index.js#L920)
### [.Separator](index.js#L924)

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

You might also be interested in these projects:
* [enquirer](https://www.npmjs.com/package/enquirer): Intuitive, plugin-based prompt system for node.js. | [homepage](http://enquirer.io "Intuitive, plugin-based prompt system for node.js.")

@@ -642,4 +646,5 @@ * [prompt-choices](https://www.npmjs.com/package/prompt-choices): Create an array of multiple choice objects for use in prompts. | [homepage](https://github.com/enquirer/prompt-choices "Create an array of multiple choice objects for use in prompts.")

| --- | --- |
| 156 | [jonschlinkert](https://github.com/jonschlinkert) |
| 163 | [jonschlinkert](https://github.com/jonschlinkert) |
| 6 | [doowb](https://github.com/doowb) |
| 1 | [sbj42](https://github.com/sbj42) |

@@ -678,2 +683,2 @@ ### Building docs

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

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc