Ask for minimal diffs.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 24 Nov 2016 08:42:31 +0000 (09:42 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 24 Nov 2016 08:42:31 +0000 (09:42 +0100)
server/serve-analysis.js

index ed11e10..ec41916 100644 (file)
@@ -132,7 +132,7 @@ var create_json_historic_diff = function(new_json, history_left, new_diff_json,
        }
 
        var histobj = history_left.shift();
-       var diff = delta.JSON_delta.diff(histobj.parsed, new_json.parsed);
+       var diff = delta.JSON_delta.diff(histobj.parsed, new_json.parsed, true);
        var diff_text = JSON.stringify(diff);
        zlib.gzip(diff_text, function(err, buffer) {
                if (err) throw err;