Pretty print history
Closed this issue · 0 comments
nhunzaker commented
I'd love a debug helper that could pretty print what has happened in history. Something nicer than:
console.log('What changed:', )
console.log(this.repo.history.map(action => [action.command.name, JSON.stringify(action.payload || {}).slice(0, 70) ]))
What changed:
[ [ '$start', '{}' ],
[ '$addDomain', '{}' ],
[ '$addDomain', '{}' ],
[ '$addDomain', '{}' ],
[ '$addDomain', '{}' ],
[ '$addDomain', '{}' ],
[ '$addDomain', '{}' ],
[ '$addDomain', '{}' ],
[ '$addDomain', '{"NOTIFICATION_ID":0}' ],
[ '$reset',
'{"blocks":[{"id":1,"type":"row","parent":null,"styles":{}},{"id":2,"ty' ],
[ 'setMessageProperties', '{"senderId":1}' ],
[ 'focusBlock', '1' ],
[ 'setRowResize',
'{"row":{"id":1,"type":"row","parent":null,"styles":{}},"resizeable":tr' ],
[ 'updateBlock', '{"id":2,"styles":{"columnWidth":"33%"}}' ],
[ 'updateBlock', '{"id":3,"styles":{"columnWidth":"33%"}}' ],
[ 'updateBlock', '{"id":4,"styles":{"columnWidth":"33%"}}' ],
[ 'setRowResize',
'{"row":{"id":1,"type":"row","parent":null,"styles":{},"attributes":{"r