prompt-text
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -28,3 +28,3 @@ 'use strict'; | ||
var error = typeof state === 'string' ? red('>> ') + state : ''; | ||
var message = this.renderMessage(); | ||
var message = this.renderMessage(this); | ||
@@ -34,3 +34,3 @@ if (this.status === 'answered') { | ||
} else { | ||
message += this.renderHelp() + this.rl.line; | ||
message += this.renderHelp(this) + this.rl.line; | ||
} | ||
@@ -37,0 +37,0 @@ |
{ | ||
"name": "prompt-text", | ||
"description": "Basic text input prompt. This can be used standalone, but it's also included in [enquirer] by default.", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"homepage": "https://github.com/enquirer/prompt-text", | ||
@@ -29,3 +29,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"ansi-red": "^0.1.1", | ||
"prompt-base": "^2.1.1" | ||
"prompt-base": "^3.0.2" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
# prompt-text [![NPM version](https://img.shields.io/npm/v/prompt-text.svg?style=flat)](https://www.npmjs.com/package/prompt-text) [![NPM monthly downloads](https://img.shields.io/npm/dm/prompt-text.svg?style=flat)](https://npmjs.org/package/prompt-text) [![NPM total downloads](https://img.shields.io/npm/dt/prompt-text.svg?style=flat)](https://npmjs.org/package/prompt-text) [![Linux Build Status](https://img.shields.io/travis/enquirer/prompt-text.svg?style=flat&label=Travis)](https://travis-ci.org/enquirer/prompt-text) | ||
> Basic text input prompt. This can be used standalone, but it's also included in [enquirer](https://github.com/enquirer/enquirer) by default. | ||
> Basic text input prompt. This can be used standalone, but it's also included in [enquirer](http://enquirer.io) by default. | ||
@@ -38,3 +38,3 @@ ![prompt-text example](https://raw.githubusercontent.com/enquirer/prompt-text/master/example.gif) | ||
There is no need to register this with [enquirer](https://github.com/enquirer/enquirer), as this is the only prompt type included in enquirer by default. | ||
There is no need to register this with [enquirer](http://enquirer.io), as this is the only prompt type included in enquirer by default. | ||
@@ -49,6 +49,6 @@ ## Attribution | ||
* [enquirer](https://www.npmjs.com/package/enquirer): Intuitive, plugin-based prompt system for node.js. Much faster and lighter alternative to Inquirer, with all… [more](https://github.com/enquirer/enquirer) | [homepage](https://github.com/enquirer/enquirer "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.") | ||
* [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.") | ||
* [prompt-base](https://www.npmjs.com/package/prompt-base): Base prompt module used for creating custom prompts. | [homepage](https://github.com/enquirer/prompt-base "Base prompt module used for creating custom prompts.") | ||
* [prompt-checkbox](https://www.npmjs.com/package/prompt-checkbox): Multiple-choice/checkbox prompt. Can be used standalone or with a prompt system like [Enquirer](https://github.com/enquirer/enquirer). | [homepage](https://github.com/enquirer/prompt-checkbox "Multiple-choice/checkbox prompt. Can be used standalone or with a prompt system like [Enquirer].") | ||
* [prompt-confirm](https://www.npmjs.com/package/prompt-confirm): Confirm (yes/no) prompt. Can be used standalone or with a prompt system like [Enquirer](https://github.com/enquirer/enquirer). | [homepage](https://github.com/enquirer/prompt-confirm "Confirm (yes/no) prompt. Can be used standalone or with a prompt system like [Enquirer].") | ||
* [prompt-checkbox](https://www.npmjs.com/package/prompt-checkbox): Multiple-choice/checkbox prompt. Can be used standalone or with a prompt system like [Enquirer](http://enquirer.io). | [homepage](https://github.com/enquirer/prompt-checkbox "Multiple-choice/checkbox prompt. Can be used standalone or with a prompt system like [Enquirer].") | ||
* [prompt-confirm](https://www.npmjs.com/package/prompt-confirm): Confirm (yes/no) prompt. Can be used standalone or with a prompt system like [Enquirer](http://enquirer.io). | [homepage](https://github.com/enquirer/prompt-confirm "Confirm (yes/no) prompt. Can be used standalone or with a prompt system like [Enquirer].") | ||
* [prompt-list](https://www.npmjs.com/package/prompt-list): List-style prompt. Can be used as a standalone prompt, or with a prompt system like… [more](https://github.com/enquirer/prompt-list) | [homepage](https://github.com/enquirer/prompt-list "List-style prompt. Can be used as a standalone prompt, or with a prompt system like [enquirer].") | ||
@@ -83,2 +83,2 @@ * [prompt-sort](https://www.npmjs.com/package/prompt-sort): Prompt that allows the user to re-order items in a list of choices. | [homepage](https://github.com/enquirer/prompt-sort "Prompt that allows the user to re-order items in a list of choices.") | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 28, 2017._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 02, 2017._ |
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
7407
+ Addedarr-swap@1.0.1(transitive)
+ Addedclone-deep@4.0.1(transitive)
+ Addeddefine-property@2.0.2(transitive)
+ Addedis-number@6.0.0(transitive)
+ Addedkind-of@6.0.3(transitive)
+ Addedprompt-actions@3.0.2(transitive)
+ Addedprompt-base@3.0.5(transitive)
+ Addedprompt-choices@4.1.0(transitive)
+ Addedprompt-question@4.0.3(transitive)
+ Addedset-value@3.0.3(transitive)
+ Addedshallow-clone@3.0.1(transitive)
- Removedprompt-actions@2.0.2(transitive)
- Removedprompt-base@2.2.0(transitive)
- Removedprompt-choices@3.0.6(transitive)
- Removedprompt-question@3.0.3(transitive)
- Removedset-value@1.0.0(transitive)
Updatedprompt-base@^3.0.2