Comparing version 1.1.0 to 1.1.1
'use strict'; | ||
var chalk = require('chalk'); | ||
var pad = require('pad-component'); | ||
var wrap = require('word-wrap'); | ||
var wrap = require('wrap-ansi'); | ||
var stringWidth = require('string-width'); | ||
@@ -74,3 +74,3 @@ var stripAnsi = require('strip-ansi'); | ||
return wrap(stripAnsi(message), { width: maxLength }) | ||
return wrap(stripAnsi(message), maxLength, {hard: true}) | ||
.split(/\n/) | ||
@@ -111,5 +111,5 @@ .reduce(function (greeting, str, index, array) { | ||
return continuedStyle + char; | ||
} else { | ||
return char; | ||
} | ||
return char; | ||
}) | ||
@@ -116,0 +116,0 @@ .trim(); |
{ | ||
"name": "yosay", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Tell Yeoman what to say", | ||
@@ -18,3 +18,3 @@ "license": "BSD-2-Clause", | ||
], | ||
"homepage": "http://yeoman.io", | ||
"homepage": "yeoman.io", | ||
"author": "Yeoman", | ||
@@ -31,3 +31,3 @@ "repository": "yeoman/yosay", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "xo && mocha" | ||
}, | ||
@@ -38,3 +38,2 @@ "dependencies": { | ||
"chalk": "^1.0.0", | ||
"minimist": "^1.1.0", | ||
"pad-component": "0.0.1", | ||
@@ -45,7 +44,11 @@ "repeating": "^2.0.0", | ||
"taketalk": "^1.0.0", | ||
"word-wrap": "^1.0.0" | ||
"wrap-ansi": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "*" | ||
"mocha": "*", | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"space": true | ||
} | ||
} |
@@ -20,3 +20,3 @@ # yosay [![Build Status](https://travis-ci.org/yeoman/yosay.svg?branch=master)](https://travis-ci.org/yeoman/yosay) | ||
```js | ||
var yosay = require('yosay'); | ||
const yosay = require('yosay'); | ||
@@ -23,0 +23,0 @@ console.log(yosay('Hello, and welcome to my fantastic generator full of whimsy and bubble gum!')); |
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
7198
9
2
141
+ Addedwrap-ansi@^2.0.0
+ Addedwrap-ansi@2.1.0(transitive)
- Removedminimist@^1.1.0
- Removedword-wrap@^1.0.0
- Removedword-wrap@1.2.5(transitive)