Get diff patch between source and snapshot.
const source = { a: 1, b: 2 }; const snapshot = new Snapshot(source); source.a = 3; snapshot.getDiffPatch(); // => { a: 3 }
push new snaphsot
get diff patch between latest source and snapshot
Generated using TypeDoc
Get diff patch between source and snapshot.
const source = { a: 1, b: 2 }; const snapshot = new Snapshot(source); source.a = 3; snapshot.getDiffPatch(); // => { a: 3 }