1 | ;
|
2 | var DagGraph_1 = require("../DagGraph");
|
3 | var log = require('debug')('redux-dag-history:DagHistory');
|
4 | function squash(history) {
|
5 | log('squashing history');
|
6 | var graph = history.graph, current = history.current;
|
7 | return {
|
8 | current: current,
|
9 | graph: graph.withMutations(function (g) { return new DagGraph_1.default(g).squashCurrentBranch(); }),
|
10 | };
|
11 | }
|
12 | Object.defineProperty(exports, "__esModule", { value: true });
|
13 | exports.default = squash;
|