* changes * This returns a summery of all changes made from `base` -> `stable` * Optionally includes a given action function to apply to the `stable` graph. * @param {Function?} action - Optional action to apply to the `stable` graph * @return {Object} Object containing `modified`,
(action)
| 746 | * @return {Object} Object containing `modified`, `created`, `deleted` summary of changes |
| 747 | */ |
| 748 | changes(action) { |
| 749 | let difference = this._fullDifference; |
| 750 | |
| 751 | if (action) { |
| 752 | const base = this.base.graph; |
| 753 | const head = action(this.stable.graph); |
| 754 | difference = new Difference(base, head); |
| 755 | } |
| 756 | |
| 757 | return { |
| 758 | created: difference.created(), |
| 759 | modified: difference.modified(), |
| 760 | deleted: difference.deleted() |
| 761 | }; |
| 762 | } |
| 763 | |
| 764 | |
| 765 | /** |
no test coverage detected