Comparing version 1.0.4 to 1.0.5
11
index.js
@@ -5,6 +5,7 @@ 'use strict'; | ||
var wrap = require('word-wrap'); | ||
var stringLength = require('string-length'); | ||
var stringWidth = require('string-width'); | ||
var stripAnsi = require('strip-ansi'); | ||
var ansiStyles = require('ansi-styles'); | ||
var ansiRegex = require('ansi-regex')(); | ||
var repeating = require('repeating'); | ||
@@ -61,5 +62,5 @@ var topOffset = 3; | ||
frame = { | ||
top: '.' + pad('', maxLength + 2, '-') + '.', | ||
top: '.' + repeating('-', maxLength + 2) + '.', | ||
side: ansiStyles.reset.open + '|' + ansiStyles.reset.open, | ||
bottom: ansiStyles.reset.open + '\'' + pad('', maxLength + 2, '-') + '\'' | ||
bottom: ansiStyles.reset.open + '\'' + repeating('-', maxLength + 2) + '\'' | ||
}; | ||
@@ -118,3 +119,3 @@ | ||
paddedString = pad({ | ||
length: stringLength(str), | ||
length: stringWidth(str), | ||
valueOf: function () { | ||
@@ -133,3 +134,3 @@ return ansiStyles.reset.open + str + ansiStyles.reset.open; | ||
if (!array[index + 1]) { | ||
if (array.length === index + 1) { | ||
greeting[index + topOffset + 1] = | ||
@@ -136,0 +137,0 @@ (greeting[index + topOffset + 1] || pad.left('', leftOffset)) + |
{ | ||
"name": "yosay", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Tell Yeoman what to say", | ||
@@ -38,3 +38,4 @@ "license": "BSD-2-Clause", | ||
"pad-component": "0.0.1", | ||
"string-length": "^1.0.0", | ||
"repeating": "^1.1.3", | ||
"string-width": "^1.0.0", | ||
"strip-ansi": "^2.0.0", | ||
@@ -41,0 +42,0 @@ "taketalk": "^1.0.0", |
@@ -12,3 +12,3 @@ # yosay [![Build Status](https://travis-ci.org/yeoman/yosay.svg?branch=master)](https://travis-ci.org/yeoman/yosay) | ||
```sh | ||
``` | ||
$ npm install --save yosay | ||
@@ -15,0 +15,0 @@ ``` |
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
7192
142
10
+ Addedrepeating@^1.1.3
+ Addedstring-width@^1.0.0
+ Addedcode-point-at@1.1.0(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedrepeating@1.1.3(transitive)
+ Addedstring-width@1.0.2(transitive)
- Removedstring-length@^1.0.0
- Removedstring-length@1.0.1(transitive)