diff --git a/lib/index.js b/lib/index.js index 03c2c04..af34cf8 100644 --- a/lib/index.js +++ b/lib/index.js @@ -361,7 +361,7 @@ GitStats.ansiCalendar = function (data, callback) { + " | " + "Max a day: " + cal.max ; - strYear = new CliBox({ + strYear = CliBox({ w: 10 , h: 10 , marks: { @@ -379,7 +379,7 @@ GitStats.ansiCalendar = function (data, callback) { text: strYear , stretch: true , hAlign: "left" - }).toString(); + }); strYear = strYear.replace(monthHack, new Array(monthHack.length + 1).join(" ")); diff --git a/package.json b/package.json index 660ffcb..c633977 100644 --- a/package.json +++ b/package.json @@ -33,9 +33,9 @@ "homepage": "https://github.com/IonicaBizau/git-stats", "dependencies": { "ansi-parser": "^1.4.0", - "cli-box": "^2.1.1", + "cli-box": "^5.0.0", "bug-killer": "^1.0.0", - "git-stats-colors": "^1.0.0", + "git-stats-colors": "^2.1.0", "moment": "^2.9.0", "ul": "^1.1.0" }