choices-separator
Advanced tools
Comparing version 1.0.0 to 1.1.0
12
index.js
@@ -28,5 +28,11 @@ 'use strict'; | ||
this.chars = {middot: '·', line: '─', bullet: '•'}; | ||
this.line = dim(this.chars[opts.line] | ||
|| opts.line | ||
|| repeat(this.chars.line, 8)); | ||
if (typeof opts.line === 'string') { | ||
if (this.chars[opts.line]) { | ||
this.line = dim(this.chars[opts.line]); | ||
} else { | ||
this.line = opts.line; | ||
} | ||
} else { | ||
this.line = dim(repeat(this.chars.line, 8)); | ||
} | ||
} | ||
@@ -33,0 +39,0 @@ |
{ | ||
"name": "choices-separator", | ||
"description": "Separator for choices arrays in prompts. Based on the Separator from inquirer.", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/enquirer/choices-separator", | ||
@@ -22,2 +22,13 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
}, | ||
"dependencies": { | ||
"ansi-dim": "^0.1.1", | ||
"debug": "^2.6.6", | ||
"extend-shallow": "^2.0.1", | ||
"repeat-string": "^1.6.1" | ||
}, | ||
"devDependencies": { | ||
"gulp-format-md": "^0.1.12", | ||
"mocha": "^3.3.0", | ||
"strip-color": "^0.1.0" | ||
}, | ||
"keywords": [ | ||
@@ -68,19 +79,4 @@ "answer", | ||
] | ||
}, | ||
"reflinks": [ | ||
"verb", | ||
"verb-generate-readme" | ||
] | ||
}, | ||
"dependencies": { | ||
"ansi-dim": "^0.1.1", | ||
"debug": "^2.6.6", | ||
"extend-shallow": "^2.0.1", | ||
"repeat-string": "^1.6.1" | ||
}, | ||
"devDependencies": { | ||
"gulp-format-md": "^0.1.12", | ||
"mocha": "^3.3.0", | ||
"strip-color": "^0.1.0" | ||
} | ||
} | ||
} |
@@ -90,2 +90,2 @@ # choices-separator [![NPM version](https://img.shields.io/npm/v/choices-separator.svg?style=flat)](https://www.npmjs.com/package/choices-separator) [![NPM monthly downloads](https://img.shields.io/npm/dm/choices-separator.svg?style=flat)](https://npmjs.org/package/choices-separator) [![NPM total downloads](https://img.shields.io/npm/dt/choices-separator.svg?style=flat)](https://npmjs.org/package/choices-separator) [![Linux Build Status](https://img.shields.io/travis/enquirer/choices-separator.svg?style=flat&label=Travis)](https://travis-ci.org/enquirer/choices-separator) | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 05, 2017._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 09, 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
7227
61