Improve the raw results

This commit is contained in:
Ionică Bizău 2016-10-23 16:03:43 +03:00
parent e68bf7c048
commit 7d370ea67b
2 changed files with 4 additions and 4 deletions

View file

@ -495,6 +495,7 @@ GitStats.prototype.ansiCalendar = function (options, callback) {
, end: options.end , end: options.end
, firstDay: options.firstDay , firstDay: options.firstDay
, cal: cal , cal: cal
, raw: options.raw
} }
; ;
@ -504,8 +505,7 @@ GitStats.prototype.ansiCalendar = function (options, callback) {
cal.push([cDay, cDayObj.c]); cal.push([cDay, cDayObj.c]);
}); });
callback(null, CliGhCal(cal, data));
callback(null, options.raw ? data : CliGhCal(cal, data));
}); });
return self; return self;

View file

@ -35,7 +35,7 @@
"dependencies": { "dependencies": {
"abs": "^1.0.0", "abs": "^1.0.0",
"bug-killer": "^4.0.0", "bug-killer": "^4.0.0",
"cli-gh-cal": "^1.3.0", "cli-gh-cal": "^1.3.3",
"cli-pie": "^2.0.0", "cli-pie": "^2.0.0",
"deffy": "^2.2.2", "deffy": "^2.2.2",
"gitlog-parser": "0.0.4", "gitlog-parser": "0.0.4",