Skip to content

Commit

Permalink
Bump minimum supported node version to node@4. (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgtybhertgeghgtwtg authored and SBoudrias committed Feb 10, 2017
1 parent 1614e0a commit af09c7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ language: node_js
node_js:
- '6'
- '4'
- '0.12'
- '0.10'
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ var stringWidth = require('string-width');
var stripAnsi = require('strip-ansi');
var ansiStyles = require('ansi-styles');
var ansiRegex = require('ansi-regex')();
var repeating = require('repeating');
var cliBoxes = require('cli-boxes');

var border = cliBoxes.round;
Expand Down Expand Up @@ -72,7 +71,7 @@ module.exports = function (message, options) {

regExNewLine = new RegExp('\\s{' + maxLength + '}');

var borderHorizontal = repeating(border.horizontal, maxLength + 2);
var borderHorizontal = border.horizontal.repeat(maxLength + 2);

frame = {
top: border.topLeft + borderHorizontal + border.topRight,
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,18 @@
"cli.js"
],
"engines": {
"node": ">=0.10.0"
"node": ">=4"
},
"scripts": {
"test": "xo && mocha"
},
"dependencies": {
"ansi-regex": "^2.0.0",
"ansi-styles": "^2.0.0",
"ansi-styles": "^3.0.0",
"chalk": "^1.0.0",
"cli-boxes": "^1.0.0",
"pad-component": "0.0.1",
"repeating": "^2.0.0",
"string-width": "^1.0.0",
"string-width": "^2.0.0",
"strip-ansi": "^3.0.0",
"taketalk": "^1.0.0",
"wrap-ansi": "^2.0.0"
Expand Down

0 comments on commit af09c7a

Please sign in to comment.